|
POST
|
I changed the title from wordwrap to line wrapping since the answer I found called it that. Here's how to set it up to work in Jupyter Notebook, which should also work in your Pro Notebook at the same time. 1) Look for your configuration file Win Start Menu > ArcGIS > Python Command Prompt > jupyter --config-dir 2) The command prompt should tell you it's in C:\users\youl\.jupyter C:\users\you\.jupyter > nbconfig > notebook.json > add "lineWrapping": true after "lineNumbers": true, For example, {
"Cell": {
"cm_config": {
"lineNumbers": true,
"lineWrapping": true
}
},
"keys": {
"command": {
"unbind": [
"i,i"
],
"bind": {
"ctrl-i": "jupyter-notebook:interrupt-kernel"
}
}
},
"load_extensions": {
"repr_style/main": true
},
"Notebook": {
"Toolbar": true
}
}
... View more
03-08-2022
12:08 PM
|
1
|
0
|
2772
|
|
POST
|
I'm looking through the menus in a Pro Notebook to wordwrap, but I'm finding nothing. Does it exist?
... View more
03-08-2022
08:28 AM
|
2
|
1
|
2801
|
|
POST
|
Hello, I'm an administrator of an AGOL account. I've created a group with this account. Then I signed out of that account. I signed back in with a HUB organizational account sign-in and added a member without sending an invitation. This member has a User role. However, I don't see a way to add her to the group from either Hub or my AGOL account? Anyone know how to do this?
... View more
02-04-2022
07:33 AM
|
0
|
0
|
708
|
|
POST
|
@MichaelVolz My script wouldn't run via Windows Task Scheduler with any of the above suggestions, until I tried running it from Pro's scheduler. I loosely followed this Pro help page: https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/schedule-geoprocessing-tools.htm Basically, I saved my stand-alone script as a script tool with no parameters. Before you hit Run, set up the schedule. I added a bunch of arcpy.AddMessage() print statements so I could see how it was progressing. As MichaelTorbett said, Pro actually uses Windows Task Scheduler to run the geoprocessing tool. In the Task Scheduler, under the Actions tab, it used the pythonw.exe file as the Program/script and the argument was stuffed away here: "C:\Users\me\AppData\Local\ESRI\ArcGISPro\Geoprocessing\ScheduledTools\WasteRecyclingReport_02012022_0325PM\task.py"
... View more
02-01-2022
02:33 PM
|
0
|
0
|
8995
|
|
POST
|
@jcarlson Yeah, the originator of the data doesn't exactly stay within our county boundaries--which makes geolocating all the more fun for me. Thanks for the tips! The view was actually made from a published feature layer if that says anything. I ended up making changes in the script that published the feature layer, and instead of making a feature layer I did a feature class to feature class conversion--then overwrote the hosted feature layer. This changed something because now I can update the view.
... View more
01-27-2022
01:19 PM
|
0
|
2
|
4181
|
|
POST
|
@DataOfficer, Thanks for the reply. When I initially posted I made changes to the view by defining an area of interest. Now I fumbled around in the Select fields part until Update wasn't greyed out. But, no matter what I get that error.
... View more
01-27-2022
12:38 PM
|
0
|
0
|
4184
|
|
POST
|
I have no idea why I can't update the view. This setting used to be in the visualization tab. Then it got moved to the settings tab. In the Update View pane I select my layer, then in the second step Update is greyed out. If the second step is optional then why is Update greyed out? I don't need/want to change anything here, but it's the only way out apparently. So, I randomly set area of interest then hit Update. Then I'm hit with a vague error. Anyone know what's going on here?
... View more
01-27-2022
12:01 PM
|
1
|
7
|
4197
|
|
POST
|
Any success running a *.ipynb from the Task Scheduler? I would also like to run a Notebook file directly. This particular script I have saved as a .py file produces errors caused by the ArcGIS World Geocoding Service. And for some reason it only runs as a Notebook file.
... View more
01-24-2022
08:29 AM
|
2
|
2
|
6764
|
|
POST
|
Hello, I'm wondering if anyone has seen this error as it appears on a Dashboard? I followed the instructions of the Download Data help page. I have a feature layer view that my List element is referencing. I set the data download option both in the layer Settings and in Dashboard. However, when I select from the list, then click the download button I see that error. I must have muddled the data during testing, because the download worked fine at first. The only suspicious thing I'm seeing is the feature layer that the view is created from is not visualizing in AGOL. I can't explain that either?
... View more
01-11-2022
02:01 PM
|
0
|
0
|
837
|
|
POST
|
I find it useful sometimes to run the geoprocessing tool and then right click the green ribbon > Copy Python Command-- that is, if the tool runs successfully. Then copy that into your python editor. You can see how the parameters should look.
... View more
01-03-2022
02:31 PM
|
0
|
0
|
5536
|
|
POST
|
@JohnMiller7 I thought it worked, but I think it only worked because I first removed the table from the FGDB before I ran the script. Once I ran it with that table existing in the FGDB I got the same error. The way I finally got it to work was to first delete the table before I ran the geocode function. tables = arcpy.ListTables()
for table in tables:
arcpy.Delete_management(table)[0]
... View more
12-30-2021
02:11 PM
|
0
|
0
|
3579
|
|
POST
|
@JohnMiller7 Very good to know, thanks. I put the full path for the in_table variable and it ran successfully. in_table = r'\\pathto\Projects\Will County Green\WasteRecyclingReport\Default.gdb\wasteRecyclingReport'
... View more
12-30-2021
09:02 AM
|
0
|
0
|
3657
|
|
POST
|
Looking up the 000010 Error I don't see anything in connection to "The table already exists". I looked over everything in the one help doc I found and nothing therein seems to be relevant. https://pro.arcgis.com/en/pro-app/2.8/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-00001-00025-000010.htm I've been testing this script for a week now and I haven't been hung up on this error. I set OverwriteOutput to True. I'm not using a shapefile anywhere. I'm saving to a GDB. If anyone has any pointers I'd appreciate it! import arcpy, csv
from arcgis.gis import GIS
import os
portal = r"https://willcountygis.maps.arcgis.com/" #<--Can also reference a local portal
user = 'username'
password = 'password'
arcpy.SignInToPortal(portal,user,password) #<--use this if script is run outside Pro
gis = GIS('https://willcountygis.maps.arcgis.com', 'username', 'password')
arcpy.env.overwriteOutput = True
'''
1. Grab Waste Recycling Contractor Reporting Form (results from Survey123) feature service and export to table, then save in Default.gdb
'''
layer_name = "Waste Recycling Contractor Reporting Form"
defaultDB = r'\\pathto\Projects\Will County Green\WasteRecyclingReport\Default.gdb'
#Create feature class from input feature service.
wasteRecyclingReportFS = arcpy.MakeFeatureLayer_management("https://services.arcgis.com/fGsbyIOAuxHnF97m/arcgis/rest/services/service_e42e606d08284c32bbefd94b6f18764a/FeatureServer/0",
layer_name)
print(f'Survey123 results being exported to table')
#export to table
arcpy.conversion.TableToTable(wasteRecyclingReportFS, defaultDB, 'wasteRecyclingReport')
'''
2. geocode the addresses with the ArcGIS World Geocoding Service
'''
#ArcGIS World Geocoding Service URL
locator = "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/ArcGIS World Geocoding Service"
#Locator parameters
fieldMap = ("'Address or Place' addy VISIBLE NONE;Address2 <None> VISIBLE NONE;Address3 <None> VISIBLE NONE;Neighborhood <None> VISIBLE NONE;City city VISIBLE NONE;County <None> VISIBLE NONE;State state VISIBLE NONE;ZIP zip VISIBLE NONE;ZIP4 <None> VISIBLE NONE;Country <None> VISIBLE NONE")
gcName = "wasteRecyclingReport_geocode"
#newly created table of survey data
in_table = os.path.join(defaultDB, "wasteRecyclingReport")
geocodeResult = os.path.join(defaultDB, gcName)
print(f'Geocoding table')
# perform geocode
arcpy.geocoding.GeocodeAddresses(in_table,locator,fieldMap, geocodeResult, "STATIC", None, "ROUTING_LOCATION", None, "ALL") Print statements and error: Survey123 results being exported to table
Geocoding table
---------------------------------------------------------------------------
ExecuteError Traceback (most recent call last)
In [1]:
Line 44: arcpy.geocoding.GeocodeAddresses(in_table,locator,fieldMap, geocodeResult, "STATIC", None, "ROUTING_LOCATION", None, "ALL")
File C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geocoding.py, in GeocodeAddresses:
Line 519: raise e
File C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geocoding.py, in GeocodeAddresses:
Line 516: retval = convertArcObjectToPythonObject(gp.GeocodeAddresses_geocoding(*gp_fixargs((in_table, address_locator, in_address_fields, out_feature_class, out_relationship_type, country, location_type, category, output_fields), True)))
File C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py, in <lambda>:
Line 512: return lambda *args: val(*gp_fixargs(args, True))
ExecuteError: ERROR 000010: Geocode addresses failed.
The table already exists. [wasteRecyclingReport_geocode]
Failed to execute (GeocodeAddresses).
--------------------------------------------------------------------------- EDIT: Just an observation, arcpy.conversion.TableToTable() doesn't have a problem with overwriting as you can see from the print statement. So, why is the geocoded table not overwriting?
... View more
12-30-2021
07:26 AM
|
0
|
4
|
3772
|
|
POST
|
I had to give up and use the same XLSForm to create a new survey. Too many moving parts...
... View more
12-23-2021
12:20 PM
|
0
|
0
|
2121
|
|
POST
|
I'm not sure how this happened or how to fix it. I'm working in Survey123 Connect. I've created this survey a while ago. But suddenly the web form is not loading. The loader never goes away. I don't see any errors in in Connect and it also publishes without errors. Not sure if this helps but here's what I'm seeing in FF dev tools:
... View more
12-23-2021
11:31 AM
|
0
|
1
|
2160
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 1 | 05-04-2026 08:45 AM | |
| 1 | 04-20-2026 01:20 PM | |
| 1 | 07-24-2025 01:27 PM | |
| 1 | 11-13-2025 08:22 AM |
| Online Status |
Online
|
| Date Last Visited |
2 hours ago
|