Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Can anyone share an example of how to unzip/decompress a file in a workflow?

Avatar

Avatar
Validate 1
Level 2
stephenjwz
Level 2

Likes

9 likes

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
stephenjwz
Level 2

Likes

9 likes

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
stephenjwz
Level 2

16-09-2020

I saw this question and attempted to test the same but unfortunately couldn't get it to work with either a zip or gz. my js ended up looking like:

 

var cmdStr="unzip -j /folder/folder/folder/tester.zip -d folder/folder/folder";

var res=execCommand(cmdStr);

 

i also read elsewhere that decompressing a file is possible in the data loading activity, by choosing 'pre-process the file' then inputting gunzip -c <%= vars.sourceFile %>

again couldn't get this to work

 

lastly i tried gunzip in a js activity, code was like:

 

execCommand('cd /folder/folder/folder \n gunzip "tester.csv.gz" ');

 

but again couldn't get it to work. am sure i am doing something basic wrong but error message just says error while evaluating so not sure what.

Adobe Campaign Adobe Campaign Classic compress zip file

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 2
stephenjwz
Level 2

Likes

9 likes

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
stephenjwz
Level 2

Likes

9 likes

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
stephenjwz
Level 2

24-09-2020

turns out it was just an issue with our configuration that prevented me seeing the decompress/decrypt dropdown on the data loading activity - all sorted now

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
MVP
DavidKangni
MVP

Likes

246 likes

Total Posts

351 posts

Correct Reply

142 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Validate 1
MVP
DavidKangni
MVP

Likes

246 likes

Total Posts

351 posts

Correct Reply

142 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
DavidKangni
MVP

16-09-2020

script looks fine.

Can you check if you are authorized to run execCommand on ACC?

Thanks,

David