- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Invalid Auth Header from Web Activity for SalesForce
I am issuing a request to a SalesForce bulk API 2.0 from web activity but am receiving an INVALID_AUTH_HEADER resposne and am not sure why. I do have a valid token from the previous web activity and am passing it in the header of this web activity. Sample header from the configuration below.
{
"method": "GET",
"headers": {
"Authorization": "Bearer [token]",
"x-ms-date": "Mon, 20 May 2024 20:11:11 GMT",
"Content-Type": "application/json"
},
"relativeUrl": "/services/data/v51.0/sobjects/Account"
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does this thread help you perhaps? I myself struggled to find out how to send a bearer token to a copy action, which used a GET
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @kxwillis ,
Thanks for using Fabric Community.
As part of debugging process, can you please test the rest api working perfectly with the help of postman?
Identify the if the right URL is getting constructed, and debug from the response.
If possible can you please share the screenshot of your issue. I would be able to guide you better if you can provide these details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello and thank you for your reply. While working this request through Postman I received additional information the object I am intending to query may not be supported in a client credentials auth flow. I am checking with SalesForce support on what items I need to enable to support query base objects using client credentials.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @kxwillis ,
Thanks for the reply. Do let me know incase of further queries with Fabric.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @kxwillis ,
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .
In case if you have any resolution please do share that same with the community as it can be helpful to others .
Otherwise, will respond back with the more details and we will try to help .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The permissions issue in SalesForce was resolved and verified yesterday, so the process works in Postman now. However, I am still receiving the INVALID_AUTH_HEADER response when implementing inside of the web activity in Fabric. See the below...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @kxwillis ,
I would like to understand how are you sending Bearer token in Fabric Web Activity?
Can you please refer the below similar threads -
Ingest data form a rest API with Oauth2 - Microsoft Fabric Community
Solved: retrieve token api call with content type x-www-fo... - Microsoft Fabric Community
Hope this is helpful. Do let me know incase of further queries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am retreiving the token from the web activity immediately preceeding this step and am passing the token from the output of the preceeding web activity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @kxwillis
Can you please share the screen shot of web activity web1 when you executed the pipeline?
As the above error says authentication, I would like to understand whether it is passing actual bearer token or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Below is the output of web activity 1 and the input of webactivity 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @kxwillis ,
Based on the images, it looks like there is no issue with the configuration.
Might be the issue is with the token as the error says INVALID_AUTH_HEADER.
The best course of action is to open a support ticket and have our support team take a closer look at it.
Please reach out to our support team so they can do a more thorough investigation on why this it is happening: Link
After creating a Support ticket please provide the ticket number as it would help us to track for more information.
Hope this helps. Please let us know if you have any other queries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @kxwillis ,
We haven’t heard from you on the last response and was just checking back to see if got a chance to open a support ticket.
After creating a Support ticket please provide the ticket number as it would help us to track for more information.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the followup. The support ticket number is 2405290040004729
Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
We want your feedback!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Microsoft Fabric Community Conference 2025
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
Subject | Author | Posted | |
---|---|---|---|
07-05-2023 06:38 AM | |||
09-05-2024 08:27 AM | |||
09-10-2024 07:42 AM | |||
12-21-2023 03:56 AM | |||
11-15-2024 09:52 AM |
User | Count |
---|---|
6 | |
2 | |
2 | |
2 | |
2 |
User | Count |
---|---|
13 | |
7 | |
7 | |
5 | |
4 |