I use Azure document intelligence to extract figures from pdf documents.
API : FormRecognizer
Pricing tier : Standard
```I used sample code from Ms doc
`https://learn.microsoft.com/en-us/python/api/overview/azure/ai-documentintelligence-readme?view=azure-python-preview`
Until last week (2024 Sept 20) everything is okay, but today I've got this error.
This error happend while the figures are extracting from pdf document.
It occurs erratically and randomly between extractions.
I don't know what was wrong or this is Azure system's error.
```python
---------------------------------------------------------------------------
ResourceNotFoundError Traceback (most recent call last)
Cell In[16], line 38
34 for figure in result.figures:
35 if figure['id']:
36 #print(figure)
37 #print("\n")
---> 38 response = document_intelligence_client.get_analyze_result_figure(
39 model_id=result.model_id,
40 result_id=operation_id,
41 figure_id=figure['id']
42 )
43 #print(response)
44 #print("\n")
46 integer_part, decimal_part = str(figure['id']).split('.')
File /opt/miniconda3/lib/python3.9/site-packages/azure/core/tracing/decorator.py:78, in distributed_trace.<locals>.decorator.<locals>.wrapper_use_tracer(*args, **kwargs)
76 span_impl_type = settings.tracing_implementation()
77 if span_impl_type is None:
---> 78 return func(*args, **kwargs)
80 # Merge span is parameter is set, but only if no explicit parent are passed
81 if merge_span and not passed_in_parent:
File /opt/miniconda3/lib/python3.9/site-packages/azure/ai/documentintelligence/_operations/_operations.py:1470, in DocumentIntelligenceClientOperationsMixin.get_analyze_result_figure(self, model_id, result_id, figure_id, **kwargs)
1468 except (StreamConsumedError, StreamClosedError):
1469 pass
-> 1470 map_error(status_code=response.status_code, response=response, error_map=error_map)
1471 error = _deserialize(_models.ErrorResponse, response.json())
1472 raise HttpResponseError(response=response, model=error)
File /opt/miniconda3/lib/python3.9/site-packages/azure/core/exceptions.py:164, in map_error(status_code, response, error_map)
162 return
163 error = error_type(response=response)
--> 164 raise error
ResourceNotFoundError: (NotFound) Figures analyze result does not exist.
Code: NotFound
Message: Figures analyze result does not exist.