Skip to main content
Nintex Community Menu Bar

Error : System.InvalidCastException:

  • March 26, 2021
  • 0 replies
  • 62 views

Forum|alt.badge.img+8

Issue

A workflow is run and suspends with the error System.InvalidCastException: 
 

 

Resolution

An invalid cast occurs when a source data type is being transformed into a destination data type but the conversion cannot take place because the data types are not compatible.  An example would be trying to transform a text string into a date/time.
Any action that can do a conversion should be checked to make sure that the data going in is compatible with the data that is required to come out of the action.

 

Error Code

EXAMPLE: RequestorId: 72cd8e33-f740-0000-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.InvalidCastException: String at Microsoft.Activities.GetDynamicValueProperty`1.CheckedRead(String propertyName, DynamicItem value) at Microsoft.Activities.GetDynamicValueProperty`1.Execute(CodeActivityContext context) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation) Exception from activity GetDynamicValueProperty DynamicActivity DynamicActivity Cast BuildDictionary Sequence Initialisation Sequence Flowchart Innovation Ideas Catalogue Workflow.WorkflowXaml_b9044e23_ac69_4644_8967_b03c18100000