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

Notifications

Announcements

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

Forum hierarchy changes are complete!

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard