What’s the difference between App Integration > Word activities and System > WordDocument activities in version 1.3.4?
Getting different behaviour with the Read Text activities, when using a Word Application Scope and its respective Read Text activity the file can be read, but when using the other Read Text I get an exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Novacode.Container.GetListItemType(Paragraph p)
at Novacode.Container.get_Paragraphs()
at Novacode.DocX.get_Paragraphs()
at Novacode.DocX.PostLoad(Package& package)
at Novacode.DocX.Load(String filename)
at UiPath.Word.FileDocument…ctor(String documentPath, Boolean createNew)
at UiPath.Word.Activities.DocumentActivity.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)
And the error looks like the activity with this error has a variable in it with null value
Kindly check the variable whether it is passed with value or not
The _Sandbox.xaml workflow has 4 activities that set the file name, and read the content twice
Workflow > Control > Assign
App Integration > Word > Word Application Scope
App Integration > Word > Read Text
System > File > WordDocument > Read Text
When running I get this exception
18.4.3+Branch.master.Sha.9888b477be8d3ec8a832306fc59c34ba6edad108
Source: Read Activity Text
Message: Object reference not set to an instance of an object.
Exception Type: System.NullReferenceException
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.NullReferenceException: Object reference not set to an instance of an object.
at Novacode.Container.GetListItemType(Paragraph p)
at Novacode.Container.get_Paragraphs()
at Novacode.DocX.get_Paragraphs()
at Novacode.DocX.PostLoad(Package& package)
at Novacode.DocX.Load(String filename)
at UiPath.Word.FileDocument…ctor(String documentPath, Boolean createNew)
at UiPath.Word.Activities.DocumentActivity.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)
May I know what is the value of scopetext or activitytext variables passed as input file path to either of READ activity
As it didn’t have any value in it the activity throws error like object reference has no value in it
Kindly check that once
Cheers @Spamish