Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Rishab1
Contributor II
Contributor II

S3_get com.amazonaws.services.s3.transfer.exception.FileLockException

Hi , I am trying to download multiple files from S3 , i am getting the below error com.amazonaws.services.s3.transfer.exception.FileLockException:

i can download the single file but when i am trying to iterate and get multiple files this error is coming. Any idea?

 

I have used prejob to set S3 connection and postjob to close s3 connection

Labels (6)
1 Solution

Accepted Solutions
Rishab1
Contributor II
Contributor II
Author

In Case anyone in future faces the same issue , in my case this issue occurred due to special characters coming in file name , file names had (:) colon and when you try to down it on local it fails with that file lock error , i applied replaceAll after fetching the file names it converted all the colons to undescore.

 

((String)globalMap.get("tS3List_3_CURRENT_KEY")).substring(((String)globalMap.get("tS3List_3_CURRENT_KEY")).lastIndexOf("/") + 1).replaceAll(":", "_")

 

Thanks.

View solution in original post

3 Replies
Rishab1
Contributor II
Contributor II
Author

Hi All ,

 

I was able to figure out the issue here and able to download all the files now.

Rishab1
Contributor II
Contributor II
Author

In Case anyone in future faces the same issue , in my case this issue occurred due to special characters coming in file name , file names had (:) colon and when you try to down it on local it fails with that file lock error , i applied replaceAll after fetching the file names it converted all the colons to undescore.

 

((String)globalMap.get("tS3List_3_CURRENT_KEY")).substring(((String)globalMap.get("tS3List_3_CURRENT_KEY")).lastIndexOf("/") + 1).replaceAll(":", "_")

 

Thanks.

Anonymous
Not applicable

Hello,

Thanks for letting us know this issue has been resolved by yourself and sharing your solution with us on Community.

Best regards

Sabrina