ADF活动未返回正确的错误代码



当活动因未经授权而失败时它返回以下错误消息,其中包含错误的请求代码,而不是401错误。有没有更好的方法可以在ADF 中捕获错误消息

Operation on target copy_api_to_file failed: 
Failure happened on 'Source' side.
ErrorCode=UserErrorHttpStatusCodeIndicatingFailure,
'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,
Message=The HttpStatusCode 401 indicates failure,
xxxx,Source=Microsoft.DataTransfer.ClientLibrary,'

我们可以看到错误消息包含Message=The HttpStatusCode 401 indicates failure.。HTTP状态401响应代码指示未授权,因为它缺乏目标资源的有效身份验证凭据。

由于这是Azure数据工厂产品问题,我们建议您可以在此处提出新的问题。产品团队会检查并回复您。

此外,我们可以使用Azure Monitor监控和警报数据工厂,您可以参阅此文档了解更多详细信息。

最新更新