简体   繁体   中英

Capture HTTP 404 in Azure Data Factory

How do we capture HTTP 404 and not fail an ADF pipeline

The requirement is to check the HTTP response. If the HTTP response is 404, by default the Copy Activity fails with an error. But, we do not want to fail the pipeline. Instead, we want to check the response and stop further processing.

We have tried using Lookup activity, but the Lookup activity also fails, if we have a HTTP 404 response. We can write a Custom API and check the response in there, but, we do not want to do that.

Is there any native ADF way to accomplish this.

1.You could get idea of Validation activity :

Activity will block execution until it has validated this dataset reference exists and that it meets the specified criteria, or timeout has been reached.

2.Also you could try to use Execute Pipeline activity to execute your specific pipeline and get the output of activity.( Error Handling on Azure Data Factory V2 )

BTW,you could vote up this feedback case to push the progress about Throw Error Activity in ADF.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM