I ran into this today also. It is happening in a ForEach activity. I'm trying to get the Content-Location returned from a Web Activity Response Header.
Output
{
"Response": "",
"ADFWebActivityResponseHeaders": {
"Request-Context": "appId=cid-v1:.....",
"X-Request-ID": "66832d597403aa4e8c521f1bc837fadb",
"x-ms-session-token": "0:-1#638764",
"x-ms-request-charge": "19.85",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
"Date": "Mon, 25 Oct 2021 14:22:29 GMT",
"Server": "Kestrel",
"Content-Length": "0",
"Content-Location": " https://site.azurehealthcareapis.com/\_operations/export/416cddbd-071e-48e5-9952-00774d30e5bd "
},
"effectiveIntegrationRuntime": "IntegrationRuntime (North Central US)",
"executionDuration": 0,
The provided workaround is NOT working for me. In my ForEach Items I have:
@array([activity('StartExportTask').output.ADFWebActivityResponseHeaders.['Content-Location']])
and I get:
Error
Notifications
{"code":"BadRequest","message":null,"target":"pipeline//runid/1f5588ce-b4bf-4841-bf66-865594371c97","details":null,"error":null}
also I try:
@activity('StartExportTask').output.ADFWebActivityResponseHeaders.['Content-Location']
With the same results. Please help.