Create Multiple Entity Records Failed to create. How to create multiple entity using failed records?

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)'.

Anyone can help me?


Can I have a view on the activity as a screenshot if possible


The activity looks like this

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 (9.0 KB)

1 Like

Thanks for your reply. I will give it try!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.