ERROR: 'Survey' object has no attribute '_stk_url'

951
11
06-28-2024 11:42 AM
mike_totti
New Contributor

After upgrading my ArcGIS Pro to 3.3, I keep getting this error when survey tries to generate report:

ERROR: 'Survey' object has no attribute '_stk_url'

Any help is greatly appreciated.

Screenshot 2024-06-28 133928.png

0 Kudos
11 Replies
AndrewThompson_SCE
Occasional Contributor

I just got that same error. It was working fine the other day now I get that error. Did you get a solution to this error? 

0 Kudos
MattLayman
Occasional Contributor

I too have this issue- incredibly frustrating. @Ismael any thoughts?

0 Kudos
AndrewThompson_SCE
Occasional Contributor

I found out what it was for me. You have to be using the owner of the form. I got that error when running it from ArcPro and wasn't logged in using the form owner. 

0 Kudos
MattLayman
Occasional Contributor

Andrew- yes, this seems to be the case for me as well. Problem is, I want a user who doesn't own the form to have the ability to run a script that exports Survey123 results. Can anyone at ESRI advise on a workaround?

0 Kudos
ZacharySutherby
Esri Regular Contributor

Hey @mike_totti @AndrewThompson_SCE @MattLayman

In the Survey123 website under the Collaborate tab > Share results, are the results of the survey shared with the user trying to run the script? 

The method is trying to use the _results view to pass into the Survey123 report engine. Does the user running the script have access to the _results view? 

Thank you,
Zach
0 Kudos
MattLayman
Occasional Contributor

Hi Zach- yes, our entire organization has the results shared with them.

0 Kudos
ZacharySutherby
Esri Regular Contributor

Hey @MattLayman

To verify the user trying to run the script has the _results feature service view (or _stakeholder if the survey is older) shared with them? This will be different than the parent feature service the survey may be submitting to: 

ZacharySutherby_0-1731007802339.png

Is the same user able to export reports from the Data tab in the Survey123 website? 

Thank you,
Zach
0 Kudos
MattLayman
Occasional Contributor

We do not have a results feature service view. Is that something that I need to enable somewhere? We've never had a need for such functionality- we simply have a feature service and a map service published off of a SDE feature class, and obviously use the feature service for report submissions. And yes, the user can export reports from the data tab in the Survey123 website, but no one can export records (since the feature service is non-hosted).

0 Kudos
MattLayman
Occasional Contributor

@ZacharySutherby should this be reported as a bug? Any other ideas?

0 Kudos