Action centre Error

Encountered this error “The calling thread cannot access this object because a different thread owns it” with Wait for Form task and Resume activity. The error pops-up when the task is completed in action centre and the bot is resumed in Debug mode. Any help on this?

Hey @santhosh_arjun,

This error occurs because UI elements in the workflow are being accessed from a non-UI thread after resuming. Run the process in normal mode instead of Debug when using Action Center with Wait/Resume. If needed, refactor to ensure UI interactions happen after resume on the main thread only.

@santhosh_arjun

Could you please try running the process using run instead of debug mode?

As soon as action centre task is created, process will go in suspended state itself and once action center task is completed you can resume the workflow.

No need to run in debug mode

The error occurs with normal run too