arcgis-python-api
arcgis-python-api copied to clipboard
_survey.py
Describe the bug Generate report does not show results if partial sucess.
To Reproduce Try create a batch of survey reports (if one of 1000 fails ....You should get partial results, but the api is returning None. Going to your survye you can see the results there.
error:
survey.generate_report returns None
Screenshots
I don't see the needed status in this code: https://developers.arcgis.com/survey123/api-reference/rest/report/#response-parameters
jobStatus | The main job status. The following values are supported: esriJobSubmitted, esriJobExecuting,esriJobSucceeded,esriJobPartialSucceeded and esriJobFailed |
---|
Expected behavior results, should not be None if esriJobPartialSucceeded .
Also reading the docs return should be a tuple (statusString, [list of sucess]) or any other thing.
In the end I expected to see the reports, be in local folder or in a folder id.
Platform (please complete the following information):
- OS: [Windows]
- Browser [chrome]
- Python API Version [
1.9.1
]
Additional context Add any other context about the problem here, attachments etc.
@hildermesmedeiros can you please post some reproducible code of the issue?
Hello, @achapkowski. I have none, since the partialSuccedJob does not return the causes of failures.
But reading the code you will see It is not contemplating partialSuceedJob.
@hildermesmedeiros I'll see if I can get the result to pop up. If you find a way to reproduce it, please let us know.
This will be fixed in the 2.1 release. thank you