Skip to main content
Question

Unzip error

  • September 17, 2018
  • 3 replies
  • 38 views

jatoxa
Contributor
Forum|alt.badge.img+12

Hi!

 

I'm making a workspace that reads files and folders and upload/recreate these files and folders on a web location. I can't find a good way to upload entire folders to FME Server when submitting jobs.

 

Instead I made a solution that uploads and unpacks zip files to get the entire folder structure to the server. 

 

Of course it worked fine with all my own files but when trying a zip file my colleague have made I get the following error using the "ZipExtractor": 

 

ZipExtractor_Terminator(TestFactory): ZipExtractor_Terminator: Termination Message: 'Unexpected error: 'ascii' codec can't decode byte 0x94 in position 32: ordinal not in range(128)'
ZipExtractor_Terminator: Termination Message: 'Unexpected error: 'ascii' codec can't decode byte 0x94 in position 32: ordinal not in range(128)'
Error encountered while calling method `input'
ZipExtractor_PythonCaller(PythonFactory): PythonFactory failed to process feature
A fatal error has occurred. Check the logfile above for details

Using the Unzipper I get the workspace to run but not all files and folders make it through the transformer. 

 

 

Does anyone know a workaround? Or even a better way to upload folder structures to FME Server?

 

 

 

Thanks!

3 replies

takashi
Influencer
  • September 17, 2018

Hi @j2, thanks for using the ZipExtractor.

The error could appear if the version of Python interpreter was 2.7 and a file path to be extracted contains non-ascii characters. Hopefully the issue might be resolved if you set "Python 3.x" to the Python Compatibility parameter for the workspace.


jatoxa
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • September 17, 2018
takashi wrote:

Hi @j2, thanks for using the ZipExtractor.

The error could appear if the version of Python interpreter was 2.7 and a file path to be extracted contains non-ascii characters. Hopefully the issue might be resolved if you set "Python 3.x" to the Python Compatibility parameter for the workspace.

Hi takashi,

 

Thanks for the quick reply! And thanks for making the ZipExtractor:)

 

 

I thought I had already tried your solution but I had changed to Python 3.x in the general settings instead of the workspace parameters so now it works perfectly!

 

 

 


jatoxa
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • September 17, 2018
takashi wrote:

Hi @j2, thanks for using the ZipExtractor.

The error could appear if the version of Python interpreter was 2.7 and a file path to be extracted contains non-ascii characters. Hopefully the issue might be resolved if you set "Python 3.x" to the Python Compatibility parameter for the workspace.

I can't seem to get it running on the server though. Do you know if I have to make some configuration here as well?

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings