This looks like a package dependency/version compatibility issue, specifically related to DocumentFormat.OpenXml.
The error:
Method not found: Void DocumentFormat.OpenXml.Packaging.OpenXmlPackage.Close()
usually occurs when one package expects an older version of the OpenXML library, while another package has installed a newer incompatible version.
Since your older project works, I would suggest comparing the package versions between the two projects.
You can try:
Open Manage Packages in the new project.
Compare UiPath.Excel.Activities, UiPath.System.Activities, and other dependencies with the working project.
Try using the same package versions as the working project.
Remove the Excel/Workbook-related package and install it again with a compatible version.
Close Studio and delete the project’s .local or install folder, then reopen and restore the dependencies.
From your screenshots, the newer project is using preview/newer package versions, while the older project has different versions. I would first try matching the package versions from the project that is working.
Also, avoid mixing preview packages with stable packages unless required.
[Error] Workbook Scope: Method not found: ‘Void DocumentFormat.OpenXml.Packaging.OpenXmlPackage.Close()’.
I think this error is thrown by Autossential.Workbook activities. So, can you try to use UseExcelFile activity in UiPath.Excel.Activites pacakge instead of the above, if you want to just run the tutorial in the academy?
Or it may be a solution to update Autossential.Workbook activities to newer, too.
The fact that the older project works while the newly created project fails is a useful clue. I would first treat this as a package compatibility issue rather than assume the Workbook Scope itself is broken.
The OpenXmlPackage.Close() error means that the code calling OpenXML was compiled against a different version of DocumentFormat.OpenXml than the one being loaded at runtime.
Rather than deleting project.json, I would compare the actual resolved dependency tree between the working and failing projects.
A few things I’d check:
Compare the versions of UiPath.Excel.Activities and any package that brings in DocumentFormat.OpenXml.
Check whether the new project is resolving a newer OpenXML dependency than the working project.
Look for packages marked as preview/STS or otherwise different between the two projects.
Restore the project after changing the dependency versions and test again.
If the issue still reproduces in a completely new project with the current package set, then I’d consider it a package regression/compatibility issue and check the UiPath release notes/support cases for that exact combination.
The method-not-found exception itself is strong evidence of an assembly version mismatch, so I wouldn’t focus on the workflow logic yet.
The issue is because of the Autossential.Workbook.Activities │ 1.0.0-preview.22078809 → it’s a preview and it’s compiled against OpenXML 2.x (which is too old).