Has anyone used the RPA "Write Text File" activity to create a file?

The RPA documentation for the Write Text File activity states:

You can select this activity to write a specific text in a file. If the file already exists, then the existing text is overwritten. If the file does not exist, the file is created.

Maybe we're the first to actually try and use this(?) but our observed experience is that it fails with a 404 "File Not Found" if the file does not already exist (and halting the flow if "Continue on Error" is unchecked). And if it does exist, it merely appends to it, rather than replacing the contents.

Suggestions on how to create a file? Or replace a file?

Tagged:

Answers

  • Carsten Steinhoefel
    Carsten Steinhoefel Member, Staff Posts: 23

    I can confirm the behaviour you describe. I will see that it is either fixed or the documentation updated depending on what the intended behaviour was.

    However you can create a file with the Create File activity and then write to it as above. To replace the file you have to use the Delete File activity first.