For loop problem with SAP and Export pdf

Hello , I have a problem that looks like a UiPath bug during for loop.

I have an excel export that contains data variables . ( the data are different in each line)

line 1 : name , objet , number , day
line 2 : name2 , objet2 , number2 , day

In these variables there is an order number which is inserted on PGI SAP.

When the order is exported in pdf format from sap, the file is saved as ( see below)

Export 1 SAP >>>> number_objet_day.pdf
Export 2 SAP >>>> number2_objet2_day.pdf

Big problem during the second iteration the application executes the process but instead of using the second pdf file , **it keeps the first file and renames it with the indications of the second iteration. ** idon’t undersand where is the problem.

Export 1 SAP >>>> number_objet_day.pdf
Export 1 SAP >>>> number2_objet2_day.pdf

Moreover i have tested this code in previously and the problem never happen , i used a 2023.10.5 version studio

It is this potentially a UiPath bug from your point of view?
Thanks for your help …

@frederic-f.bonnet

Can you show how you are getting the file names

looks like the same name is being passed

to make sure try to run in debug use step into and check the locals panel to check the changes in variable values

cheers