Azure Document Intelligence Python SDK Returns Data Only for First Page

Kiran Dhumma 25 Reputation points
2025-12-17T07:19:15.08+00:00

Hi - I am encountering an issue while using the azure.ai.documentintelligence Python library to extract data from a PDF using page ranges.

My application processes the document page by page, and this workflow was working correctly until this morning. However, starting today, when I attempt to extract data for specific pages, the service returns result only for the first page, regardless of the page range specified.

There have been no code changes on my side. Has anyone else experienced this issue, or is there a recent service update or known limitation affecting page-range extraction?

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
{count} votes

3 answers

Sort by: Most helpful
  1. RAHUL SHEDGE 0 Reputation points
    2025-12-18T08:45:52.8233333+00:00

    Could you please confirm if any resolution or fix has been implemented for this issue?


  2. Kiran Dhumma 25 Reputation points
    2025-12-22T14:43:16.44+00:00

    This issue has been resolved in latest update.

    0 comments No comments

  3. Anshika Varshney 6,195 Reputation points Microsoft External Staff Moderator
    2025-12-25T04:41:27.6466667+00:00

    Hey Kiran Dhumma,

    Thank you for reaching out on the Microsoft Q&A.

    It looks like you’re running into an issue with the Azure Document Intelligence Python SDK, where it's only processing the first page of your PDF, even when specifying a range of pages. This can be frustrating, especially since you haven't changed your code.

    • Here are a few things to consider:
      1. SDK Parameter Check: First, ensure that you are correctly using the pages parameter in you begin_analyze_document call. In the newer SDK versions, it's crucial that the pages parameter is set up correctly. Refer to the documentation for proper usage.
      2. Subscription Tier: Since you're using the version 1.0.2 of the SDK, please confirm that your Azure Document Intelligence resource is not on the F0 (free) tier. The free tier only analyzes the first two pages of a PDF, regardless of the specified page range. If you are on the free tier, upgrading to the S0 (standard) tier will allow full multi-page extraction.
      3. Check Document Type: Ensure that your document is indeed a PDF. Other formats like DOCX or XLSX may not support the same page-based processing as PDFs do.
      4. Service Updates or Limitations: If this behavior started recently and there haven't been any code changes on your part, it could be worth checking the Azure updates or forums for any announcements about service changes that might impact the Document Intelligence processing.
      5. Retry Logic: The retry logic in your code looks good, but it’s also important to check if any rate limiting is coming into play. This can sometimes affect results if repeated calls are made too quickly.
      References:

    I Hope this helps. Do let me know if you have any further queries.


    If this answers your query, please do click Accept Answer and Yes for was this answer helpful.

    User's image

    Thank you!


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.