Should be no problem.
Have you turned on the "Merge" option?
That would be necessary for some reader formats to read all files.
Should be no problem.
Have you turned on the "Merge" option?
That would be necessary for some reader formats to read all files.
Hi erik_jan,
Thank you for the answer. The "Merge" option, to merge attributes from the incoming feature with attributes from the resulting features, is enabled in the FeatureReader transformer.
This example uses a ZIP file with one CSV file included:
These are the settings I used for the FeatureReader:
This example uses a ZIP file with one CSV file included:
These are the settings I used for the FeatureReader:
Thank you again for your answer, but it does not work for reader type "Directory and File Pathnames".
Thank you again for your answer, but it does not work for reader type "Directory and File Pathnames".
Hi @verdoodtdries, If you try adding a Directory and File Pathnames (PATH) reader with setting a zip file path to the Dataset field through the Add Reader dialog, Workbench rejects to add the PATH reader to the workspace and pops a warning message like this.
Therefore I'm afraid that it's NOT intended that the PATH reader supports reading the information of file(s) archived in a zip file, even if it actually worked on a zip file containing two or more files.
@erik_jan, @verdoodtdries,
This is indeed a problem, but it specifically occurs when using the reader format 'Directory and File Pathnames' in the FeatureReader. Formats like excel, csv, dwg, etc. works fine.
When you put e.g. an empty .txt file in the zip package (so the package contains 2 files) the 'Directory and File Pathames' does work.
What would be the reason?
@erik_jan, @verdoodtdries,
This is indeed a problem, but it specifically occurs when using the reader format 'Directory and File Pathnames' in the FeatureReader. Formats like excel, csv, dwg, etc. works fine.
When you put e.g. an empty .txt file in the zip package (so the package contains 2 files) the 'Directory and File Pathames' does work.
What would be the reason?
jneujens,
Adding an extra, empty, txt-file to the zip solved this issue. Thank you for the suggestion of this workaround!