Skip to main content
Search Again

We think these articles could help you:

    See More
    Nintex Knowledge Base

    Error : System.InvalidCastException:

    Status: Validated

    ISSUE
    A workflow is run and suspends with the error System.InvalidCastException: 
     
    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<double,object> BuildDictionary<string,object> Sequence Initialisation Sequence Flowchart Innovation Ideas Catalogue Workflow.WorkflowXaml_b9044e23_ac69_4644_8967_b03c18100000
    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.
    ADDITIONAL INFORMATION
    RELATED LINKS