my studio just updated today to 2019.10.3 and after I opened my previously working project. It is now displaying a validation error. My project has dependency on my other UiPath Library Projects named OdysseyLibrary. It Used to work with no errors prior to the update.
Validation Error:
Issuance.xaml: System.NullReferenceException: Object reference not set to an instance of an object.
at OdysseyLibrary2.NewReceipt.GetImplementation()
at System.Activities.Activity.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, IList`1& validationErrors)
at System.Activities.Validation.ActivityValidationServices.InternalActivityValidationServices.InternalValidate()
at System.Activities.Validation.ActivityValidationServices.Validate(Activity toValidate, ValidationSettings settings)
at System.Activities.Presentation.Validation.ValidationService.CoreValidationWork(ValidationReason reason, CancellationToken cancellationToken)
Would appreciate if anyone can explain why I’m getting this new error, thanks.
Really appreciate your help on this, I am at a lost on what’s going.
Here is what I did so far to hit this error:
After the studio update I opened the Library Project on Studio 2019.10.3 and republished it even without changing anything, it published successfully without errors.
I then opened my main process project on Studio 2019.10.3 and then updated the OdysseyLibrary2 package to the newly published version.
After the package update I immediately get this error as seen on the attached screenshot
I dug a little dipper and did a trial and error, to see which activity in my library is causing this error.
I created a new blank Library Project and I tried to re-create 1 functionality workflow for testing which is my application login workflow.
So one by one I add an activity and publish the library and update it on my main test process project, everything was fine until I added a UiPath.Core.Activities.SelectItem activity and then I hit the same validation error message.
Can you test this on your end? If this is the activity that maybe is causing this because my OdysseyLibrary is full of this activity and maybe that is why I am getting the validation error.
This is a pretty big game-stopper. I recently ran into this issue and thanks @jeffreyhermosa for escalating this.
@alexg do you know if there is a timeline when this will be fixed. And, if this is something that can be resolved through a simple activity package update, or is it going to need to be an Orchestrator update. It is a major headache for us to get IT to make an update to Orchestrator and Studio.
@ClaytonM If you can’t bump up version there is also the possibility to switch the compiler with the following flag: “UseLegacyLibraryCompiler”.
You can find more details here: About Libraries
wow, thanks. I had the same issue , i replaced as u suggested and it worked. Thanks again.Do you know if anyone from uipath team are working on this issue?
Hi,
My process is throwing the same error all of sudden even though I havent upgraded UiPath Studio. I am using UiPath Studio 2019.10.3 Enterprise version.
I tried replacing Select Item to Select Multiple Items but still didnt fix.
Any idea what could be the issue. @alexg@jeffreyhermosa
I’m encountering the same exception with a custom library: substituting activities doesn’t resolve it either. Does anyone have other troubleshooting suggestions? Thanks!
@Mox I dont have solution for this but i presumed the issue is in custom library package, creating local workflow and not referring to library did fix for me.
Create workflow local in your project and remove referencing from custom library. Let me know how it goes.