Skip to main content
Solved

Bestand wordt opgepakt zonder body

  • May 20, 2026
  • 3 replies
  • 21 views

Forum|alt.badge.img+1

Hi,

We are experiencing an issue with an XML interface from our Thinkwise application to an external application. The external application picks up files that the Thinkwise application places in a specific location.

However, sometimes the file is picked up so quickly that it has already been created, but the body has not yet been written to the file. We are using the standard process actions for this.

Is there a way to prevent this from happening? I would like to hear how others solve this in their applications.

Best answer by Mark Jongeling

Hi Dylan,

Sounds like the external application is a speedy one. Perhaps use a different initial writing location for the files that the Thinkwise application places. Only once the files are all final, move the files to the desired location where the external application reads. That should do the trick.

3 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hi Dylan,

Sounds like the external application is a speedy one. Perhaps use a different initial writing location for the files that the Thinkwise application places. Only once the files are all final, move the files to the desired location where the external application reads. That should do the trick.


Forum|alt.badge.img+1

Hi Mark,

That was indeed one of the options we were already considering. However, what seemed even better to us was to write and fill a file, for example as a .txt file, and then have it converted into an .xml file.

Is there a process action that supports this?


Mark Jongeling
Administrator
Forum|alt.badge.img+23

We do not have a rename file process action, then the alternative would be to

  1. Write the .txt file (New)
  2. Write its context (Overwrite)
  3. If needed, Read its content
  4. Write the .xml file (New) with the data from either step 2 or 3
  5. Delete the .txt file

Seems a bit convoluted to me so I would opt for a staging folder. It can even be inside the folder where the .xml should be placed so you don't need a new folder location.

Write file to XMLFiles\Staging\filename.txt (do capture the file path)

Move file from File path to the folder location (e.g. XMLFiles)

Hope this gives inspiration!