|
IDEA
|
This would be a great feature. Users hang onto their accounts in case they ever need to update their storymaps, when those accounts could just be disabled until they need them and used by more active users.
... View more
02-28-2019
06:47 AM
|
0
|
0
|
3753
|
|
POST
|
Update: I put in a support ticket and there is an existing bug: BUG-000119057 : The Python API 1.5.2 generate_report method of the arcgis.apps.survey123 module, generates the following error: KeyError: 'results' I was playing with a workaround, where you basically just search for the generated reports in your organization and download them. I also delete them after downloading them so future runs wouldn't re-download them. #this script generates the KeyError: 'results' but still works from arcgis.gis import GIS import os from zipfile import ZipFile from arcgis.apps.survey123._survey import SurveyManager, Survey gis = GIS("https://YOURORGANIZATION.maps.arcgis.com","USERNAME","PASSWORD") #fill in 3 strings here survey_mgr = SurveyManager(gis) letslearn = survey_mgr.get("id for survey form item in AGO") #fill in 1 string here print(letslearn.report_templates) #see all available print templates for this survey choice = letslearn.report_templates[0] #the print template you want to use (0 = first); fill in 1 number here print(choice) #example syntax for generate report for some features: letslearn.generate_report(choice, {"where":"fieldname='fieldvalueyouwant'"}) letslearn.generate_report(choice, "1=1") #generates report for all features #print(letslearn.reports) for x in letslearn.reports: #finds all Microsoft Word doc files in AGO with you as their owner and "Survey 123" in the tags. Could upload a Word document that wasn't a generated report, add that tag, and it would be found with this #print(x.description) remove "#" if you want to see them listed if x.description: #if it exists.. (some of my old generated reports had null descriptions) if 'id for survey form item in AGO' in x.description: #fill in 1 string here id = x.id #get id of that Word doc data_item = gis.content.get(id) #get Word doc as an item from AGO data_item.download(save_path = r'C:\where\ever\you\want\it') #fill in 1 string here; downloads that Word doc data_item.delete() #deletes that Word doc in AGO
... View more
02-25-2019
06:50 AM
|
0
|
21
|
8324
|
|
POST
|
I think I figured your issue out. By default with 1=1 (aka always true), I'm generating 3 reports because there are 3 completed surveys. The error I posted above shows that we're calling _survey.py to run generate_report(). In that .py, it says if where == "1=1": where = {"where":"1=1"} then it uses it like that. So when I put in my code a where statement that was valid and returned only 1 record when using Query under Supported Operations on the Service URL (link on the item's page in AGO), like this in my code: letslearn.generate_report(choice, {"where":"brandname='Fan'"}), only 1 report was generated. Still got my KeyError: 'results', but on the Survey123 website under Report>Recent Tasks>only 1 record in the last task. Hope that helps.
... View more
02-22-2019
09:10 AM
|
4
|
1
|
8324
|
|
POST
|
Thanks! I'll be checking that out, though I was able to resolve my original issue with a support ticket.
... View more
02-22-2019
05:57 AM
|
0
|
0
|
3027
|
|
POST
|
Glad to hear someone else is trying to do this. I haven't found a solution yet. Are you saying the output was fine from the Survey123 website? You aren't able to access the output in Python, are you?
... View more
02-21-2019
12:56 PM
|
0
|
3
|
8324
|
|
POST
|
Michael Fettkether were you able to resolve this? I'm also getting Invalid JSON on my layers in Explorer. None of the suggestions have helped me.
... View more
02-06-2019
12:36 PM
|
0
|
1
|
3539
|
|
POST
|
Does it work if you update the sourceUrl when editing the item's JSON in ArcGIS Online Assistant ?
... View more
01-15-2019
11:30 AM
|
0
|
1
|
5367
|
|
POST
|
What if you add the user to a group and then in the survey, on the Collaborate tab, go to Viewer on the left, then select that group as "Who can view data of this survey?" with "All records" checked. Does that work?
... View more
01-10-2019
09:37 AM
|
0
|
6
|
2778
|
|
POST
|
Do you have editor tracking enabled so you have a field saying when the features were created? There are some examples around GeoNet of people editing the JSON to then make a dynamic date filter on the layer based on that field. https://community.esri.com/docs/DOC-8191-dynamic-date-filter I haven't tried this myself though. Do you need views? I would just add the layers to a new webmap, filter based on datetime by editing the JSON, and disable editing on these layers if it's only for viewing in the web app. Since you said you want to avoid JSON edits, you could also use Arcade to symbolize based on age instead of making separate layers. Also, not great for your situation since you're just in AGO, but in one of my apps, we host on our own ArcGIS server, so when I published the .mxd I placed a definition query on the layer there to only show the features from the past month.
... View more
01-09-2019
10:06 AM
|
0
|
0
|
2783
|
|
DOC
|
Is the feature layer you're running this on publicly accessible? If yes, what's the url?
... View more
01-09-2019
08:04 AM
|
0
|
0
|
15872
|
|
DOC
|
Sounds like Holly's error above, see my previous response for a solution: adding [0] to the end of the currentAttachmentPath variable
... View more
01-08-2019
01:30 PM
|
2
|
0
|
15871
|
|
POST
|
Not sure why it didn't work for you. I'd suggest opening a support ticket with ESRI. If you learn of anything new to help fix the issue, please share with us!
... View more
01-07-2019
07:55 AM
|
0
|
7
|
6347
|
|
POST
|
Hi Anibal, I'm not aware of any forum-like product being able to directly integrate with Portal. I'm not sure how that would work or look. Portal does allow you to enable comments on items, so that's one way of communicating among users directly in Portal. In my situation, Teams will just be a separate product users can use.
... View more
12-19-2018
12:05 PM
|
1
|
0
|
2293
|
|
POST
|
From my testing, it appears that they need to editable layers. When I used the new Share widget on our noneditable Assigned layer (yellow), I would get the error "washtenaw.maps.arcgis.com says Requested feature not found". When I made that Assigned layer editable in the webmap, the Share widget generates a valid URL to that feature. For our app, the Unassigned and Assigned are the same feature class, so I'll make them one layer with different symbology based on Status. Then they won't have the option in Crowdsource Reporter to make an Assigned request and the URL will find the feature until the request is closed and filtered out of the layer at the service level. The Share widget uses &selectedFeature instead of &oid, are both valid then?
... View more
12-19-2018
07:19 AM
|
0
|
1
|
4692
|
|
POST
|
We're going to be using Microsoft Teams since it integrates well with the other Microsoft products we use, but Slack is another great option.
... View more
12-19-2018
06:25 AM
|
1
|
0
|
2293
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-23-2025 06:30 AM | |
| 1 | 03-10-2026 10:37 AM | |
| 3 | 03-05-2026 01:21 PM | |
| 2 | 02-12-2026 07:21 AM | |
| 2 | 09-04-2025 12:24 PM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|