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 / 401 "Request failed w...
Power Automate
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?

Categories:
I have the same question (6)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,969 Moderator on at
     
    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
  • DH-15092037-0 Profile Picture
    2 on at
    Would buying AI Builder credits fix this do we know?

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard