We have used new sap activities to develop library activities (i.e- Click tool bar and Select menu item activities )
We are using those library activities in the artifact, but while publishing the artifact we are getting error message “ Null Reference Exception”.
Please look into the below step by step flow
We have used the below mentioned versions in a separate workflow and also as a library into another workflow. Kindly look into the test results for both below.
UiPath.System.Activities - 20.4.0
UiPath.UiAutomation.Activities - 20.4.2
Case1- Publish new sap activities as a separate workflow – Success
Case2 – Publish new sap activities as a library into another workflow - Failed
We have used below mentioned activities to create the new library
In artifact we have used above developed library and tested.
As soon as i try to publish/analyze the project we are getting ‘Null Reference Exception’ .
Note –
While publishing the above new sap activities in a separate workflow, we are not facing any issue. But at the same time if we are using the new sap activities as a library into the other artifact , we are facing above exception.
Thank you for your response. Studio version - 2019.10.3 Error message -
Process.xaml: System.NullReferenceException: Object reference not set to an instance of an object.
at Test_Naveen_lib.ClickTollBar.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)