Calling a Workflow takes 1 to 2 seconds before it starts its execution

Hi
Calling a Workflow within an Automation has some serious performance issue.
We see that it takes few seconds to call a workflow.
I just ran a basic REF based automation, and see below logs:
As you can see , it took 2 seconds before it could start with ‘Log Message activity within the workflow’. For that matter the call to workflow took 2 seconds before the next log item on ‘DynamicActivity’.
My laptop specs are:
Processor Intel(R) Core™ i7-10510U CPU @ 1.80GHz, 2304 Mhz, 4 Core(s), 8 Logical Processor(s)
and have 16 GB RAM installed.

Log:

10:54:11.4559 Trace {“message”:“Invoke GetTransactionData workflow Executing”,“level”:“Trace”,“logType”:“Default”,“timeStamp”:“2022-04-12T10:54:11.4549475+05:30”,“fingerprint”:“5953377f-2473-4035-8b89-d3bdb9f45db8”,“windowsIdentity”:“xxxxx\xxxxxx.xx”,“machineName”:“x-xxxx”,“fileName”:“Main”,“activityInfo”:{“Activity”:“UiPath.Core.Activities.InvokeWorkflowFile”,“DisplayName”:“Invoke GetTransactionData workflow”,“State”:“Executing”,“Variables”:{“ShouldStop”:“False”,“TransactionItem”:"",“SystemException”:"",“BusinessException”:"",“TransactionNumber”:“1”,“Config”:“System.Collections.Generic.Dictionary2[System.String,System.Object]","RetryNumber":"0","TransactionField2":"","TransactionField1":"","TransactionID":"","dt_TransactionData":"","ConsecutiveSystemExceptions":"0"},"Arguments":{"LogExit":"No","io_dt_TransactionData":"","ArgumentsVariable":"","ContinueOnError":"False","Level":"Info","Timeout":"00:00:00","in_TransactionNumber":"1","LogEntry":"No","in_Config":"System.Collections.Generic.Dictionary2[System.String,System.Object]”,“WorkflowFileName”:“Framework\GetTransactionData.xaml”}},“logF_BusinessProcessName”:“Framework”,“processName”:“RoboticEnterpriseFramework1”,“processVersion”:“1.0.0”,“jobId”:“694b49d4-6c53-4d32-ad9b-0963b1f446a9”,“robotName”:“xxxxxxx@attended”,“machineId”:2003903,“organizationUnitId”:2699000}

10:54:13.2058 Trace {“message”:“DynamicActivity Executing”,“level”:“Trace”,“logType”:“Default”,“timeStamp”:“2022-04-12T10:54:13.2058617+05:30”,“fingerprint”:“4ddbbda2-0cd0-43ed-8bc2-595bae3a7920”,“windowsIdentity”:“xxxxx\xxxx.x,“machineName”:“x-xxxxx”,“fileName”:“GetTransactionData”,“activityInfo”:{“Activity”:“System.Activities.DynamicActivity”,“DisplayName”:“DynamicActivity”,“State”:“Executing”,“Variables”:null,“Arguments”:{“io_dt_TransactionData”:”",“in_TransactionNumber”:“1”,“in_Config”:“System.Collections.Generic.Dictionary`2[System.String,System.Object]”}},“logF_BusinessProcessName”:“Framework”,“processName”:“RoboticEnterpriseFramework1”,“processVersion”:“1.0.0”,“jobId”:“694b49d4-6c53-4d32-ad9b-0963b1f446a9”,“robotName”:“xxxxxx@xxxxx.com-attended”,“machineId”:2003903,“organizationUnitId”:2699000}

10:54:13.2939 Trace {“message”:“Get Transaction Data Executing”,“level”:“Trace”,“logType”:“Default”,“timeStamp”:“2022-04-12T10:54:13.2939844+05:30”,“fingerprint”:“97077dcf-3c55-49c2-8b4f-16d0eeb93593”,“windowsIdentity”:"xxxxx\xxxxxx.xxx,“machineName”:“x-xxxxxx”,“fileName”:“GetTransactionData”,“activityInfo”:{“Activity”:“System.Activities.Statements.Sequence”,“DisplayName”:“Get Transaction Data”,“State”:“Executing”,“Variables”:null,“Arguments”:null},“logF_BusinessProcessName”:“Framework”,“processName”:“RoboticEnterpriseFramework1”,“processVersion”:“1.0.0”,“jobId”:“694b49d4-6c53-4d32-ad9b-0963b1f446a9”,“robotName”:“xxxxxx@xxxxx.com-attended”,“machineId”:2003903,“organizationUnitId”:2699000}

10:54:13.2939 Info {“message”:“Get the transaction item”,“level”:“Information”,“logType”:“User”,“timeStamp”:“2022-04-12T10:54:13.2949826+05:30”,“fingerprint”:“b7c17e78-a2b2-4ba9-97fc-6cbe86bde474”,“windowsIdentity”:“xxxxxx\xxxxxx.xxx”,“machineName”:“x-xxxxx”,“fileName”:“GetTransactionData”,“logF_BusinessProcessName”:“Framework”,“processName”:“RoboticEnterpriseFramework1”,“processVersion”:“1.0.0”,“jobId”:“694b49d4-6c53-4d32-ad9b-0963b1f446a9”,“robotName”:“xxxxxxx@xxxx.com-attended”,“machineId”:2003903,“organizationUnitId”:2699000}

10:54:13.3763 Trace {“message”:"Log Message Get Transaction Item Executing",“level”:“Trace”,“logType”:“Default”,“timeStamp”:“2022-04-12T10:54:13.3763839+05:30”,“fingerprint”:“115f80ef-8d5d-4b68-8932-57d79bdf61b9”,“windowsIdentity”:“xxxxxx\xxxxxx.x”,“machineName”:“x-xxxxx”,“fileName”:“GetTransactionData”,“activityInfo”:{“Activity”:“UiPath.Core.Activities.LogMessage”,“DisplayName”:“Log Message Get Transaction Item”,“State”:“Executing”,“Variables”:null,“Arguments”:{“Message”:“Get the transaction item”,“Level”:“Info”}},“logF_BusinessProcessName”:“Framework”,“processName”:“RoboticEnterpriseFramework1”,“processVersion”:“1.0.0”,“jobId”:“694b49d4-6c53-4d32-ad9b-0963b1f446a9”,“robotName”:“xxxxxx@xxxxx.com-attended”,“machineId”:2003903,“organizationUnitId”:2699000}

Thanks a lot for your support,
Best Regards

Are you using a C# project? If this is the case, please try the new windows/cross-platform compatibilities as the execution performance is greatly improved.

Hi Alex, Thanks for the feedback. Infact we were trying first in C# project and we as well checked in VB project. In both case we faced similar performances. It is interesting to see that there is something that we could do for the C# project. Could you please elaborate on ‘the new windows/cross-platform compatibilities’. Is this a studio / project setting? If it is the compatibility setting at project level, then we are using ‘Windows legacy’ for both the C# and VB projects under test. Thank you. Best Regards

please check this: About Automation Projects

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