Skip to main content

Hi,

Using FME Server, I am writing a large amount of data to a gdb to then be zipped up, using the custom transformer ZipArchiver. It works until it reaches its 2GB limit and then fails with the following lines:

Ideas for a workaround for this would be gratefully received! Is there a quick fix? Would Gzip work better?

Kind regards

Edit the custom transformer and open the PythonCaller. Modify line 63 to set "allowZip64" to True. The line should look like this:

with zipfile.ZipFile(zpath, 'a', zipfile.ZIP_DEFLATED, allowZip64=True) as zipper:

Perhaps @takashi would consider making this the default for the next release? :-)


Edit the custom transformer and open the PythonCaller. Modify line 63 to set "allowZip64" to True. The line should look like this:

with zipfile.ZipFile(zpath, 'a', zipfile.ZIP_DEFLATED, allowZip64=True) as zipper:

Perhaps @takashi would consider making this the default for the next release? :-)

@david_r, thanks for your suggestion. Yes, setting True to the allowZip64 flag could resolve the issue.

Setting Python 3.4+ (or later) to the Python Compatibility parameter in the workspace could also be a solution, since the allowZip64 flag is set to True by default in Python 3.4+.


Edit the custom transformer and open the PythonCaller. Modify line 63 to set "allowZip64" to True. The line should look like this:

with zipfile.ZipFile(zpath, 'a', zipfile.ZIP_DEFLATED, allowZip64=True) as zipper:

Perhaps @takashi would consider making this the default for the next release? :-)

Updated the ZipArchiver in FME Hub to allow zip64 by default :-)

 


Edit the custom transformer and open the PythonCaller. Modify line 63 to set "allowZip64" to True. The line should look like this:

with zipfile.ZipFile(zpath, 'a', zipfile.ZIP_DEFLATED, allowZip64=True) as zipper:

Perhaps @takashi would consider making this the default for the next release? :-)

Thanks guys, this seems to have worked :)

 


Reply