StudioX OneDrive share file or folder Aktivität Fehler/Studio X OneDrive share file or folder activity error

Hallo Zusammen, ich habe einen Workflow geschrieben, der eine Liste aus unserem ERP System rauslässt. Diese Liste wird in eine Excel gespeichert und auf einem Netzlaufwerk abgelegt. Nachdem die Liste abgelegt wurde, wird diese zusätzlich auf eine OneDrive gelegt, von der diese Datei dann freigegeben wird. Nun ist es aber so, dass es immer bei dem Freigabe Vorgang abbricht, weil er es nicht freigeben kann.

Folgend der Fehlercode:
UiPath.MicrosoftOffice365.Office365Exception: An unspecified error has occurred. —> UiPath.MicrosoftOffice365.Office365InternalException: Code: sharingDisabled
Message: Fehler beim Freigabevorgang aufgrund einer unerwarteten Fehlerbedingung.
Inner error:
AdditionalData:
date: 2025-04-01T06:39:54
request-id: (Aus Sicherheitsgründen nicht inkludiert)
client-request-id: (Aus Sicherheitsgründen nicht inkludiert)
ClientRequestId: (Aus Sicherheitsgründen nicht inkludiert)
—> Microsoft.Graph.ServiceException: Code: sharingDisabled
Message: Fehler beim Freigabevorgang aufgrund einer unerwarteten Fehlerbedingung.
Inner error:
AdditionalData:
date: 2025-04-01T06:39:54
request-id: (Aus Sicherheitsgründen nicht inkludiert)
client-request-id: (Aus Sicherheitsgründen nicht inkludiert)
ClientRequestId: (Aus Sicherheitsgründen nicht inkludiert)
at Microsoft.Graph.SimpleHttpProvider.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
at Microsoft.Graph.BaseRequest.SendRequestAsync(Object serializableObject, CancellationToken cancellationToken, HttpCompletionOption completionOption)
at Microsoft.Graph.BaseRequest.SendAsync[T](Object serializableObject, CancellationToken cancellationToken, HttpCompletionOption completionOption)
at Microsoft.Graph.DriveItemInviteRequest.PostAsync(CancellationToken cancellationToken)
at UiPath.MicrosoftOffice365.Files.Extensions.FilesExtensions.ShareItemAsync(GraphServiceClient graphClient, DriveItem driveItem, GranteeType granteeType, GranteePermission permission, String recipients, Boolean sendSharingInvitation, Boolean requireSignIn, Nullable1 expirationDate, String message, String password) at UiPath.MicrosoftOffice365.Services.GraphServiceClientProxy.ShareItemAsync(ShareItemRequest request, CancellationToken cancellationToken) at UiPath.MicrosoftOffice365.Activities.Files.ShareItemConnections.SafeExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken) at UiPath.MicrosoftOffice365.Activities.BaseLeafConnectionServiceActivityWithoutBindings.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken) --- End of inner exception stack trace --- at Microsoft.Graph.SimpleHttpProvider.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken) at Microsoft.Graph.BaseRequest.SendRequestAsync(Object serializableObject, CancellationToken cancellationToken, HttpCompletionOption completionOption) at Microsoft.Graph.BaseRequest.SendAsync[T](Object serializableObject, CancellationToken cancellationToken, HttpCompletionOption completionOption) at Microsoft.Graph.DriveItemInviteRequest.PostAsync(CancellationToken cancellationToken) at UiPath.MicrosoftOffice365.Files.Extensions.FilesExtensions.ShareItemAsync(GraphServiceClient graphClient, DriveItem driveItem, GranteeType granteeType, GranteePermission permission, String[] recipients, Boolean sendSharingInvitation, Boolean requireSignIn, Nullable1 expirationDate, String message, String password)
at UiPath.MicrosoftOffice365.Services.GraphServiceClientProxy.ShareItemAsync(ShareItemRequest request, CancellationToken cancellationToken)
at UiPath.MicrosoftOffice365.Activities.Files.ShareItemConnections.SafeExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
at UiPath.MicrosoftOffice365.Activities.BaseLeafConnectionServiceActivityWithoutBindings.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
— End of inner exception stack trace —
at UiPath.MicrosoftOffice365.Activities.BaseLeafConnectionServiceActivityWithoutBindings.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at UiPath.Shared.Activities.AsyncTaskCodeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at UiPath.Shared.Activities.ContinuableAsyncCodeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at UiPath.MicrosoftOffice365.Activities.Office365BaseClientActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Kann mir hier jemand weiterhelfen?

Ich bin mittlerweile am verzweifeln

@Workflowvernichter

What authentication are you using?

cheers

I have established an connection trough UiPath to my OneDrive.

I did this by clicking on the little gear icon on the top right.
I then clicked “Add new connection” and got a new browser tab to UiPath Authentificaton.

Here is a screenshot from the authentification window:

I then used my login information to connect my OneDrive to UiPath.

Did i do smth wrong here ?

@Workflowvernichter

Okay so you are using integration services..can you show the activity setup as well please

Cheers

Of course, but i pixelated some personal data.

Oh and i can only upload one picture per reply, so im going to post mutliple replys.

fyi

Part 1:

Here is part 2:

Here is part 3:

And here is an Image from my recipient list:

@Workflowvernichter

Looks like its failing in sharing and as per error sharing is disabled ..it must be set at folder level first

Cheers

How can i establish that ?

@Workflowvernichter

First check if you have permissions on that folder to grant access manually

Cheers

Yes i have write permission, which should be sufficient for sharing folders

One is exclusively used for Automations and one is my Personal Work OneDrive.

I have tried with both accounts so far.