Share via

SharePoint indexer - DocumentIntelligenceLayoutSkill produces error

Nikita DE BROUX (Sagacify) 0 Reputation points
2025-03-20T14:53:56.8466667+00:00

Hello, I am trying to build a sharepoint indexer. The data from the sharepoint is then passed through a skillset with DocumentIntelligenceLayoutSkill. This skill is preceded by a custom skill to pass the correct data format (url format) to DocumentIntelligenceLayoutSkill (https://learn.microsoft.com/en-us/azure/search/cognitive-search-skill-document-intelligence-layout#data-limits).

Here are my skills:

  "skills": [
    {
      "@odata.type": "#Microsoft.Skills.Custom.WebApiSkill",
      "name": "#1",
      "description": "Custom skill to prepare data for layout intelligence",
      "context": "/document",
      "uri": "https://my-custom-skill.azurewebsites.net/api/-prepare-data-fct?code=[my_key]",
      "httpMethod": "POST",
      "timeout": "PT30S",
      "batchSize": 1000,
      "inputs": [
        {
          "name": "document_uri",
          "source": "/document/document_uri",
          "inputs": []
        }
      ],
      "outputs": [
        {
          "name": "layout_intelligence_data",
          "targetName": "layout_intelligence_data"
        }
      ],
      "httpHeaders": {}
    },
    {
      "@odata.type": "#Microsoft.Skills.Util.DocumentIntelligenceLayoutSkill",
      "name": "my_document_intelligence_layout_skill",
      "context": "/document",
      "outputMode": "oneToMany",
      "markdownHeaderDepth": "h3",
      "inputs": [
        {
          "name": "file_data",
          "source": "/document/layout_intelligence_data",
          "inputs": []
        }
      ],
      "outputs": [
        {
          "name": "markdown_document",
          "targetName": "markdown_document"
        }
      ]
    }
  ]

The indexer produces this error:

User's image

Does somebody have any hints/possibilities to solve the problem ? I tested my indexer with only the custom skill and it works just fine.

Thanks

Azure AI Search
Azure AI Search

An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.


Your answer

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