Error 'notAllowedMessage: This operation has been disabled by policy' in UiPath SharePoint File Upload

Hi Team,

I’m encountering an error when executing a UiPath automation to upload files to SharePoint:

Error UploadOneFile: Code: notAllowedMessage: This operation has been disabled by policy

  • When I upload the same file manually through SharePoint interface, it works fine.
  • The automation process is working but gets blocked during the upload task with this policy error.

What exactly does this error is there any way to troubleshoot this error. Can anyone share a detailed example or steps for connecting to sharepoint via API in UiPath.

Thanks.

@solaipappu

As per error upload of file is not allowed..your sharepoint team or admin should enable

Cheers

@solaipappu,

How you are connecting with SharePoint? is it through Client Id, Secret or Integration Services?

Check your Azure App if using it for scope permitted also check with SharePoint admin if bot’s id is allowed to upload file.

Thank you @Anil_G & @ashokkarale.

1 Like

Hi @solaipappu

How are you connecting to SP? using SP legacy package or O365 package? and what is the auth type? app id and secret or interactive token or any other auth?

have you registered your app on azure and provided api permissions(read/write)?

Could you please show us screenshot of your workflow?

Hi Team,

Yes we are using client and secret id.

Thanks

@solaipappu

And what package you are using to connect using client id and secret?

UiPathTeam.SharePoint.Activities

or Microsoft O365 package?

Also, have you registered your app on azure for same? if yes, please check permissions provided to same, there may be permissions issue.