'An item with the same key has already been added.' error when generating an updateMap RRS feed

  • Question

  • Hi,

    I have a re-hosted workflow designer that needs to generate update maps for running workflows. This all seems to be working correctly in that I can design a workflow, start an instance, change the workflow design and then resume the instance. The update maps are being generated correctly and seems to manage the changes. 

    However, in the designer if I copy an existing activity and paste it into the same process, when the update map is generated it's throwing the exception 'An item with the same key has already been added.'. This doesn't happen if I add a new activity instead. It seems to be the copy/paste that's causing the problem. 

    I think I've got everything else correct. When I load the process I'm calling DynamicUpdateServices.PrepareForUpdate. The users then copy/paste activities and save the process which calls DynamicUpdateServices.CreateUpdateMap. We then get the error.

    All ideas welcome..

    Tuesday, April 23, 2019 1:25 PM