I have spent some time this month trying to understand how the Citizen Problem Reporter solution works There are a lot of basic questions I had that I couldn't find answers to on the Get Started page or elsewhere on the world wide web.
I thought I'd share some of the answers I've figured out with the automated deployment of the Citizen Problem Reporter Solution and see if anyone else has other questions/solutions!
Question | Answer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Why do I only see "Configured group is invalid or no items have been shared with this group yet." on my Reporter application? | This has to do with the fact that the configured group does not contain at least one map with at least one editable layer that is accessible to the current user. If the group does contain an editable map with an editable layer, then check the sharing. It may be that you haven't updated the sharing of the group or if you have, perhaps you are not Signing In with the proper account -- Sign in with ArcGIS if it isn't shared publicly. I kept trying to sign-in as Guest longer than I care to admit. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Why can't I see the image tab on a selected report in the Citizen Problem Manager? | This tab is only visible when the selected report contains at least one image attachment, or images and charts defined as part of the popup configuration. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Why can't the user attach photos to reports? | Attachments aren't enabled. When you do this process automatically, the layers are automatically uploaded to AGO. The attachment section of the form where photos and other supporting files can be added to the report is only available when attachments are enabled on the layer. This can be easily done by going to the feature layer in AGO and clicking "Enable Attachments". | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How do I add fields in the form of the Reporter? |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How do I delete fields in the form of the Reporter? | Open ArcGIS Pro. Add the Report Layer or Comment Table that the field is located in | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How do I turn off fields in the form of the Reporter? | If you don't want to display a field, but you aren't ready to delete it, go to the AGO web map that the layer is on. Go to Configure Pop-Up and then click Configure Attributes and just uncheck the Display. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Why can't the user edit the fields in the form? | First, when you are creating the field in the Configuration Task via ArcGIS Solutions, it's vital that you give the field a Field Length. The other issue may be that editing isn't enabled on the layer or in the pop-up. When you are in the AGO web map, Configure Pop-Up and then click Configure Attributes and ensure that the Editing box is checked in addition to the Display check box. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How can manipulate how every report/comment looks? | As far as I can't tell, you can't change the look of the form itself. However, once the report/comment is posted, you can change how this looks. This again happens in the AGO Web Map layer pop-up. When you go to Configure Pop-Up you have a few options. Under Pop-up Contents --> Display dropdown, change it to A custom attribute display --> then CONFIGURE. Here, you can add your own text and pull information from the report/comment fields (by clicking the + box; see image below). Scroll to the bottom where it says Pop-up Media. Here you can add a standard image/chart to all of the posted reports/comments. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How do I change colors and text in the Reporter? IMPORTANT NOTE: it is highly recommended that when these changes are made to Reporter maps/layers/applications, they are also made to the respective maps/layers/applications in the Manager for consistency and clarity purposes. |
|
Do you have other solutions or questions? I'd love to hear them!
I thought I had everything set up right, but I continually get this error message when submitting my report. Are there any obvious reasons why this is?
Hi Jared, its tough to tell from the screenshot alone what would cause this issue. Would it be possible to share the app with me? You can contact me directly at chris_fox@esri.com if you would prefer to send the link to the app to me directly.
Hi Chris,
Thanks, I sent you the app.
Wanted to follow-up for the thread. We found that a new field had been added to the source service that did not allow null values. When the problem reporter app was attempting to create a new feature it was not passing an attribute for that field which caused the edit operation to fail.
Hello team,
Please see screenshots from A, B and C. In crowdsource reporter, is there any way to skip this (B) part direct to submit a form (A) and (C)? I don't mind customization in code if it is possible. Please advise. Thank you for your assistance.
A)B)
C)
crowdsource reporter source crowdsource reporter #citizen problem reporter
When attempting to run the servicefunctions.py file from an IDE (VS Code) the IDE doesn't know the arcgis.gis module. In the IDE, I'm running the correct Python. It's Python 3 from the arcgispro-py3 location. This arcgis.gis module seems to be used in Jupyter Notebook.
In the PDF on page 37-8 it mentions running the script using Windows Task Scheduler, but I don't see mentioned what environment to run the script in? So, I'm tying to run it in VS Code and can't. I did complete the preceding step that explains how to set up Send Emails Tool. How can I get the servicefunctions.py script to run?
Jared,
Could you try calling it from a command prompt directly using a command like:
"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" "C:\Temp\service_functions.py"
I like doing it like this because you can be sure you are targeting the correct version of python. If this fails, what version of Pro do you have? The most recent versions should all ship with the arcgis python api.
Chris,
OK, I ran it from the command prompt. It produced a couple errors, however. I'm not sure what the errors mean.
C:\Users\jpilbeam>"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" "C:\ServiceSupport\servicefunctions.py"
ERROR: Failed to process service https://services.arcgis.com/fGsbyIOAuxHnF97m/arcgis/rest/services/CitizenProblems_landuse/FeatureServer/0
'FeatureLayer' object has no attribute '_lazy_properties'
ERROR: Failed to process service https://services.arcgis.com/fGsbyIOAuxHnF97m/arcgis/rest/services/CitizenProblems_bb0fbdc850114e6f8c11c32b9768e643/FeatureServer/0
[WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
I have the most current version of Pro-- 2.4.1
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-e5be50c48b0c> in <module>
19 # ------------------------------------------------------------------------------
20
---> 21 from send_email import EmailServer
22 import re
23 from datetime import datetime as dt
ModuleNotFoundError: No module named 'send_email'
Jared,
The 2 errors from the notebook and pro can be explained because of the way you are calling the code, the send_email module is a python script in the same directory as the servicefunctions.py and that is how python resolves it, if you pull the code out it won't execute.
The first error is not clear. It looks like it is failing to connect to your feature layer in your org. Could you try running the following code in the python window in Pro (replace with your org url, user and pw):
from arcgis.gis import GIS
from arcgis.features import FeatureLayer
gis = GIS('org_url', 'user', 'pw')
lyr = FeatureLayer('https://services.arcgis.com/fGsbyIOAuxHnF97m/arcgis/rest/services/CitizenProblems_landuse/FeatureSer... ', gis=gis)
print(lyr)
Chris,
Ok, that makes sense.
I put the code in Pro. Here's the result:
<FeatureLayer url:"https://services.arcgis.com/fGsbyIOAuxHnF97m/arcgis/rest
/services/CitizenProblems_landuse/FeatureServer/0 ">