Error CS0234: The type or namespace name 'API' does not exist in the namespace 'UiPath.Excel.Activities'

Hello
Facing my hope here. I receive this when trying to publish. Any ideas on solution?

Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:

  • H:\Arbetsmapp\0.Redo att använda\IMDfiler\KontrolleraFormatIMD.local\install\CodedWorkflow.cs(9,31): error CS0234: The type or namespace name ‘API’ does not exist in the namespace ‘UiPath.Excel.Activities’ (are you missing an assembly reference?)

@johan.lanne What Dependencies do you have defined in your project? Could you upload your Process?

1 Like

You need to check the pakages installed propery in your project

Missing NuGet Package:

  • In rare cases, the UiPath.Excel.Activities package might be missing.
  • Go to Manage Packages in UiPath Studio.
  • Search for and install the UiPath.Excel.Activities NuGet package. This will ensure your project has the necessary references.

Re-import Namespaces:

  • If UiPath.Excel.Activities is already listed in the imports panel, try re-importing it.
  • Right-click on the namespace and select “Re-import Namespace”. This might refresh the reference and resolve the issue.

Check Assembly References:

  • Open the main XAML file for the library you’re trying to publish in UiPath Studio.
  • Go to the “Imports” panel (usually on the right side of the designer).
  • Verify if the necessary namespaces are imported. Specifically, ensure that UiPath.Excel.Activities is included in the list of imported namespaces.

Restart UiPath Studio:

  • Sometimes, temporary glitches can cause issues with references. Close and restart UiPath Studio. Try publishing your library again after restarting.

Use recamended UiPath Studio with Recomeded nuget Pakages

1 Like

Thank you for the answers, but i could not get the problem to go away. It runs fine debugging, but once trying to publish this is what i get. Also posting the list of Dependencies and Imported namespaces.

You share your sample code and let me try this my systems

1 Like

Very kind of you, but i do not know how to share it with you.

When i went through all processes used o found that two needed updated packages. Thank you!

Could you post what packages you, Imports and how you find so its help other community member

I needed to update the UiPath.Excel.Activities in two of the workflows i invoke, both folders hosting these two workflows were mentioned in the error message:

image

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