Salesforce activity problem after converting to Windows type

Hello All,

Recently converted two processes to the Windows framework, what contains multiple Salesforce activities. The SOQL queries don’t have problem, but as soon as I use more than one Update Record/ Get Record activity.
In one of the process I have multiple Update Records each with their own Salesforce Application Scope, in the other project multiple Get Records in one Salesforce Application Scope.

The error message is very similar:

23.10.0+Branch.master.Sha.e038c5a32a4f890ba12a3c04ac465dc8811521e0

The following errors were encountered while processing the workflow tree:
‘Func_Data_CompareSAPandSF_NewMP’: The private implementation of activity ‘1: Func_Data_CompareSAPandSF_NewMP’ has the following validation error: The activity ‘Update Record - Order Partially’ cannot reference activity ‘Literal’ because activity ‘Literal’ is already referenced elsewhere in the workflow and that reference is not visible to activity ‘Update Record - Order Partially’. In order for activity ‘Literal’ to be visible to activity ‘Update Record - Order Partially’, it would have to be a child or imported child (but not an implementation child) of activity ‘Func_Data_CompareSAPandSF_NewMP’. Activity ‘Literal’ is originally referenced by activity ‘Update Record - Order Shipped’ and activity ‘Update Record - Order Partially’ is in the implementation of activity ‘Func_Data_CompareSAPandSF_NewMP’.

System.Activities.InvalidWorkflowException: The following errors were encountered while processing the workflow tree:
‘Func_Data_CompareSAPandSF_NewMP’: The private implementation of activity ‘1: Func_Data_CompareSAPandSF_NewMP’ has the following validation error: The activity ‘Update Record - Order Partially’ cannot reference activity ‘Literal’ because activity ‘Literal’ is already referenced elsewhere in the workflow and that reference is not visible to activity ‘Update Record - Order Partially’. In order for activity ‘Literal’ to be visible to activity ‘Update Record - Order Partially’, it would have to be a child or imported child (but not an implementation child) of activity ‘Func_Data_CompareSAPandSF_NewMP’. Activity ‘Literal’ is originally referenced by activity ‘Update Record - Order Shipped’ and activity ‘Update Record - Order Partially’ is in the implementation of activity ‘Func_Data_CompareSAPandSF_NewMP’. at System.Activities.WorkflowInspectionServices.GetActivities(Activity activity)+MoveNext()
at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Linq.Enumerable.ConcatIterator1.MoveNext()
at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext()
at System.Collections.Generic.HashSet1.UnionWith(IEnumerable1 other)
at System.Collections.Generic.HashSet1..ctor(IEnumerable1 collection, IEqualityComparer1 comparer) at System.Linq.Enumerable.DistinctIterator1.ToArray()
at UiPath.Executor.Tracking.TrackingHelpers.GetVariableNames(Activity activity)
at UiPath.Executor.Tracking.TrackingHelpers.TrackVariables(TrackingProfile profile, WorkflowInfo workflowInfo)
at UiPath.Executor.Tracking.DebugTrackingParticipant.RegisterWorkflow(WorkflowInfo workflowInfo)
at UiPath.Executor.DebuggerPlugin.UiPath.Executor.IDebuggerPlugin.RegisterWorkflowTracking(WorkflowInfo workflowInfo)
at UiPath.Executor.Tracking.WorkflowTracking.RegisterWorkflowTracking(WorkflowInfo workflowInfo)
at UiPath.Executor.WorkflowRuntime.RegisterWorkflow(WorkflowInfo workflowInfo)
at UiPath.Executor.RobotRunner.InitWorkflowApplication()
at UiPath.Executor.RobotRunner.ExecuteJob(Boolean preLoaded)

If I comment out the way only one left then the flow works (obivously I need all the activities).

I already tried to rebuild the Scopes and the activities, delete all the variables and arguments and recreate them, downgrade the packages, etc. Doesn’t seems to work.

Somehow it gives the feeling I cannot use more than one of these activities in the same workflow.

Anybody has any idea how to solve it?

One little update from my experimenting:

I move one of my Update Records into a new function and invoked it in place of the original activity, this way it is working… Good for workaround but UiPath should look into it.