Dynamic numbers when saving multiple files

I am trying to save files in a loop and save the file name in an iteration like 1,2,3,4,5. Im not sure what I’m doing wrong because it saves every file as “Buyer Side 1”. Do I have currentBatch + 1 in the wrong place?

(BuyerFileName = “Buyer Side” + currentBatch.ToString)


@Laura2

Place the assign activity at staring as

Currentbatch=currentbatch+1

Currentbatch as is a variable of int32 i has a default value as 0

Remove the assign activity at last