web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Connector Development
Unanswered

Custom connector test succeeds, but 401 error occurs when running the flow

(0) ShareShare
ReportReport
Posted on by 2

Hello,

I am currently creating a Power Automate flow to register data into the Salesforce Contact object.

■ Flow structure:

  1. Manually trigger the flow
  2. Send an HTTP request to retrieve user information
  3. Parse the JSON response
  4. Use a custom connector to register data in Salesforce (POST)

■ Issue:

The custom connector alone works fine and successfully creates records in Salesforce.

However, when running the Power Automate flow, the custom connector part fails with a 401 error.

■ Error message:

{
  "message": "Session expired or invalid",
  "errorCode": "INVALID_SESSION_ID"
}
 
 
If anyone knows the cause, please kindly let me know.

Thank you in advance.
Categories:
I have the same question (0)
  • CU11030755-0 Profile Picture
    2 on at
    Custom connector test succeeds, but 401 error occurs when running the flow
    @DexPoint

    Thank you for your reply!
    I'm only trying to post 8 records, so I think the possibility of a timeout due to mass data load is low.
  • DexPoint Profile Picture
    171 on at
    Custom connector test succeeds, but 401 error occurs when running the flow
    i dont know the cause unfortunately, but i do use salesforce connector (Premium) and regularly load mass amounts of data.

    I also have a daily flow that occurs when i export registered users from website to create them into SalesForce.

    Now, im not sure the specific error. but after about 150 or so loads it does time out. when this happens i rerun the flow on new records.

    So maybe you are trying to load to many records and its timing out after a set amount?
     
    if this is the case reply and i can talk you through what i did to resolve that issue of mass loading data.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics