Hi @Anneka Osmun
The error message indicates that the json function in ADF is being used in the second web activity to interpret the output of the first web activity (the secret key). The json function expects a valid JSON string, such as {"key": "examplesecretkey"}
, but it’s receiving something it can’t parse likely a plain string like examplesecretkey
resulting in the parsing failure
The second web activity is likely using an expression like @json(activity('FirstWebActivity').output)
to parse the output of the first activity, expecting a JSON object (e.g., {"value": "examplesecretkey"})
. However, if the first activity’s output is now returning the secret key as a plain string (examplesecretkey)
instead of a JSON structure, the json() function
will fail because it can’t parse a non-JSON string.
The possible below scenarios:
If the first activity’s output is a JSON object with a value property (e.g., {"value": "examplesecretkey"}), update the second activity to reference it correctly
@activity('FirstWebActivity').output.value
If the output is a plain string, remove the json() function from the expression in the second activity.
@activity('FirstWebActivity').output
I hope this information helps. Please do let us know if you have any further queries.
Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.
Thank you.