Could not load file or assembly 'DocumentFormat.OpenXml, Version=2.7.2.. The system cannot find the file specified

I’m encountering this error in approximately 6-7 processes after migrating to Windows, publishing on Orchestrator, and running them from Assistant.

The issue is likely due to the DocumentFormat.OpenXml dependency, which is used in two different packages:

  1. BalaReva.Excel.Activities
  2. UiPath.Excel.Activities

The versions of DocumentFormat.OpenXml differ between these packages. In the UiPath package, this dependency is used in a parent third-party dependency.

If this is confusing, you can refer to the image below for clarity:

The problem persists even after updating UiPath.Excel to the latest version. The ClosedXML dependencies remain the same, and so does the conflicting DocumentFormat.OpenXml version.

I have six processes stuck due to this issue and cannot remove any nested dependencies from a package.

Hi!

Sometimes the package manager needs a kickstart to locate/download your dependencies.

Take a look at these threads:
Read Range Workbook settings: Could not load file or assembly 'DocumentFormat.OpenXml, Version=2.7.2.0, Culture=neutral - Help / Studio - UiPath Community Forum
Could not load file or assembly 'DocumentFormat.OpenXml, Version=2.5.5631.0 - Help - UiPath Community Forum
Try deleting both packages and reinstall them, Excel first.

Thanks i will try and let you know