cancel
Showing results for 
Search instead for 
Did you mean: 

Detect locked source file within SAP Data Intelligence pipeline

11-17-2022 9:21 PM
jeffelliott Explorer
598 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

Scenario: We are using the List Files, Read File, and Write File operators in a SAP Data Intelligence pipeline to transfer files from a source system to an Azure Data Lake.

Problem: If a file is being written to on the source system when the "Read File" operator attempts to read the file, the pipeline dies with an error since the file is "locked" and can't be opened for reading.

Question: Is there a native way to detect when a file is locked? Or what would be a suggested method to accomplish this? The intent would be to skip attempting to read the file if it is determined to be locked and move on to the next file.

Thanks.

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

Simon_Ye
Product and Topic Expert
Product and Topic Expert
0 Likes

You can try to add a new operator (e.g. Python) to handle this error, it's mostly like you receive and check the error message by the Python operator, then if the error message is “file is locked”, you put a new file into the input port.