πŸš‘ πŸ†˜ [FirstAid] O365 Classic - Microsoft 356 Scope - GeneralException

This FirstAid Tutorial will describe how a generalException EXCEPTION thrown by / within a Microsoft O365 Scope can be handled.

Introduction

If the package UiPath.MicrosoftOffice365.Activities is updated or remodelled from a previous version, one of the Microsoft 356 Scope / O365 related activities used below may throw a generalException.

RnD and Replication Scenario

  • Microsoft 365 Scope | Configured Authentication Type: ApplicationIdAndSecret
    • Get List Info
Visuals

grafik

Exception Details

grafik

Details

  • Project Compatibility: Windows

  • UiPath Studio Version: 2023.10.3 due:
    grafik

  • UiPath.MicrosoftOffice365.Activities Versions:

    • Successfully applied on: 2.5.5, 2.5.6

Observation

During the RnD rounds, it was possible to compare a working modelling with a faulty one at XAML-XML level

Scope part - Failling

grafik

Scope part - Working

Fixing Actions

Before any fixing take a proper Backup from your UiPath Project
ensure that a text editor (e.g. notepad++ ) is available at your system

  • close the XAML from UiPath Studio
  • open the XAML in the text editor: e.g. notepad++
  • navigate to the uma:Office365ApplicationScope element
  • replace below uma:Office365ApplicationScope.AuthenticationScopes by
<uma:Office365ApplicationScope.AuthenticationScopes>
  <scg:List x:TypeArguments="InArgument(x:String)" Capacity="1">
     <InArgument x:TypeArguments="x:String">https://graph.microsoft.com/.default</InArgument>
   </scg:List>
</uma:Office365ApplicationScope.AuthenticationScopes>
  • save and close properly the XAML on text editor (e.g. notepad++)
  • Click Refresh (UiPath Studio, Project Panel)
    grafik
  • Open and debug the modified XAML

About the Fix

Currently, this Fix is experimental. It can also happen that another scenario is interpreted in this direction, but has a different cause or requires a different treatment.

UPDATE: We are happy to have received positive feedback (directly and behind the scenes) on the working fix from various users on different continents

As the scenario described above was reported more and more frequently, it was decided to publish this FirstAid. With more feedback and problem reports collected, perhaps further RnD rounds will investigate more scenarios.

References

Documentation

Questions

For questions on your specific case open a new topic and get individual support

6 Likes

Thank you! The fix helps to repair the connection to Micorosft Office Scope.

1 Like