Issue
When using 'Set Workflow Variable' in Nintex Workflow for Office 365, this error might occur during workflow runtime:
RequestorId: <GUID>. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.InvalidCastException
RequestorId: <GUID>. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.InvalidCastException
Resolution
Make sure that variable type and the value used to set the workflow variable matches.
For example:
A Date/Time type of variable would not match with Number value.
For example:
A Date/Time type of variable would not match with Number value.