Hi Muhammad
Sorry for the inconvenience. Attached cause and solution for reference.
Cause
The issue here is the syntax used below is from3.3 version of document intelligence and prebuilt-tax.us.1095A model is not available in 3.0 version but 4.0 version instead.
#pip install azure-ai-formrecognizer==3.3.0
with open(file_path, "rb") as f: poller = document_analysis_client.begin_analyze_document(model_id, document=f) result: AnalyzeResult = poller.result()
Solution
Please install 4.0 version with below command and use 4.0 syntax
pip install azure-ai-documentintelligence
4.0 syntax
import os from azure.core.credentials import AzureKeyCredential
from azure.ai.documentintelligence import DocumentIntelligenceClient
from azure.ai.documentintelligence.models import AnalyzeResult
from azure.ai.documentintelligence.models import AnalyzeDocumentRequest
document_intelligence_client = DocumentIntelligenceClient(
endpoint=endpoint, credential=AzureKeyCredential(key)
)
with open(file_path, "rb") as f:
poller = document_intelligence_client.begin_analyze_document(
"prebuilt-tax.us.1095A", body=f)
w2s = poller.result()
Reference on un-availability of 1095A US Tax form in 3.1 document intelligence
Reference on availability of 1095A US Tax form in 4.0 document intelligence.
Please let us know if it fixes the issue and requesting to re-take the survey on this answer.
Thank you