Unable to download ZIP file

Hello Team, We have used ZipHandling module from app store to zip multiple files and then download zip file, but we are getting this below error(Did not expect an argument to be undefined Error: Did not expect an argument to be undefined) when security of project is set to production and when we changed the project security as OFF then the zip file is getting downloaded, how can I fix this issue ?     Thanks In Advance
3 answers

Hi Ashar,

Do you store the zipped file in the default FileDocument entity? If this is the case, try to create a new entity in your own domain model, inheriting from FileDocument. Make sure to use this new entity to store the zip result into, instead of the FileDocument entity. Now you can configure your own entity access rules (for this new zip result entity), which should prevent this error from happening.

See https://docs.mendix.com/howto/data-models/working-with-images-and-files#4-file-documents for more information.

Hope this helps!


Hello Ashar,

After facing this issue in my project, I have developed and published a module Zip Download: https://marketplace.mendix.com/link/component/212256


Please follow the steps;

  1. Download it from market place.
  2. Go to the installed module security.
  3. Create a security role and assign it in app security.
  4. Now use the microflow action zip download.
  5. It will work fine and nice.

Hope my answer helps. Reach me out for any queries.


Does the created file have a (file)name? In my experience it's what Allard says, a security issue, or a missing filename.