Adf error 2108 - Accessing web activity post call

N2120 81 Reputation points
2025-02-06T05:16:22.2333333+00:00

Hello,

I am in the process of designing a pipeline of writing back to api using endpoint of SAP.

I was able to do a post call and get the needed resultset from postman.

While the same end point is giving unauthorised error in adf.

I am not sure if this is a network error

I am generating a token which I am passing as a header value in post call.

BODY has the {}

Do I have to select something in authentication

User's image

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

2 answers

Sort by: Most helpful
  1. N2120 81 Reputation points
    2025-02-13T00:48:54.8133333+00:00

    I was able to make the unauthorized error go away by following the answer given by Jagjeet Singh Makhija in this link

    https://learn.microsoft.com/en-us/answers/questions/363643/web-activity-gives-error-code-2108-but-same-api-ca

    I passed cookie as header in web activity and value specified here and it was able to complete post call successfully.


  2. Chandra Boorla 14,685 Reputation points Microsoft External Staff Moderator
    2025-02-13T01:24:37.4133333+00:00

    @N2120

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.

    Issue:

    I am in the process of designing a pipeline of writing back to api using endpoint of SAP.

    I was able to do a post call and get the needed resultset from postman.

    While the same end point is giving unauthorised error in adf.

    I am not sure if this is a network error

    I am generating a token which I am passing as a header value in post call.

    BODY has the {}

    Do I have to select something in authentication

    Solution:

    Adding the cookie as a header in Web Activity resolved the issue, and my POST call is now successful.

    "Thank you, @Jagjeet Singh Makhija, your solution worked perfectly. I appreciate your help!"

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    I hope this information helps. Please do let us know if you have any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


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.