This is required for the date calculation in the Dispatcher. If I don’t let the assign execute and go directly into process editing, the error doesn’t come.
How else can I use the CultureInfo for the date calculation for Germany or how can I change the value of the CultureInfo of the assign?
Can you confirm what happens before this workflow activity?
Can be the cause that modifications you are doing to data before invoking this workflow is causing this issue. And then when you are passing that data during invoke workflow as in argument, it’s causing issues.
Can you not do the culture modification before passing on the data(in initialisation) but inside the workflow after receiving the data?
The error could be due to invalid input date string.
Try creating separate variables for each expressions you have clubbed in a single code expression to debug and find the exact root cause.
Try evaluate each part in immediate panel and see what’s wrong in which part.