I have created Build Data Table In Init(first run) and making that datatable variable to entire reframe work(general business)
I have taken add data row activity in before process transaction XAML and the variable was displaying and i was passing in ADD DATA ROW activity. but i was getting error as Object reference not set to an instance of an object
I have checked in local pannel also while debugging its showing NULL
Same add data row activity is working in another sequence…!!
Before adding the rows to datatable you need to initialize the datatable first. In the Variables panel for your DataTable add the default value as new System.Data.DataTable
In case you are using Build datatable activity make sure that you datatable variable is assigned in the property panel.
@Rishik_Chowdary , Then it might be problem with the data that you are adding as row to the dataTable. Can you use write line or log message activity to print all the columns that are being added to the row. If any of the value id null and you are doing any operation on that null value would cause this kind of error.
check the scope of the variable and ensure that there is no other variable with the same name in other/different scope. Universal search on variables will help for this check