Survey123 report generation fails using ArcGIS API for python

228
0
11-27-2023 08:54 AM
Aymen_Farhat
New Contributor II

Using the command below

survey_by_id.generate_report(report_template=choice, report_title="Report",where=f"objectid = {ob}", output_format="pdf")

I was able to generate survey123 report using ArcGIS Pro 3.0 when switched to ArcGIS Pro 3.1.3 the code fails and return the following error 

File "D:\Inspection_report\survey_report.py", line 33, in rep_gen
survey_by_id.generate_report(report_template=choice, report_title="Report",where=f"objectid = {ob}", output_format="pdf")
File "C:\Users\MFarhat\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\arcgis\apps\survey123\_survey.py", line 353, in generate_report
fl_url = self._stk_url
AttributeError: 'Survey' object has no attribute '_stk_url'

any idea on how to solve the issue?

0 Kudos
0 Replies