Error: RemoteException wrapping System.ArgumentNullException: Value cannot be null. (Parameter ‘referencedAssemblies’)
at UiPath.Shared.AssemblyUtils.GetLoadedAssemblies(IEnumerable1 referencedAssemblies) at UiPath.Workflow.Operations.Serializer.Services.InvalidXamlNodesFinder.GetMissingTypes(XamlReader br, IEnumerable
1 dependencies)
at UiPath.Workflow.Operations.Serializer.Services.InvalidXamlNodesFinder.Process(Stream stream, IEnumerable1 dependencies) at UiPath.Workflow.Operations.Serializer.Services.WorkflowXamlSerializer.CreateFromStream(Stream stream) at UiPath.Workflow.Operations.Serializer.Services.WorkflowXamlSerializer.LoadFromFile(String file) at UiPath.Studio.Plugin.Workflow.Services.WorkflowManagementService.AddVariableByFileName(String filePath, String variableName, String variableType, String defaultValueExpression) at UiPath.Studio.Plugin.Workflow.Services.WorkspaceService.AddWorkspaceVariablesToWorkflowFile(String workflowFilePath, BusinessWorkbookOptions options) at UiPath.Studio.Plugin.Workflow.Services.WorkspaceService.AddWorkspaceVariablesToWorkflowFileAsync(String workflowFilePath, BusinessWorkbookOptions options) at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List
1 cancellationTokens, Func2 func, String message, Func
2 exceptionHandler), HResult -2146233088
I am getting this error on studiox. Studio also creates projects without errors. In Studiox, it creates the project when creating Cross-pltaform, but it does not work when creating Windows. how do i solve this ?
Make sure you have passed the values correctly in the activities. Refer the below points.
- Check Dependencies: Ensure that all the necessary dependencies and referenced assemblies are properly included in your project. It’s possible that some dependencies are missing or not properly loaded, leading to the ArgumentNullException.
- Update Activities and Packages: Make sure that all your activities and packages are up to date. In StudioX, this can be done through the Package Manager. Update any outdated packages and activities that might be causing conflicts.
- Clean and Rebuild: Try cleaning the solution and then rebuilding it. Sometimes, this can help resolve build-related issues that may cause errors.
- Restart StudioX: Close StudioX and reopen it to see if the issue persists. Sometimes, a restart can clear temporary issues.
- Check File Permissions: Ensure that you have sufficient permissions to access the workflow files and any related dependencies. Sometimes, access restrictions can cause issues.
- Corrupted XAML: It’s possible that the XAML file itself is corrupted. Try creating a new workflow and adding the workspace variables again to see if the problem persists.
- Check Compatibility: Verify that the activities and dependencies you are using are compatible with StudioX. Some activities designed for Studio might not work seamlessly in StudioX.
- UiPath Community Forum: If the issue persists and you are unable to resolve it, consider posting your problem on the UiPath Community Forum. The community is helpful and might be able to provide specific guidance based on your setup.
- Contact UiPath Support: If the problem remains unresolved, you can reach out to UiPath Support for assistance. They can help you diagnose and fix issues related to the UiPath StudioX application.
Regards.
Please open the properties panel of all the activities and check whether you have passed all the mandatory values.
Hope it helps!!
The problem was related to VBA’s NuGeT files. I solved the problem when I showed the files in the correct location.