Skip extra check if file exist

Hi,
i have a process need to write to file
i was trying to assgin global variable where i save the file name location…
but UiPath goes banana with any global variables

is there any other to i have the check in the process it self but its very consuming

i want to skip all this checks want only one on the first item,
but how to make it global !

BR/Hazem

@Hazem_Saleh

May I know why you need it as global?
and on what version are you on?

cheers

Global to assign it once , im trying focus on performance
the studio is 23.4.2 i raised to ticket seems a studio bug, still investigate it

@Hazem_Saleh

if you are using ref…then do it inside initilaization, if first run

cheers

the challenge here the data is from the transaction item !

for example if upload 5k item to queue will have this specific filed i want to name the file after and its the same for all
but change only on populate queue