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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / "When a new email arri...
Power Automate
Unanswered

"When a new email arrives" Error on token exchange

(0) ShareShare
ReportReport
Posted on by 2
Hi - I have a Power Automate flow which waits for an email to arrive, then kicks off a Power BI Semantic Model refresh. We have had this flow working for 1 year, but yesterday, we are now unable to run the flow. We get this error below on the "When a new email arrives" step. What is needed to correct? This flow was running every workday for a year until yesterday. 
 
Error from token exchange: Bad Key authorization token. Token must be a valid JWT signed with HS256
Failed to validate token: IDX10249: X509SecurityKey validation failed. The associated certificate has expired. ValidTo (UTC): '9/22/2024 11:59:59 PM', Current time (UTC): '9/26/2024 11:48:29 AM'.

 
 
here is the output of the task. For security, the GUID in the "source" below has been masked. 
{
    "statusCode": 400,
    "headers": {
        "x-ms-failure-cause": "apihub-token-exchange",
        "x-ms-apihub-obo": "false",
        "x-ms-apihub-cached-response": "false",
        "Date": "Thu, 26 Sep 2024 11:48:29 GMT",
        "Content-Length": "475",
        "Content-Type": "application/json"
    },
    "body": {
        "status": 400,
        "source": "https://canada-001.token.azure-apim.net:443/tokens/canada-001/office365/shared-office365-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/exchange",
        "message": "Error from token exchange: Bad Key authorization token. Token must be a valid JWT signed with HS256\r\nFailed to validate token: IDX10249: X509SecurityKey validation failed. The associated certificate has expired. ValidTo (UTC): '9/22/2024 11:59:59 PM', Current time (UTC): '9/26/2024 11:48:29 AM'.\r\n"
    }
}
Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard