I got this exception in runtime execution of mine SP2013 declarative workflow built as Visual Studio State Machine WF. Help me with identifying the root source of problem.
I can think of the following options to look for as a solution:
- Increasing memory quota per instance (WF Manager settings)
- Localize variable to scope (assuming that WF Manager disposes them properly and don't leak)
- Extract some logic into separate declarative Activity
- Extract some logic into separate Workflow