Creating a CSV file with string variables

Hi!

I’m facing an issue with a CSV file creation. I’ve a sequence datas been extracted with regex in a for each, this loop runs in a folder and read a serie of txt files. After this extraction I want to create a CSV the variables that I’ve collected.

Screenshot_17

ArrayRow: {numeroFA, nomeConsumidor, nomeFornecedor, anoInicialFinalExt, anoInicialFinalExt}

These above are my variables in that Add Data Row

I’m getting this erros below
For Each Row: Collection was modified; enumeration operation might not execute.

Each file read (extracted data) should be a row in this csv

Have you tried to use Write CSV activity instead of Append?