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?