Issue in retrieving api response to dataset

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)

1 Like

HI @DeviE,

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


1 Like

Yes. It worked for me. Just added new Dataset

Great :slight_smile: @DeviE