I’m facing an issue while posting my PDF file to Azure form recogniser. I want to upload my local pdf to azure form recogniser to extract the data.
Body format - application/json — i’m using
i’m getting error like – Resource not found : inner error
code: operation not found, message: The requested operation not found., The identifier may be invalid
The error you’re encountering, “Resource not found: The requested operation not found, The identifier may be invalid,” typically indicates an issue with the endpoint or resource you are trying to access in Azure Form Recognizer. To resolve this, you can follow these steps:
Verify the endpoint URL: Double-check the endpoint URL you are using to post the PDF file to Azure Form Recognizer. Ensure that the URL is correct and matches the region and service you are attempting to access.
Check your subscription and resource availability: Ensure that your Azure subscription is active and that you have the necessary permissions and access rights to use Azure Form Recognizer. Additionally, verify that the Form Recognizer resource you are trying to access is provisioned and available.
Confirm the API version: Verify that you are using the correct API version for Azure Form Recognizer. API versions can occasionally change, so make sure you are using the latest supported version. You can check the Azure Form Recognizer documentation or Azure portal for the appropriate API version to use.
Validate the request payload: Ensure that the request payload or body you are sending is in the correct format and adheres to the JSON structure expected by Azure Form Recognizer. Make sure all required fields are included, and there are no syntax errors or missing parameters.
Check authentication and authorization: Confirm that you are providing the necessary authentication credentials, such as an API key or bearer token, to authenticate your request to Azure Form Recognizer. Additionally, ensure that the provided credentials have the required permissions to perform the requested operation.
Test with a sample PDF or different endpoint: To isolate the issue, try uploading a sample PDF file using the same endpoint and request format. If the error persists, consider trying a different Azure Form Recognizer endpoint or region to determine if the issue is specific to the current environment.
Review Azure Form Recognizer documentation and samples: Take a closer look at the official Azure Form Recognizer documentation and code samples provided by Microsoft. They can provide valuable insights and guidance on how to properly interact with the service.
If the error persists after following these steps, you may need to contact Azure support for further assistance. They can investigate the specific details of the error and help resolve any underlying issues.