Getting this error after updating packages in script ... :(

image

Cannot set unknown member ‘UiPath.Core.Activities.GetLastDownloadedFile.FileResource’.

at System.Xaml.XamlObjectWriter.WriteStartMember(XamlMember property)
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.InProcessRunner.<>c__DisplayClass6_0.g__StartWorkflow|1()
at UiPath.Executor.InProcessRunner.BeginExecute(AsyncCallback callback, Object state)
at UiPath.Core.Activities.ExecutorInvokeActivity.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state)
at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

@Munish_Jain

Check the required dependencies are updated

Hope this may help you

Thanks,
Srini

Hi @Munish_Jain

Can you can try these steps:

Can you check if the FileResource property is spelled correctly and is accessible in the GetLastDownloadedFile activity and also if you are using the correct version of the GetLastDownloadedFile activity. Sometimes, different versions of activities can have different properties.
If the issue persists, try recreating the GetLastDownloadedFile activity and check if the issue is resolved.

Thanks!!

Thanks!

Hi @Munish_Jain

This can be due to Typographical error, Version incompatibility, Missing dependency, Runtime error.

  1. Double-check the spelling and case of the property name and the activity name.
  2. Ensure that the activity package version is compatible with UiPath Studio version.
  3. Check if all the required dependencies and references are added to the project.
  4. Review the workflow for any runtime errors or exceptions that may be causing the problem.

Cheers!!!

It has alot of activities… not sure how to fix it from the above solutions which are not specific…

As @Nitya1 mention please check this activity if all properties are valid. Try an isolated run of this activity only, if you get error or not.

Ma’am I don’t see any errors in this…


Is your issue fixed now?

Nope. I don’t get the error if I run the script through studio, but I like to run it from the assistant

Can you run and see if any error occurs or not?

Please close thread… no solution