How To Troubleshoot O365 Activities?

How to troubleshoot O365 activities?

Issue Description: How to debug the Office 365 activities? It covers the logs that are typically needed to resolve an issue.

Background

Office 365 Scope uses OAuth 2.0 tokens for authentication and leverages Microsoft's graph API. Most issues related to the Office 365 activities revolve around authentication issues, utilizing an invalid configuration, or misunderstanding the Azure configuration. ( For more information on OAuth 2.0, refer to the following documentation: OAuth 2.0 — OAuth)

In order to use the integration, one must first make an application registration on Azure and assign Microsoft Graph API permissions which make use of OAuth 2.0 tokens. This allows the Robot access to resources that can be traditionally accessed. The Set Up page explains how to do the setup.

The activities will use by default a registration created by UiPath. However, not all organizations will give admin consent to that registration (meaning that your organization will provide the registration).

Troubleshooting Steps

  1. Check which OAuth Application is being used. This is a property on the studio activity called "OAuthApplication". Make a note of if it said UiPath or Custom (UiPath cannot be used with Unattended automations).
  2. If "Custom" was used, make sure to review: Setup (uipath.com). This is the first step to successfully setting up the automation.
  3. If Custom was used and the Setup has been completed, then confirm the application registration in studio.
    • Both the Tenant ID and Application ID should be specified. Here is a screenshot
image.png
  1. This should correspond to the fields in the application registration in Azure. Your Azure admin should help confirm that the correct values have been provided.
    • This can be found here when you register the application on AAD in the "Overview" sub-section:Where input fields are located
  2. If the values, match up, include this information in the ticket.
  3. If the above verification did not help resolve the issue, the next steps would be to:
  4. Also collect the Robot Execution logs and attach those in the support case. See more information on Robot Execution Logs .
  5. Finally, if possible, share the automation or a sample automation (make sure not to include any sensitive information).
    • If a sample automation cannot be provided, please specify the dependency package version and how the specific activity was configured.
  6. When opening a ticket with UiPath, attach the logs mentioned above.