Forum Discussion

kkishore's avatar
kkishore
New Contributor III
4 years ago
Solved

Zip file write snap creating zip file with source folder structure , how to avoid file structure

Hi Team, I am just reading the file from source location and writing the zip file in sldb, but it is creating the zip file with source structure when i unzip. source file path is : /home/data/int...
  • rpatrick00's avatar
    5 years ago

    Yeah, I finally realized that Join snap cannot handle joining fields into same top-level structure so I eliminated the top level structure for the join, and then used a mapper to add the top-level structure back. I had to write a custom snap (not included) to prune off all the null fields/elements created by the Null Safe Access mappers…

    I must say that was a lot more painful than I think it should be. If I were to use this in an actual business process, the logic of the business process flow would get lost due to this complex mapping flow…

    Here is the final working example (with all of the nulls still present).

    Mapping Conundrum_2020_09_30 (3).slp (56.6 KB)

    Thanks for the help,
    Robert