Scenario - I have a workflow called “ForEachDataRow” in the workflow I have a variable called “dt_veritity” type DataTable in that worklfow I have an invoke Workflow file called “Compare DT PIN with DT PID.xaml”
I am trying to use arguments to pass that dt_veritity data table into the Compare sequence. So in that sequence I create an argument called in_dt_Verity as a type DataTable. then I import the argument in.
Am I doing this correctly? Because when I run the file in the Compare workflow i get this Write Line: Object reference not set to an instance of an object.
Are the datatables being populated with values before getting drafted as an argument into other workflows?
If not, then that is why you are facing this issue.
Either you should populate it with values(ideally) or you should initialize it either in the parent workflow or in the child workflow(doesn’t make much sense here, since an argument is supposed to ferry values into a workflow).
Simply initialize the datatables by using an Assign Activity->
If you are trying to Run the Compare Workflow Directly, since there are no values being passed to the Datatable Arguments, the datatable values are not initialised and is null. Hence it gives out the Error.
To confirm on it , I believe you have used the Datatable argument in the Wrtie Line Activity as the Error States ? If not do Check the Write Line Activity’s contents