I am working with the document understanding framework along with a parallel for each loop. This error is infrequent, but it is still one I would like to fix. Occasionally in the Extraction scope the following error is thrown:
Current Document Extraction: Only activities which have been requested to cancel can call MarkCanceled. Check ActivityInstance.HasCancelBeenRequested before calling this method.
However I have not canceled any part of my workflow in studio or orchestrator. I also have tried using the ActivityInstance.HasCancelBeenRequested but I get an error that it is not a part of ActivityInstance. This only happens occasionally and I have not been able to find a pattern to it. Has anyone else run into this issue or have a possible solution?