Skip to main content

This might be the most stupid question ever posted but I do find this problematic. I've had difficulties with this many times over the years which leads me to the conclusion that I'm not using best practice.

On FME Server (Windows) I want the user to input a folder and then I want to read several pdf-files (for uploading to S3) from this folder. When run I get all errors despite how I format the path. So, I'm guessing I have configured FME Server wrong. I've tried UNC-paths as well. This will be a difficult task to solve in this forum I guess.

Another option would be to input a zipfile with all the pdfs neatly zipped into it. What would be the best practice for this? That is my question.

If you only need to loop over each PDF and upload it to S3, I'd simply use the "Directory and File Pathnames" reader followed by the S3Uploader. I'd skip using a zip compression unless you really need it. If needed, there's an Unzipper transformer on the FME Hub that might help, I'd recommend using it in conjunction with the TempPathnameCreator.

If the PDF files are located on a network drive you will have to configure the FME Server engines to run as a domain user account (the default local system account has no access outside the local machine), see: https://docs.safe.com/fme/html/FME_Server_Documentation/Content/AdminGuide/Running_FME_Server_Engines_Under_Different_Account.htm


If you only need to loop over each PDF and upload it to S3, I'd simply use the "Directory and File Pathnames" reader followed by the S3Uploader. I'd skip using a zip compression unless you really need it. If needed, there's an Unzipper transformer on the FME Hub that might help, I'd recommend using it in conjunction with the TempPathnameCreator.

If the PDF files are located on a network drive you will have to configure the FME Server engines to run as a domain user account (the default local system account has no access outside the local machine), see: https://docs.safe.com/fme/html/FME_Server_Documentation/Content/AdminGuide/Running_FME_Server_Engines_Under_Different_Account.htm

Your're right, but since this function will be running on FME Cloud I guess I will have to go with the zipped alternative. I will try with the TempPathnameCreator. It should work. Thank you, David.

 

 


Reply