Read range: This location is marked as const, so its value cannot be modified

Hi,
I have problems with the Read Range activity on a computer. The user is the administrator of the machine.
First I had installed 2018.4 and then we have uninstalled it and put 2018.3.3 and it continues with the same problem.
Does anyone know what may be happening?

The error that return the activity is “Read range: This location is marked as const, so its value cannot be modified.”

Regars

Hi @CarlosWork

Do you by any chance work with a variable that is set with a Modifier “ReadOnly”?
image

Please create a new project for debugging purposes and see if it will work with a newly created variable:
image

In the end I managed to do it by copying the activity from 2018.2.3 to 2018.4.

Effectively what you say is correct the difference is that I created the DT variable as “Read Only” in 2018.4 and in 2018.2.3 as None
What I can not understand is how it fails, if we are only reading the file and no other operation is being performed.

Best Regards

1 Like

I believe Read Range actively saves the data into that new variable. This means, that if it is set as ReadOnly, the Read Range activity cannot save the read data into that variable.

I hope it makes sense :slight_smile:

2 Likes