Error on this compress

why i am getting this error while trying to zip the folder

@manoj_verma1

Use path exists activity first and it gives a ilocalresource output

Now use this activity with {varoutput}

Zip needs a enum of ilocalresources

Try this

Cheers

@manoj_verma1 - Please update UiPath.System.Activities package. Please check below link

Compress/Zip Files - Help / Activities - UiPath Community Forum

with path exist we get boolean type right

@ushu i have tried to update the package same issue actually i checked that link

@manoj_verma1 - Can you try this way, save the content to zip path in a variable, pass that variable in that field (content to zip field)

@ushu i did tried that with variable type as string that is also not working

@manoj_verma1

PathExist will give you two outputs one is boolean other is Ilocalresource

Hope this helps

cheers

@Anil_G



getting this now

@manoj_verma1

  1. In path exists if you ae giving folder then change type to folder
  2. You missed curly braces around the variable…please check the screenshot {Path11}

Hope this helps

cheers


in path exists with {} its giving error
under compress its not but when running Compress/Zip Files: Value cannot be null. (Parameter ‘resource’)

@manoj_verma1

dont use brackets in path exists its only for compress activity…

I guess you ran compress without pathexists so it is throwing error

cheers

1 Like


@Anil_G can you have look on this plzz

@manoj_verma1

If you see the locals panel path you gave is wrong it is returning false for exists so no file at all…hence it is throwing this error

image

Please use a valid path(Path11 variable is null)
image

cheers

1 Like

@manoj_verma1 Try this. After Path exists, take if condition

Path11 (Output of PathExists activity which is boolean)

>> Then block - compress

>> Else - Nothing

debug the code and check where the control is going

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.