I’m going through the Data Table Extraction from the academy. Unfortunately it does not work returning Object Reference not set to an instance of an object.
Hi, I looked at your workflow and you have “ContinueOnError” set to true, so if the Extract activity fails to find the selector then it will never set anything to your datatable variable. You might need to change the continueonerror to false and see what error occurs, then make adjustments if needed.
You can also check if the data was extracted by looking at: (out_dt_WIs is Nothing).ToString //should be False if it has something in it
or (out_dt_WIs.rows.count).ToString //show how many rows it found if the dt is not nothing
thanks for your great insights. Indeed, thanks to your code, I could verify that the data table is empty. Now the question is why is it empty? Where is the mistake? Any chance you could run the code by going to ACME System 1 - Log In? I’m happy to share username and password if you would like.
I am also facing same issue and because of data table is empty. Also I tried all the solutions mentioned in above posts but still facing same issue. In case you are you able to fix this issue then can you please share solution or code (xml file if you can)?
PS: I also tried after resetting data but getting same error message.
Your datatable is not define that is why its throwing error… add this as a default value for New System.Data.DataTable for ExtractDataTable and also assign selected values in the same workflow instead of assign it in main workflow. I hope you understood and it will help you to resolve your issue.