So, I have some problem with create multiple entity records, It said Create Multiple Entity Records: 8 records failed to create or update. I need to create multiple entity records again with failed records but it gave me
Compiler error(s) encountered processing expression "failed_records".
Option Strict On disallows implicit conversions from 'System.Collections.Generic.IList(Of System.Tuple(Of String, Output_Processing.CrawlSIPP))' to 'System.Collections.Generic.ICollection(Of Output_Processing.CrawlSIPP)'.
For some reason, the image is not loading from me, but based on the error, my guess is that you are using the “Failed Records” output from the first Create Multiple activity as the input to the second Create Multiple activity.
Sadly, this won’t work because the return type of “Failed Records” is not a List<Output_Processing.CrawlSIPP> but rather List<Tuple<String,Output_Processing.CrawlSIPP>>. This is done to provide the individual error messages for each failed record.
You will need to iterate through the failedRecords using For Each, and to put the items (accessible via item.Item2) again in a new collection that you can submit again. You can also access the error message via item.Item1 property of the Tuple.
Please see this attached project which shows a sample on how to handle it using an Entity called States. Use Failed Batch.zip (9.0 KB)