Hi, I’m getting issue regarding Cannot create unknown type when run the script

Hi Team,

I have one project which is develop in below version.
“schemaVersion”: “4.0”,
“studioVersion”: “20.2.0.108”,
“projectVersion”: “1.0.1”,

I am trying to run that package using uipath robot its showing the below error message when we are trying to run .
Error message : Cannot create unknown type ‘{http://schemas.uipath.com/workflow/activities}InvokeWorkflowFile’.

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.FuncFactory1.Evaluate() at System.Activities.DynamicActivity.OnInternalCacheMetadata(Boolean createEmptyBindings) at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList1& validationErrors)
at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack1& activitiesRemaining, ActivityCallStack parentChain, IList1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback)
at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList1& validationErrors) at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList1& 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.d__83.MoveNext()

Is there any solution for same?

1 Like

Hey @kwaghmode

Welcome to forums

Check below post

https://forum.uipath.com/t/cannot-create-unknown-type-http-schemas-uipath-com-workflow-activities-invokeworkflowfile-solution-steps/117213

Mark as solution if this helps

Thanks

1 Like

Hi Ksrinu,
Still i am facing the same issue .
I have moved the all the packages from the development machine to my local machine Nuget location.
Do u have any idea that how to identify the corrupt package from the project so we can troubleshoot them.

RobotError

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