I'm getting a "Cannot modify batch structure from this script" error from a batch processing script in a Batch Type custom workflow script. The script used to work in a previous version of Flexicapture we have running in production (18.104.22.1686) but is failing in 22.214.171.12493. Also, the project in prod is a General project, whereas the new one I'm working on is a US Invoice project. I've ensured that the script running is a Batch Processing script. The script throws the error when attempting to call the batch.CreateDocumentFromPage(...), where batch is IBatch instance. I have also noticed that this error only happens when the workflow is part of a batch type, it does not happen when set in a workflow at the project level.
And yes, I've submitted a support ticket but have heard nothing beyond they could not replicate even though I can replicate easily with a bare-bone project. Did anything change in permissions between versions that would now cause this to fail?