Object reference not set Error - Using UiPathTeam.SharePoint.Activities

Hello,
we are currently stuck with the UiPathTeam.SharePoint.Activites library. We are testing access using “Test Connection” and have set up AzureApp login as described in the PDF document. My SharePoint administrators confirm that the login to the SharePoint was successful. Unfortunately, we then get this error message and the SharePoint Application Scope does not work because the Client Context is NULL:

image

Hi @kreutlm,

This exception normally occurs when a variable is null. Try running in debug, and look at the locals panel on UiPath for which of your used variables is null

Hello Will,
thanks for the answer, but there are no variables (as we are just testing). All values are hard coded into the activities.
For the SharePoint application scope activity these are:

  • AzureApplicationID = “9ff…”
  • URL = “https://my…”
  • Username = “m.k…”
  • Password = “…”
    The AzureApplicationID is correct as the network trace confirms a successful login to the SharePoint.

Hi @kreutlm,

Could I please have a screenshot of the error message(s) with the activity when you run in debug?

Hi Will,
here the screenshot:

image

Testing Button “Get User Consent” → successful
Test Connection → error (see above)

Mike

Hello,
does anyone else have an idea what it could be?

Mike

Anyone find the issue with this error? I have the same problem. I’ve tried to run my sequence anyway and it returns One or more errors occurred on any activity inside the SharePoint Scope.