Unzip .tar.gz files

Hello Everyone im triying to unzip a .tar.gz file the error is below any ideas how to un zip this files?

[Window Title]
Workflow Exception

[Main Instruction]
Main has thrown an exception

[Content]
Source: UnZip

Message: Access to the path ‘C:\Users\favelasc\Documents\UiPath\Recepcion de Depositos Soriana\Depositos’ is denied.

Exception Type: UnauthorizedAccessException

[Expanded Information]
System.UnauthorizedAccessException: Access to the path ‘C:\Users\favelasc\Documents\UiPath\Recepcion de Depositos Soriana\Depositos’ is denied.
at BalaReva.Externals.UnZipFile.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

[V] See details [Copy to Clipboard] [View Logs] [OK]

Hi @Fausto,

I have released new version in the below activity. It supports the tar.gz format.

Note :
Thank you @Rammohan91

Regards
Balamurugan.S

1 Like

image

not able to unrar this file

getting below error

image

Try with the extension. Zip. It will work.
Regards

Balamurugan

not working with .zip extension also because the folder is .rar format.

When I am changing the folder name with .zip then only .zip extension working

Hi @hareshjindal1,
Yes. This activity will extract only the zip and .tar.gz. I am working for the next release. You will have this feature in the next release.

Thank you for your feedback.

Regards
Balamurugan

1 Like

thanks

Hi

End of this day I will upload a new version. So it will support zip,Gzip,Tar,Rar and 7zip format.

Thank you

Balamurugan

one more thing, can we extract multiple folder path in .rar format in one go by mentioning the path details?

suppose one directory has only .rar files and files count and name may be change on daily basis so how to extract all .rar or .zip files whatever the name is , in one go?

Thanks.

After the release. I will attach a sample for you…

Regards
Balamurugan

Hi @hareshjindal1,

I have uploaded the new version 3.1.0 . The unzip activity supports the Zip, GZip, Tar, Rar and 7Zip formats.

Here I have attached the sample for your above situation.

ZipUnZip.zip (215.8 KB)

Regards
Balamurugan

1 Like

getting this error when trying to open.

second thing i updated your package with new version 3.1.0
but still it is not able to unrar the file.

image

Thanks

I have developed it in the version of 2018.3 beta. If you are using the lower version. Please update it.

Regards

Balamurugan

Hello Bala,

I have 2018.2.3 uipath community version.

image

SO can you provide the code compatible with this version.

I will send you end of this day.

Regards

Balamurugan

After updating version 3.1.0, I can unzip Rar format. Thank you so much… You save my day.

1 Like

Welcome . Now the unzip supports the Zip, GZip, Tar, Rar and 7Zip formats.

Regards
Balamurugan.S

1 Like

could you please send ?

Hai,

After the upgraded of CE. I cannot proceed with the old version in my system. I will try to do in virtual machine today. And let you.

Hi Balu, unfortunately I’m unable to unzip .tar.gz file. It gave me below error. Are you able to assist me on this please. zip.zip (1.4 KB)

“Un zip : Could not read C:\ShipmentCorrection\Reports\InputText\zip\BE_WAYBILL_MATCHING_201810231331.tar.gz as a zip file”