Please refer the below post at the end our forum members discussed on this issue. the temporary solution would be downgrading the System.Activities package to 20.10.4 resolve the issue. please try downgrade the system activity package and let us know. Thanks.
Hi,
Can you try to define it as not Microsoft.Office.Interop.ExcelApplication but Microsoft.Office.Interop.Excel.Application ?
(And also Microsoft.Office.Interop.Excel.Workbook)
Did we found a permanent solution? Issue is because when I downgrade the version of System.Activities to 20.10.4, my other functionalities stops working. Need help on this as soon as possible.
Yes, I found the solution.
It will not help if you downgrade the package as we have other dependencies.
Try to install below package it will resolve the issue.
Note: The above solution will work till 21.4.1 version of UiPath System.Activities after that it will not work, kindly take a note of it.
We need to add two things in our Main.xaml file.
I tried to import name space but it didn’t work then I manually updated Main.xaml file as below.
Once you update Main.xaml no need to import any name space or install any package.
I believe it will work for all versions of UiPath.System.Activities.
I am working on 21.10.4 version of UiPath.System.Activities and it is working fine for me.
Add under <TextExpression.NamespacesForImplementation>
Add this ::
<x:String>System.Reflection</x:String>
<x:String>System.Runtime.InteropServices</x:String>