Getting 'Value cannot be null. (Parameter 'g')' after updating Microsoft 365 package (3.6.10)

I updated Studio/Assistant from version 2025.10.5 to 2025.10.6
and updated the ‘Microsoft 365’ package from version 3.5.10 to 3.6.10

In an existing project (that was working) I now get the errror ‘Value cannot be null. (Parameter ‘g’)’ when using the ‘Microsoft 365 Scope’ activitie.
But I only get the error when running the projekt throgh the Assistant,
when running the project directly in Studio, it works.

I downgraded the ‘Microsoft 365’ packages to 3.5.10 - and now it works again in the Assistant.
Is there a bug in 3.6.10?

Hi @MarkDSVT

Could you please double check if the same will occur if you use a new dummy project with the 3.6.10 version?

Hi @loginerror
Yes, the same occur with a new dummy projekt.

Could you please provide the full stack of this error, and maybe some extra information about your configuration of the Microsoft Scope activity? For example, was it “empty” in your dummy project test, or did it have some specific activities inside?

I get the same error if Mirosoft Scope is ‘empty’ or if I use for example the ‘Get mail’ activitie.

I’m not sure how to get the full stack of the error….

But from the Execution log I get this:
08:54:30.4978 Info {“message”:“BlankProcess1 execution started”,“level”:“Information”,“logType”:“Default”,“timeStamp”:“2026-02-26T08:54:30.4945869+01:00”,“fingerprint”:“478669e9-f787-485e-a5d8-3ea00209e8cf”,“windowsIdentity”:“DSVTRANSPORT\mrs”,“machineName”:“LAPTOP-MRS-0524”,“fileName”:“Main”,“initiatedBy”:“Assistant”,“jobId”:“182e254a-df2d-4f00-8664-097bf94f1513”,“robotName”:“DSVTRANSPORT\MRS”,“machineId”:0,“processName”:“BlankProcess1”,“processVersion”:“1.0.2”}
08:54:30.6258 Error {“message”:“Microsoft 365 Scope: Value cannot be null. (Parameter ‘g’)\r\nin Main.xaml\r\n at Office365ApplicationScope “Microsoft 365 Scope”\r\n at Sequence “Main Sequence”\r\n at Main “Main”\r\n”,“level”:“Error”,“logType”:“Default”,“timeStamp”:“2026-02-26T08:54:30.625499+01:00”,“fingerprint”:“53413f8d-bf10-4671-a051-396e3a65c6a9”,“windowsIdentity”:“DSVTRANSPORT\mrs”,“machineName”:“LAPTOP-MRS-0524”,“fileName”:“Main”,“jobId”:“182e254a-df2d-4f00-8664-097bf94f1513”,“robotName”:“DSVTRANSPORT\MRS”,“machineId”:0,“processName”:“BlankProcess1”,“processVersion”:“1.0.2”}
08:54:30.6496 Info {“message”:“BlankProcess1 execution ended”,“level”:“Information”,“logType”:“Default”,“timeStamp”:“2026-02-26T08:54:30.6482664+01:00”,“fingerprint”:“c271040c-e127-4729-8736-83ebe92951d8”,“windowsIdentity”:“DSVTRANSPORT\mrs”,“machineName”:“LAPTOP-MRS-0524”,“fileName”:“Main”,“totalExecutionTimeInSeconds”:0,“totalExecutionTime”:“00:00:00”,“jobId”:“182e254a-df2d-4f00-8664-097bf94f1513”,“robotName”:“DSVTRANSPORT\MRS”,“machineId”:0,“processName”:“BlankProcess1”,“processVersion”:“1.0.2”}

and if copy error details from Assistant I get this:

Value cannot be null. (Parameter ‘g’)

at System.ArgumentNullException.Throw(String paramName)
at System.Guid..ctor(String g)
at UiPath.Plugin.Activities.Tracing.ActivityTraceClient.AddJobContext(TraceSpan arg)
at UiPath.Plugin.Activities.Tracing.ActivityTraceClient.Send(TraceSpan traceSpan)
at UiPath.Plugin.Activities.Tracing.ActivityTraceClient.SubmitSpan(TraceSpan span, StatusEnum status, Nullable1 endTime) at UiPath.Productivity.Diagnostics.ActivityTracingService.Trace(String message, String parentId, TraceEventType level, String type, Dictionary2 attributes)
at UiPath.Productivity.Activities.Diagnostics.Trace.BeginActivityScope[T](Activity actv, ActivityContext context)
at UiPath.MicrosoftOffice365.Diagnostics.Trace.BeginActivityScope(Activity actv, ActivityContext context)
at UiPath.MicrosoftOffice365.Activities.Office365ApplicationScope.ExecuteAsync(NativeActivityContext context, CancellationToken cancellationToken)
at UiPath.Shared.Activities.AsyncTaskNativeImplementation.BookmarkResumptionCallback(NativeActivityContext context, Object value)
at UiPath.Shared.Activities.AsyncTaskNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at UiPath.Shared.Activities.ContinuableAsyncNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

I think we traced the bug, and it is already fixed in the next upcoming GA release 3.7.10 (it will be released on March 3rd).

In the meantime, the workaround is indeed to downgrade to the previous version.

Great, thanks for the update :+1:

1 Like

Just upgraded the Microsoft 365 package to 3.7.10 - and now it works as expected :+1:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.