System.Collections.Generic.Dictionary`2[System.String,System.Object] cannot be used as a literal

Invoke ProcessTransaction workflow: The following errors were encountered while processing the workflow tree:
‘Literal<Dictionary<String,Object>>’: Literal only supports value types and the immutable type System.String. The type System.Collections.Generic.Dictionary`2[System.String,System.Object] cannot be used as a literal.

Just got this error from nowhere. I have not changed anything that should cause this error in my project.

@atomic Do you know the Activity that gives out this error ?

No i only get that error when i run the activity. It gets stuck here:

With this error:
image

@atomic Can you show the Arguments in the Process Workflow ?

Something seems to have happened with the config file.

I Fixed it. I changed the “Argument type” to something else and then back to the Dictionary.

Seems to work for the moment.

1 Like