Intellisense Not Working in Invoke Code Activity After Updating UiPath to 2022.10 version

Hello All,

Intellisense is working in Studio but not working inside invoke code activity after upgrade of UiPath from Windows Legacy to Windows. I am trying to use Microsoft.Office.Interop.Excel Assembly and cannot access functions using Intellisense anymore. Can anyone please suggest how to solve this?

  1. Check UiPath Studio Configuration:
    Ensure that UiPath Studio is properly configured to use the correct version of the .NET Framework and other settings after the upgrade. Go to “Settings” → “Manage Packages” → “Settings” and verify that the correct package source and version are selected.

  2. Check Assembly References:
    Verify that the Microsoft.Office.Interop.Excel assembly reference is correctly added to the project. In the “Solution Explorer,” expand the “Dependencies” node, and ensure that the assembly is listed. If it is not there, you may need to add it manually by right-clicking on “Dependencies” and selecting “Add Dependency.”

  3. Check Assembly Target Framework:
    Ensure that the Microsoft.Office.Interop.Excel assembly you are using is compatible with the .NET Framework version that your project is targeting. If you recently upgraded your Windows environment, the target framework might have changed, and the assembly might not be compatible anymore. If needed, update the target framework to a compatible version.

  4. Check Package Versions:
    Make sure you have the correct version of the package that provides the Microsoft.Office.Interop.Excel assembly. In some cases, newer versions might have different namespaces or methods, which could cause issues with Intellisense.

  5. Restart UiPath Studio:
    Sometimes, a simple restart of UiPath Studio can resolve Intellisense-related issues.

  6. Clean and Rebuild the Project:
    Try cleaning the project solution and then rebuilding it to ensure that all references are correctly resolved.

  7. Check “Import” Statements:
    Inside the “Invoke Code” activity, verify that you have the necessary “Import” statements at the beginning of the code block to import the required namespaces. For Microsoft.Office.Interop.Excel, you should have an import statement like this:

    Imports Microsoft.Office.Interop.Excel
    
  8. Try Different Activities:
    If the issue persists with the “Invoke Code” activity, consider using other UiPath activities to work with Excel. UiPath provides native Excel activities that do not require writing code, such as “Read Range,” “Write Range,” etc. These activities might also be more resilient to changes in the environment.

  9. Check UiPath and Microsoft Documentation:
    Refer to the UiPath documentation and Microsoft documentation for Microsoft.Office.Interop.Excel to see if there are any specific considerations or changes required when upgrading to a new Windows environment.

  10. Consider Alternative Approaches:
    If all else fails, you might consider using alternative approaches to interact with Excel, such as using the built-in Excel activities or exploring third-party Excel libraries compatible with UiPath.

the interop is referencing internally the office.dll. Therefore we do have a break when working on Windows compatibility as the office.dll is offered as Legacy.

With wrappings is can be accessed (e.g. UiPath Excel package internals). But with plain Assembly references the break is still given

Hello,
Thank You for the points.
It seems that it is not compatible with Windows version because of .Net Framework

Yes ,
Thank You for the help!

just to highlight it:

the interop is available for windows, but the referenced office.dll is offered at Legacy