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 - AI Builder
Suggested answer

401 "Request failed with status code 401"

(0) ShareShare
ReportReport
Posted on by 2

Hi all,

 

I’m running an AI Builder trial and had set up an AI Prompt with a Power Automate flow calling it. Everything was working fine, but suddenly it stopped, and I’m getting this error when testing the Ai Builder Prompt.

 
{
  "message": "Request failed with status code 401",
  "name": "AxiosError",
  "code": "DefaultError",
  "config": {
    "transitional": {
      "silentJSONParsing": true,
      "forcedJSONParsing": true,
      "clarifyTimeoutError": false
    },
    "transformRequest": [
      null
    ],
    "transformResponse": [
      null
    ],
    "timeout": 0,
    "xsrfCookieName": "XSRF-TOKEN",
    "xsrfHeaderName": "X-XSRF-TOKEN",
    "maxContentLength": -1,
    "maxBodyLength": -1,
    "env": {},
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "Content-Type": "application/json",
      "x-ms-client-session-id": "5177ad10-9272-11f0-b01c-67db53aa5c6a",
      "x-ms-client-request-id": "184c0d36-4475-4e03-b54f-b455178bde90",
      "authorization": ""
    },
    "url": "https://org8de0a28d.crm11.dynamics.com/api/data/v9.0/msdyn_aiconfigurations(60bb3b8e-c494-4fe7-b26f-31f96499fa76)/Microsoft.Dynamics.CRM.QuickTest",
    "method": "post",
    "responseType": "json",
    "operationName": "AiBuilder/GptService/QuickTest",
    "knownServiceId": "cds-org",
    "activityId": "e818727c-7f80-4cd9-8a20-9768f9d39957",
    "retryConfig": {
      "retryCorrelationId": "d818cd0c-9537-49af-b231-c25a5b9a703d",
      "retryCount": 2
    },
    "maxRetries": 0,
    "axios-retry": {
      "retryCount": 0,
      "lastRequestTime": 1757968637952
    }
  },
  "request": {},
  "response": {
    "data": "",
    "status": 401,
    "statusText": "",
    "headers": {
      "content-length": "0",
      "content-type": "text/html; charset=utf-8",
      "req_id": "922dbe52-5387-42a9-b85c-dc6e42f8924e"
    },
    "config": {
      "transitional": {
        "silentJSONParsing": true,
        "forcedJSONParsing": true,
        "clarifyTimeoutError": false
      },
      "transformRequest": [
        null
      ],
      "transformResponse": [
        null
      ],
      "timeout": 0,
      "xsrfCookieName": "XSRF-TOKEN",
      "xsrfHeaderName": "X-XSRF-TOKEN",
      "maxContentLength": -1,
      "maxBodyLength": -1,
      "env": {},
      "headers": {
        "Accept": "application/json, text/plain, */*",
        "Content-Type": "application/json",
        "x-ms-client-session-id": "5177ad10-9272-11f0-b01c-67db53aa5c6a",
        "x-ms-client-request-id": "184c0d36-4475-4e03-b54f-b455178bde90",
        "authorization": ""
      },
      "url": "https://org8de0a28d.crm11.dynamics.com/api/data/v9.0/msdyn_aiconfigurations(60bb3b8e-c494-4fe7-b26f-31f96499fa76)/Microsoft.Dynamics.CRM.QuickTest",
      "method": "post",
      "responseType": "json",
      "operationName": "AiBuilder/GptService/QuickTest",
      "knownServiceId": "cds-org",
      "activityId": "e818727c-7f80-4cd9-8a20-9768f9d39957",
      "retryConfig": {
        "retryCorrelationId": "d818cd0c-9537-49af-b231-c25a5b9a703d",
        "retryCount": 2
      },
      "maxRetries": 0,
      "axios-retry": {
        "retryCount": 0,
        "lastRequestTime": 1757968637952
      }
    },
    "request": {}
  },
  "stack": "AxiosError: Request failed with status code 401\n    at e.exports (https://content.powerapps.com/resource/makerx/static/js/module/main.ca9bb26a.js:2:1625873)\n    at XMLHttpRequest.E (https://content.powerapps.com/resource/makerx/static/js/module/main.ca9bb26a.js:2:1624046)",
  "requestId": "184c0d36-4475-4e03-b54f-b455178bde90",
  "statusCode": 401,
  "body": "",
  "source": "ModelActionsClient"
}

 

In the flow, it just ends up in a retry loop, and in the AI Builder prompt editor / Quick Test screen I see the same 401 error.

The banner at the top of AI Builder shows I still have 24 days left in my trial and 99% of my capacity remaining. I don’t think it’s a credits issue because I’d expect a capacity error if that were the case.

Has anyone encountered this before? Any idea what might be causing the AI Builder model to suddenly stop working like this?

I have the same question (0)
  • DH-15092037-0 Profile Picture
    2 on at
    401 "Request failed with status code 401"
    Would buying AI Builder credits fix this do we know?
  • Suggested answer
    Michael E. Gernaey Profile Picture
    48,799 Super User 2025 Season 2 on at
    401 "Request failed with status code 401"
     
    Recently there have been changes made to Trial licenses, you are not the only one having issues like this. The release causing the issues literally just happened.
     
    I have no idea what you can do about it, other than opening a Ticket with Microsoft.

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

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…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 787 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 448 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 327

Last 30 days Overall leaderboard