In mslearn-knowledge-mining, how do i fix a "Enrichment.OcrSkill.#5", "Could not execute skill.", "An unexpected error occurred." error?

Mikkel Skræddergaard 0 Reputation points
2024-07-08T06:23:14.6+00:00

Hi

I have gone through the lab exercise mslearn-knowledge-mining as prescribed here: https://microsoftlearning.github.io/mslearn-knowledge-mining/Instructions/Exercises/01-azure-search.html

When i try to index the documents, i follow all the steps. Everytime it fails creating margies-indexer and leaves me with:

Document key:
localId=https%3a%2f%2fmystorage.blob.core.windows.net%2fmargies%2fcollateral%2fDubai%2520Brochure.pdf&documentKey=https%3a%2f%2fmystorage.blob.core.windows.net%2fmargies%2fcollateral%2fDubai%2520Brochure.pdf

Operation:
Enrichment.OcrSkill.#5

Message:
Could not execute skill.

Details:
An unexpected error occurred.

Does anybody know how to solve this?

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,288 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SiddeshTN 3,520 Reputation points Microsoft Vendor
    2024-07-08T10:06:17.8533333+00:00

    Hi Mikkel Skræddergaard,

    Thank you for reaching out to us on Microsoft Q&A forum. 

    The error you are encountering with the OCR skill indicates that there might be an issue with the OCR processing during the indexing.
    Here are a few steps you can take to troubleshoot and resolve this issue:

    1.Make sure the documents in your Blob Storage are in a format supported by the OCR skill, such as PDF, TIFF, or JPEG. Check that the documents are not corrupted and can be opened manually.
    2.Verify that your Azure AI Services resource is properly configured with enough quota for OCR operations. Ensure the pricing tier and region support OCR.
    3.Log into the Azure Portal, navigate to the Cognitive Services resource, and check for any service-related issues or quota limitations.
    4.Verify the connection string and access permissions for Azure Blob Storage are correctly set and ensure the Azure AI Search resource has access to the Azure AI Services resource.
    5.Ensure the skillset configuration, especially for OCR, is correct and references the fields and parameters accurately. Check the Azure AI Search resource logs and indexer execution details for detailed error messages.
    6.Try using a different document to check if the problem continues. Use a simple text file to rule out specific content issues. Also, update your configurations, save, and try indexing again to resolve intermittent problems.

    If the issue persists, please follow the link and try the steps mentioned there,
    Error: Could not execute skill->https://video2.skills-academy.com/en-us/azure/search/cognitive-search-common-errors-warnings#error-could-not-execute-skill

    Please attempt the exercise in the updated document: https://microsoftlearning.github.io/AI-102-AIEngineer/Instructions/22-azure-search.html#index-the-documents

    Additional link: https://video2.skills-academy.com/en-us/azure/search/search-create-service-portal

    Please don't hesitate to reach out to us if you have any other queries.

    If you found the information helpful, we would greatly appreciate it if you could acknowledge it by selecting the Accept Answer & Upvote options.