Converting .txt file into .edi

I am having a folder of txt files that I wants to convert into .edi

Hi @ajindal ,

You can use Copy file activity

From : your text file path
To : c:\arivu\filename.edi

Copy File (uipath.com)

Regards,
Arivu

we assume that Electronic Data Interchange is meant, right?

In general a changing of the filetype extension is not doing a conversion. So we would recommend to check:

  • what is the content of the txt file? Already edi data or data which needs to be mapped
    when data is to be mapped:
  • get a definition of the edi structure details
  • get a definition of the mapping rules

how to do it for a folder containing several txt files

Hi @ajindal ,

below syntax will return all the files folder
Directory.GetFiles("Folder path","*.txt")

inside loop you can copy file activity

Regards,
Arivu

Hi @arivu96 ,
Thanks for the help.
Can you generate a xaml file for few dummy txt files in a folder and converting it into edi, as I am not able to to what you told

Hi @ajindal ,

please find the below xaml file
Sequence.xaml (3.6 KB)

Regards,
Arivu

Hi @arivu96

There is nothing in that sequence file

Hi @ajindal ,
please check below xaml
Sequence.xaml (5.0 KB)

Regards,
Arivu

1 Like