Wait for document classification action throwing "You are not authorized!"

Hi everyone,

I am having an issue with the WaitForDocumentClassificationActionAndResume activity in UiPath. It is throwing an exception with the message “You are not authorized!” even though the robot has all the necessary permissions as outlined in the documentation (https://docs.uipath.com/activities/docs/wait-for-document-classification-action-and-resume#storage-details).

I believe the problem may be with the BaseWaitForDocumentActionAndResume class because it is trying to fetch user information in the AddUserInfoToActionData method, which is causing the exception to be thrown.

Has anyone encountered this issue before or have any suggestions on how to fix it? Any help would be greatly appreciated. Thank you in advance.

  • What version of UiPath.IntelligentOCR.Activities you are using?
  • What is the Studio version?
  • When creating a new UiPath Studio project that includes this activity, you selected the Document Understanding Process template, or went to Project Settings and activate the Supports Persistence flag?
  • Did you make sure that you have enabled all needed permissions for Orchestrator? Go to Folder Permissions for the Robot role in Orchestrator and verify that:
    For Storage Files permissions, View and Delete options are selected.
    For Storage Buckets permissions, View option is selected.
    For Actions permissions, View option is selected.

I have started the project using the document understanding framework template and we have everything up to date so:

  • UiPath.IntelligentOCR.Activities: v6.6.0
  • Studio: 2022.10.4

The robot have all the listed permissions and have no problem with creating the task in action center, but as the process resume after verification the robot will crash.

From the error message, it is still a permission issue.

Go to the Modern Folder → Users → find the robot in the list → Edit Roles

Add the Robot role if it doesn’t exists with the needed permissions

Let us know if this helped.

Thank you for your help, however the robot already has the needed permissions.

I have also tried given it the “Folder administrator” role and it did not help.