Issue with Read range - variable already set

Hi, ive a strange error with read range function: Read Range: Object reference not set to an instance of an object.

I’ve correctly set the variable to workbookApplication but error persist.

can someone help me? thanks

auto attach.zip (73.2 KB)

did u try to open and close the workflow?

Try initiating the Datatable…

tried. not work

Tried not work :frowning:

Make the D1 in the range…

image

1 Like

It work! But why ive this error? explain me please

In the read range, we have to pass the start cell number…
If you don’t pass anything then it will be confusing for the compiler to identify from which cell of D you want to read…
If you don’t pass anything then UiPath wrote the code to consider the first working cell by default as a start of reading the file…

So you either pass empty or cell value to the read range…

1 Like

Many thanks! Why i can’t sign the discussion as solved?

I really don’t have an idea of how to do that…
I never raised the issue so not aware of it…
Many people ask me how to mark it as solved…
Let me know if you find…

@Danny_Gi - But you did one yesterday…(not the other :wink:)

Yes yesterday afternoon the button was just at the bottom of messages. Yesterday night and today no :expressionless:
Dunno why

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.