Create a bot from Deploy knowledge base of Language Studio hangs

Francesco Baldi 5 Reputation points
2025-02-25T16:29:05.2466667+00:00

Hello,

I'm trying to create a bot from the 'Deploy knowledge base' inside Language Studio.

When I get to the last step 'Review + create', the web page hangs and the browser console reports the following errors:

[Microsoft_Azure_CreateUIDef] 3:24:31 PM Error 0 Error: "Exception while fetching artifacts. MarketplaceId: Microsoft.Template. Message: message: String.prototype.indexOf called on null or undefined\r\nname: TypeError\r\nstack: TypeError: String.prototype.indexOf called on null or undefined

MsPortalFx.Base.Diagnostics.Telemetry MsPortalFx.Base.Diagnostics.Telemetry: Telemetry data length exceeded the maximum size of 15000.

I'm attaching screenshots of all steps:

First step:

Create Bot - step 1

Second step:

Create Bot - step 2

Third step, I copied my language key from the page below:

Create Bot - step 3

Fourth step, I filled the page with the Language Resource Key copied from the previous step and all the remaining fields:

Create Bot - step 4

Finally I click Review + create, and this is what I get:

Create Bot - step 5 - 2

Any help is very welcome, thanks.

@Sina Salam

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
465 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Sina Salam 18,861 Reputation points
    2025-02-25T20:34:03.2166667+00:00

    Hello Francesco Baldi,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you are having TypeError: String.prototype.indexOf called on null or undefined and

    MsPortalFx.Base.Diagnostics.Telemetry MsPortalFx.Base.Diagnostics.Telemetry error, while creating a bot from the 'Deploy knowledge base' inside Language Studio.

    The error indexOf errors in JavaScript often occur when trying to call the method on a null or undefined object. This can be due to various reasons, including internal bugs or API misconfigurations. Check this link - https://github.com/microsoft/BotFramework-Composer/issues/9663 Also, Telemetry errors can indicate that Azure's logging system is overwhelmed, potentially pointing to a broader issue affecting multiple users, check this link - https://learn.microsoft.com/en-us/troubleshoot/azure/azure-monitor/app-insights/telemetry/opentelemetry-troubleshooting-python and https://github.com/Azure/azure-sdk-for-python/issues/33623

    Since this is a client-side error in Azure Portal, the best approach is to confirm whether it is a Microsoft-side issue. The workaround I can suggest are the followings:

    Step 1: Before troubleshooting locally, confirm whether this is a known issue by:

    Checking Azure Service Health on Azure Status page - https://status.azure.com/status to affirm if there are ongoing incidents for Azure Language Services or Bot Service. If Azure reports issues, wait until Microsoft resolves them before trying again. If not check the Azure Portal Logs for Internal errors look for any incident reports related to Language Studio, QnA Maker, or Bot Service.

    Step 2: You will need to confirm that the Language Resource key is valid:

    Navigate to Azure Portal > Language Studio > Your Language Resource. Go to Keys and Endpoint and verify:

    • The key matches the one used in deployment.
    • The resource is active and not deleted or moved.

    If the key is invalid, regenerate a new key and retry deployment.

    Step 3: Use an incognito browser or private mode or different device. Since the error occurs in the Azure Portal UI, it could be caused by cached scripts or cookies.

    Try:

    • Opening Azure Portal in an Incognito/Private Browsing Window.
    • Using a different browser (Edge, Chrome, Firefox).
    • Accessing Azure Portal from a different device (e.g., try from a mobile browser).

    If it works in incognito mode, clearing browser cache and cookies may resolve the issue.

    Step 4: Since the error is UI-based, debugging the browser console can give insight into what Azure is failing to fetch:

    1. Open Developer Tools (F12) > Console Tab.
    2. Look for API calls failing (e.g., 400 Bad Request, 500 Internal Server Error).
    3. If errors point to a missing or invalid Language Resource ID, update the ID in Azure Portal > Language Resource > Keys & Endpoints.

    Step 5: Instead of relying on the UI, you can use Azure CLI or PowerShell to validate the required resources:

    # List Language Resources
    az cognitiveservices account list --resource-group <YourResourceGroup> --output table
    
    <# 
      This will confirm if the **Language Resource exists.
      Check Subscription Quotas
    #>
    
    # If the deployment fails due to quota limits, check available resources
    
    az cognitiveservices account show --name <YourLanguageResourceName> --query "sku"
    

    Step 6: If all else fails, the issue may be an internal Azure bug. Try to escalate Microsoft Azure Support by submit a support ticket via Azure Portal > Help + Support.

    I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.