Invalid Request Contnet Error for my Web Activity

bk 466 Reputation points
2021-11-10T18:28:47.49+00:00

Hi All,
I have created a logic app, Added HTTP Request Sent Trigger and then added the Outlook Email part and DID run the trigger and received email w/o any issues.
Now i created a test pipeline and then added a web activity to test it , in the web activity in the Body part i have the following JSON
{
"Pipeline":"@{pipeline().Pipeline},
"ErrorMessage":"@{activity('Copy data1').Error.message}",
"DataFactoryName":"@{pipeline().DataFactory}",
"Runid":"@{pipeline().RunId}"
)
When I run the pipeline it is failing with the following error, i have looked up multiple documents and still i could not find a solution. Please advice.
Error Message

{"error":{"code":"InvalidRequestContent","message":"The request content is not valid and could not be deserialized: 'After parsing a value an unexpected character was encountered: E. Path 'Pipeline', line 3, position 1.'."}}

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,651 questions
{count} votes

2 answers

Sort by: Most helpful
  1. bk 466 Reputation points
    2021-11-11T13:27:15.46+00:00

    @Nandan Hegde
    Thanks , I hardcoded one by one and it is the ')' and not '}' i had in the body of the web. Fixed.
    Thanks

    1 person found this answer helpful.

  2. Nandan Hegde 36,151 Reputation points MVP Volunteer Moderator
    2021-11-11T04:24:01.76+00:00

    Hey @bk ,
    As you mentioned that you are receiving the mails when you are directly triggering the logic app but the issue is during ADF execution, can you please hardcode all the values initially in the body and test the execution and slowly and gradually parameterize one by one to debug the cause of that issue?
    That might help us in pin pointing the source which would help us in focusing our cause analysis.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.