Get Text /Full Text / OCR Text is carrying the old value from Previous Transactions

Description

Hi There,
I came across this scenario where the following activity Get Text/Full Text/OCR is extracting one of the field ( CTR) from web application and that value from the first transaction is being carrried out for the rest of the transactions aswell.
This field value is different for other transactions but unfortunaltely the value is getting carried.
we also tried making the out of the above activity variables to empty but its still not working.
kindly suggest.

Link

Date

2025-07-15

Related UiPath products

Studio

@avinashy

Check your variable/argument scope or try to make it null after using the get text activity.

So that value should be null for next transaction.

Hi @avinashy

Check variable scope,
its default value
and in the beginning of transaction processing, assign nothing/null to that variable.

If your process is set up correctly, there is no reason to set it to null like others have suggested. Make sure you don’t have the variable defined more than once (use Universal Search to look for it or search the variable name in Data Manager). Also if you’re in a web app there is no reason to use OCR. Just use the Get Text activity, indicate the element, and leave all the other settings as their default.