Skip to main content
Question

Unzip error

  • September 17, 2018
  • 3 replies
  • 45 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!
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

takashi
Celebrity
  • 7843 replies
  • 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
  • 65 replies
  • 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.

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
  • 65 replies
  • 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.

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?