Skip to main content

I have a process which creates 4 asc files, and then sends them to a zipped file. 

At the end of this process, this file is to be emailed. I have an attribute creator which creates the file name as ‘attachment’, as it does contain dynamic elements, before using that attribute as the attachment field in the emailer. 

When i run it on my local computer, it works perfectly fine, and I get an email with all four files zipped. However, when i run it on FME server, the zip file only contains 1 of the four. Regardless if the files have content or not, they should all write to the folder, and then do, i can see in the fmeserver directory, that all 4 files have been zipped up, but when it is emailed, it just seems to delete three of them. The sampler is there so it only sends one email, but the attribute creator refers to the zipped file, which is created in the system caller, so all four should be sent. 

 

 

How is the sampler configured? First 1 or Last 1?


I wonder if the Sampler is already letting feature #1 through while the SystemCaller is still working on file #2. Can you try inserting a FeatureHolder between the SystemCaller and the Sampler? This will have the effect of the processing waiting until all 4 files have been zipped.


How is the sampler configured? First 1 or Last 1?

First - i see my issue….


I wonder if the Sampler is already letting feature #1 through while the SystemCaller is still working on file #2. Can you try inserting a FeatureHolder between the SystemCaller and the Sampler? This will have the effect of the processing waiting until all 4 files have been zipped.

 

Thank you so much, such an obvious solution….I wonder why it worked locally though, and not on FME Flow? I assume that the server was just fast at processing the features!


 

Thank you so much, such an obvious solution….I wonder why it worked locally though, and not on FME Flow? I assume that the server was just fast at processing the features!

Yeah, that may be it. A timing issue.


Reply