"Found invalid data while decoding" error when installing UiPath.MicrosoftOffice365.Activities on AVD

I’m encountering an issue when trying to install the “Microsoft 365 by UiPath” package (UiPath.MicrosoftOffice365.Activities version 2.9.10) on an Azure Virtual Desktop (AVD).

The same package installs and works perfectly on my local development laptop. However, on the AVD, as soon as I try to add the package to a blank project, I get the following error:

“System.IO.InvalidDataException: Found invalid data while decoding.”

Some additional context:

  • This happens immediately after attempting to add the package — even before writing any activities or code.
  • We’ve tested with both existing and brand-new project.json files. The issue persists.
  • Our AVD environment is tightly locked down and only permits access to explicitly whitelisted external URLs. The following endpoints are currently allowed:
    • https://api.nuget.org
    • https://www.nuget.org
    • https://platform.uipath.com
    • https://license.uipath.com
    • https://azuresearch-ussc.nuget.org

We’ve already tried:

  • Clearing the NuGet package cache (%userprofile%\.nuget\packages)
  • Re-downloading the package
  • Rebuilding the project from scratch
  • Verifying the project.json for syntax errors (none found)

Questions:

  1. Are there additional URLs that need to be whitelisted for this package (e.g., content delivery endpoints, MS Graph auth resources, or secondary feeds)?
  2. Has anyone encountered this error specifically in air-gapped or firewall-restricted environments?
  3. Could the issue be related to a corrupted or incomplete .nupkg download, possibly due to blocked resources?

Any insight or guidance would be much appreciated!

@ashley.gates,

Try all the solutions mentioned here

1 Like

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