Object reference not set to an instance of an object in Advance Assignment 1

datatable
datascraping
error

#1

Hi Team,

I am trying to resolve the Advance Training Assesment-1 when am trying to Extract the Datatable in https://www.acme-test.com/work-items am facing error “Object reference not set to an instance of an object”

Could someone please help me up in resolving the issue.
{{
“message”: “ExtractDataTable : Object reference not set to an instance of an object.”,
“level”: “Error”,
“logType”: “Default”,
“timeStamp”: “11:00:46”,
“processVersion”: “1.0.6706.35891”,
“fileName”: “ExtractDataTable”,
“jobId”: “00bf87e5-7b68-437b-889d-1f4d1b1e0173”,
“robotName”: “PRASA”
}}

Regards,
Prasanth


#2

@Prasanth_kolla Give default value to ExtractDataTable in variable section. I think it will solve your problem.


#3

The DataScrapping did not work accurately at that time see that data is getting scrapped properly. This error means that table has not been initialized before you started using that in some statements or the table is empty and you have used it


#4

can you please help me what can i provide in the default value ? am not sure of the Default value for the Datatable


#5

@Prasanth_kolla “New System.Data.DataTable” give this value to default value in variable declaration. IT may solve your problem.