G Sheets Variable not recognized

Uploading my test , just in case

And few screenshots

My problem is I get undefined value when I place a request error.
I checked that the variable I set( RN_randomNoPlus1) isnt getting updated. Please help