Issue in retrieving api response to dataset


#1

Hi, I am trying to retrieve response from sharepoint list using http request activity. I used dataset to read the XML string value.


But i am getting the below error
System.ArgumentNullException: Value cannot be null.
Parameter name: TargetObject
at System.Activities.Statements.MethodExecutor.BeginExecuteMethod(AsyncCodeActivityContext context, AsyncCallback callback, Object state)
at System.Activities.Statements.InvokeMethod.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)


#2

HI @DeviE,

Make sure did you created object for dataset.
DS_Master=new DataSet()

Regards,
Arivu


#3

Yes. It worked for me. Just added new Dataset


#4

Great :slight_smile: @DeviE