arcgis-python-api icon indicating copy to clipboard operation
arcgis-python-api copied to clipboard

_survey.py

Open hildermesmedeiros opened this issue 2 years ago • 3 comments

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 image

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 avatar Jul 10 '22 21:07 hildermesmedeiros

@hildermesmedeiros can you please post some reproducible code of the issue?

achapkowski avatar Jul 15 '22 09:07 achapkowski

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 avatar Jul 15 '22 13:07 hildermesmedeiros

@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.

achapkowski avatar Jul 15 '22 14:07 achapkowski

This will be fixed in the 2.1 release. thank you

achapkowski avatar Sep 29 '22 18:09 achapkowski