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 - Building Flows
Unanswered

Could not find any valid connection for connection reference name 'shared_outlook' in APIM tokens header."

(0) ShareShare
ReportReport
Posted on by 83

Hi hive mind. I haven't had any problems with PowerAutomate for a while but I am starting to tear my hair out with the message "Could not find any valid connection for connection reference name 'shared_outlook' in APIM tokens header." or variations of that depending on the connections I use. The flow is really simple and works fine until I add the email step.  I have tried adding different additional steps (such as trying Muhimbi for my pdf conversion).  I have also tried rebuilding the flow from scratch but the same thing happens each time. But the email step works in other flow. Can someone please help me out before my laptop learns how to fly? I'd appreciate it.

 

jchristie38_0-1695407940050.png

 

I have the same question (0)
  • Michael E. Gernaey Profile Picture
    52,851 Super User 2025 Season 2 on at
    Re: Could not find any valid connection for connection reference name 'shared_outlook' in APIM tokens header."

    Hi,,

     

    And haha yeah many of my mice ended up learning to vertically jump far distances unwillingly.

     

    Its very possible that reference its hosed and you won't be able to fix it. 

    I would really suggest creating another one (if you can). 

     

    If you can but aren't sure how, do this

    click the ... at the end and choose +Add new connection

    Of if this is in a Solution you can go to the solution and click Connections and then choose New Connection

    FLMike_0-1695486395585.png


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • jchristie38 Profile Picture
    83 on at
    Re: Could not find any valid connection for connection reference name 'shared_outlook' in APIM tokens header."

    HI Micheal, thanks for taking the time out of your day to try and help. I have now tried adding a new connection but it only allows me to add work connections and I only have the one.  It get weirder though. I have tried rebuilding the flow a couple of times. The first time I did it starting with just click a button and send me an email (my outlook connector works in other flows so I wanted to test it in a fresh one) without any powerapps or create files or anyhting. That worked ok. So i added in the create file steps, as per the original flow. Now the same error pops up as before. Deleting those steps makes the error go away. But keeping those steps and instead deleting the email step means the error stays. BUT, in the original flow, its the other way around. Keeping the create file steps is fine but the email step is causing the issue. So it seems like some sort of incompatibility wherein the flow can either create a file OR send it but not both and whichever you ask it to do second will remain the problem. 

  • Michael E. Gernaey Profile Picture
    52,851 Super User 2025 Season 2 on at
    Re: Could not find any valid connection for connection reference name 'shared_outlook' in APIM tokens header."

    Hi


    It’s weird as it’s specific to you doing it as those combos are used all over. 

    oh and you may need to either go to the solution itself and or the home page to create a new connection you can use. 

    totally bizarre 

  • jchristie38 Profile Picture
    83 on at
    Re: Could not find any valid connection for connection reference name 'shared_outlook' in APIM tokens header."

    For the sake of power archeologists that are searching for answers to this in the future. I have not found a proper solution (or destroyed my computer). In the end I have created two flows, one to create the file and attach it to a sharepoint item and another, triggered by a change to items in the sharepoint list, that gets the file and emails it. Its not elegant but it seems to work. 

  • HJ-23070237-0 Profile Picture
    36 on at
    Could not find any valid connection for connection reference name 'shared_outlook' in APIM tokens header."
    @jchristie38 I don't suppose you are wiser to a solution now? I'm having a similar issue. I have a very simple flow in a solution. It's triggered by a PowerApp in the same solution, then it Post Adaptive Card, which worked fine, and then I got that error when I add "Send an email".
  • Michael E. Gernaey Profile Picture
    52,851 Super User 2025 Season 2 on at
    Could not find any valid connection for connection reference name 'shared_outlook' in APIM tokens header."
    For this one @jchristie38 and @HJ-23070237-0
     
    I would have to see, not just the connections, but here it is specifically saying the reference doesn't have a valid connection.
     
    The reference itself would exist in your Solution. Do you have a flow that is NOT in a solution or got removed from a solution?
     
    You definitely should not have to create 2 flows to make it work, I couldn't see in the picture (its too small) but when it talks about the connection reference, realistically you should go into your Default Solution and verify that the Connection that is selected in the Reference is actually valid.
     
    Creating a new connection won't help if its broken at the reference level.
     
     

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 544 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 482 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 287

Last 30 days Overall leaderboard