Object reference not set to an instance of an object error in unattended session

Hi, I’m facing Object reference not set to an instance of an object.
it’s running fine in my system but not able to execute in unattended session.
other thing is it used to work fine previously but throwing this error now, Have used Extract table data activity and tried to initialize it in variable too in variable field


The image shows a variables settings table with columns for Name, Variable type, Scope, and Default, displaying two variables: "f_VerifyDelay" of type String and "ExtractDataTable" of type DataTable. (Captioned by AI)

@jaswanthvarma.gottumukkal,

  1. Check if you have duplicate variable with same name.
  2. Add breakpoint on the activity throwing this error and observe the value of ExtractDataTable

Hi @jaswanthvarma.gottumukkal
Can you try once initializing the datatable variable before you use it, probably in an assign activity and not initialize it in variable panel.
Sometimes this solves the error
Hope this helps anyway or the other

Thank You

thanks for the reply
while debugging there is no issue so if i add any breakpoint also it’s no use, it’s passing fine
There is no duplicate variable as i have added a screenshot i have created only one variable

in the last execution (a month ago) it worked fine but now it’s throwing this error.

Ohh i’ll try it
thanks :slightly_smiling_face:

1 Like

May be a delay before extraction, to check if f it’s because of page loading issue

@jaswanthvarma.gottumukkal

As per error there is some null or empty variable

Is it failing on this step only or the step before or after?

Because inthis step it is extracting and cannot fail with object ref if extracttable variable is blank as it can be blank or null there…there must be some other variable or it is failing at a later or previous activity

Cheers

yes you are right it’s failing in in below step LINQ query :blush:

1 Like

@jaswanthvarma.gottumukkal

Then please verify what you are doing there…I believe the table is empty and you are trying to eprform aome query there so it fails…or a where condition is used where all the rows are removed and then you are trying to copytable

Correct them and it should be fixed

Cheers