How to use Azure File share as Nuget package path?
Error Message:
ERROR1:
Error as “The User name or password is incorrect”
ERROR2:
System.Xaml.XamlObjectWriterException: Cannot create unknown type '{
http://schemas.uipath.com/workflow/activities}SendOutlookMail
'.at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
at System.Activities.XamlIntegration.FuncFactory
1.Evaluate() at System.Activities.DynamicActivity.OnInternalCacheMetadata(Boolean createEmptyBindings) at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList
1& validationErrors)
at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack
1& activitiesRemaining, ActivityCallStack parentChain, IList
1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback)
at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList
1& validationErrors) at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList
1& validationErrors)
at System.Activities.Hosting.WorkflowInstance.ValidateWorkflow(WorkflowInstanceExtensionManager extensionManager)
at System.Activities.Hosting.WorkflowInstance.RegisterExtensionManager(WorkflowInstanceExtensionManager extensionManager)
at System.Activities.WorkflowApplication.EnsureInitialized()
at System.Activities.WorkflowApplication.Enqueue(InstanceOperation operation, Boolean push)
at System.Activities.WorkflowApplication.SimpleOperationAsyncResult.Run(TimeSpan timeout)
at System.Activities.WorkflowApplication.BeginRun(AsyncCallback callback, Object state)
at UiPath.Executor.RobotRunner.<RunWorkflow>d__103.MoveNext(), HResult -2146233088
Resolution: To configure / use Azure file share, perform the below steps,
- Create a storage account in Azure Portal and then create a File Share
- Now go to Azure File share in the Azure portal and click on connect and choose Storage account key. On selection of the Storage account key, it will show script details. Copy this script and save it in a notepad to use later. Refer below image for different options in Azure File share
- Now go to the Robot machine and open PowerShell as a Robot account user
- Run the script copied in step 2 in PowerShell. This will map the Azure file share path with the Robot user
- Download PSexec.exe from the Microsoft website
- Open the new PowerShell as administrator and navigate to the folder where PSexec is downloaded
- Run the below command to open a new PowerShell under the local system account (NT authority\system).
- Now run the script copied in step 2 to map the Azure file share path with the local system account
- Once the above is done then update the Azure share path in UiPath.config file. Refer to below image.
- Restart the Robot service for changes to get reflected
- Now robot should be able to download the files in Azure file share
- When a job is executed, “Cannot create unknown types” error might be thrown
- To resolve this error, follow below steps
- Go to Internet options à security à trusted sites in Internet Explorer
- Add the Azure file share URL without HTTP in the trusted site
- Uncheck the “require server verification” check box to allow non-http URLs in the trusted site
- Once the above is done, test the process in UiPath Assistant or from Orchestrator
Note: Make sure Azure file share Path is accessible in File explorer in Robot machine via Robot account.