Document is invalid - Workflow

I can’t open my latest workflow file and found error The item .xaml could not be opend: Document is invalid
Solution:
I compared header of my latest and the previous version, there are no this:WorkflowName.Arguments="" ... in the previous version. I removed all of the this:WorkflowName.Arguments="" ... in latest version (So header of my latest and the previous version are same) and then I can open file as normal.

1 Like