|
POST
|
i've been having the same issue over the last few months, i have two Notebooks scheduled and every now and then they just get stuck. At the moment one of them has been stuck for nearly 10 days, it would be nice if we could manually stop it or to be able to set a timeout @Anonymous User did you manage to find anything from your investigations? Thanks Stu
... View more
12-17-2021
12:24 AM
|
0
|
1
|
1598
|
|
POST
|
hi @GIS_Fox, we've not had anything back from them yet, i did try a few workarounds to get the data, you can export it from ArcGIS Pro using "table to excel" and also managed to do something very crude in AGOL Notebooks, lastly just tried Data Interopability in Pro and that also worked but none are the best solution as its me having to run them rather than the usual team i'll post an update if i do hear anything thanks Stu
... View more
12-15-2021
04:40 AM
|
1
|
0
|
1086
|
|
POST
|
Hi all, has anyone else had any issues with the Survey123 website since the December update / AWS issue? we have a few surveys but one of them is having issues with exporting the total parent records of that survey is just over 110,000 and has 8 related features & tables class's, if i filter for surveys updated over the last 1 day ( a few hundred ) and then go to export and try to export it to excel it just sits there for hours doing nothing we have an idential survey in terms of questions / related features / tables but with only 5,000 parent records and i can export from that without issue we've got an ESRI case open but just wanted to see if anyone else has had the same issues with large surveys
... View more
12-13-2021
02:57 AM
|
2
|
2
|
1151
|
|
POST
|
i'll answer my own question... such a simple mistake... you need to specify the out fields... bobFS_Area_Filter = bobFS_Area.query(where = "objectid = 3",out_fields="objectid, SurveyStatus")
... View more
12-09-2021
08:22 AM
|
0
|
0
|
1024
|
|
POST
|
one work around would be to check the map before it ran and then give an error if its not the correct one but the user running the script would then need to notice it and not assume its ran and that there was nothing to export
... View more
12-09-2021
08:13 AM
|
0
|
1
|
1059
|
|
POST
|
i'm trying to read a polygon feature in AGOL do some things and then set a attribute to complete but for some reason i get an error when trying apply the updates, ive re-used some code that has worked on a different FS but i'm stumped can anyone see what i have missed.... from arcgis.gis import GIS
import os
gis = GIS("home") bobFS = gis.content.get("5xxxxxxxx9")
bobFS_Area = bobFS.layers[0]
bobFS_Area_Filter = bobFS_Area.query(where = "objectid = 3") for bob in bobFS_Area_Filter:
print (bob.attributes['OBJECTID'])
print(bob.attributes['SurveyStatus'])
bob.attributes['SurveyStatus'] = 'Comp'
bobFS_Area.edit_features( updates=[bob])
print("Done") results 3
Met
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
In [78]:
Line 5: bobFS_Area.edit_features( updates=[bob])
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\features\layer.py, in edit_features:
Line 2827: return self._con.post_multipart(path=edit_url, postdata=params)
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py, in post_multipart:
Line 868: force_bytes=kwargs.pop("force_bytes", False),
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py, in _handle_response:
Line 625: self._handle_json_error(data["error"], errorcode)
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py, in _handle_json_error:
Line 648: raise Exception(errormessage)
Exception:
Field Street_hyper has invalid html content.
(Error Code: 400)
---------------------------------------------------------------------------
... View more
12-09-2021
08:11 AM
|
0
|
1
|
1026
|
|
POST
|
so i have a project with 3 maps and layout, i have some code that exports the layout which uses two of the maps, the third map is used to select some features and then export it to a DXF file, this all works fine if the DXF map is selected before you run the code, if not it errors saying the DXF export can't find one of the layers so how can i set the DXF export map as the code is ran i've tried a few things but nothing works m = aprx.listMaps('CAD_EXPORT')[0]
m.active()
m.enabled() thanks
... View more
12-09-2021
07:25 AM
|
0
|
3
|
1067
|
|
POST
|
thanks @MobiusSnake i tried that but it just came up with this error: ---------------------------------------------------------------------------
Exception Traceback (most recent call last)
In [97]:
Line 2: UpdsFeat = FeatLyr.query(where = "DATEMODIFIED > (CURRENT_TIMESTAMP-45)", return_all_records = False, result_offset = 100, result_Record_Count = 100)
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\layer.py, in query:
Line 1727: return self._query(url, params, raw=as_raw)
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\layer.py, in _query:
Line 2998: return self._query(url, params, raw=False, add_token=False)
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\layer.py, in _query:
Line 3034: raise queryException
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\layer.py, in _query:
Line 2984: path=url, postdata=params, add_token=kwargs.get("add_token", True)
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py, in post:
Line 1079: force_bytes=kwargs.pop("force_bytes", False),
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py, in _handle_response:
Line 625: self._handle_json_error(data["error"], errorcode)
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py, in _handle_json_error:
Line 648: raise Exception(errormessage)
Exception: Unable to complete operation.
Unable to perform query operation.
(Error Code: 400)
... View more
11-24-2021
01:04 AM
|
0
|
0
|
2861
|
|
POST
|
thanks @jcarlson yea they are not available in the json so i guess its the server, i guess there is no way around it
... View more
11-23-2021
08:50 AM
|
0
|
0
|
2885
|
|
POST
|
so i want to query a feature layer thats accessed via AGOL but the actual features are served up from ArcGIS Server (i think its 10.3) i have this in an ArcGIS Pro Notebook and it should be returning the second set of 100 records but instead its returning all 1800 records UpdsFeat = FeatLyr.query(where = "DATEMODIFIED > (CURRENT_TIMESTAMP-45)",result_offset = 100, result_Record_Count = 100) is is because the feature service is coming from an old version of ArcGIS Server that doesn't support the result_record_count & Results_offset? thanks Stu
... View more
11-23-2021
06:57 AM
|
0
|
5
|
2925
|
|
POST
|
got the sharing to work using this: gis.content.share_items(items=search_for_batch_reports, groups=['5e................e68'])
... View more
11-23-2021
12:20 AM
|
0
|
0
|
1980
|
|
POST
|
upgraded to 2.9 last night and it seems to be working again 🙂
... View more
11-17-2021
12:22 AM
|
0
|
0
|
2742
|
|
DOC
|
i had the same issues with the truncate, i don't think it wanted to run on a feature with 12 million records so i followed the above suggestions of deleting it in small chunks but one extra step i did was once they were all deleted i then truncated the feature service without issue i also kept getting the 504 errors so i introduced a try / except into the notebook which kept it running till it had finished here's my code if anyone is interested jump = 10000
while True:
try:
filterq = "OBJECTID <{0}".format(jump)
print(filterq)
la_df = lry.delete_features(where = filterq)
la_df
jump = jump + 10000
print(str(la_df).count("success"))
if jump > 13000000:
lry.manager.truncate()
break
except:
print("error") Stu
... View more
11-11-2021
12:02 AM
|
0
|
0
|
56842
|
|
POST
|
spent the day trying to do it via a replica but there seems to be no way to upload the data back into AGOL to sync 😞
... View more
11-10-2021
08:08 AM
|
0
|
0
|
1003
|
|
POST
|
so i have a point dataset stored in AGOL as a feature service containing a little over 12 million rows and i need to update one field based on some criteria my initial thought was to create a script to do it in Notebooks in AGOL updCount =0
while True:
try:
updSym = slry.query(where="PROV_src='aaa' and Symbology is null", return_all_records = False, result_record_count = 2000)
print(len(updSym))
if len(updSym) ==0:
break
else:
for x in updSym:
#loops all returned records and updates the symbology field to 5
print("ObjectID:- {0} -- {1}".format(x.attributes['OBJECTID'],x.attributes['PROV_SRC']))
x.attributes['Symbology'] = 5
#commits the edits
res = slry.edit_features(updates = updSym.features)
resstr = str(res)
#counts the number of success = true in the results and adds it to the completed ones
updCount = updCount + resstr.count("'success': True")
print("updated:- {0}".format(updCount))
except:
print("error") the script above if just for one of the criteria and it does work but its slow i think its running about 20 seconds per 2000 rows... its running the notebooks as standard and not advanced not sure if that makes a difference is there a better way short of updating the original FGDB locally on my laptop and re-publishing it Stu
... View more
11-10-2021
12:51 AM
|
0
|
1
|
1043
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-16-2025 02:25 AM | |
| 1 | 09-08-2025 07:14 AM | |
| 8 | 07-17-2025 01:23 AM | |
| 3 | 07-04-2025 02:55 AM | |
| 1 | 06-27-2025 03:41 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-17-2026
05:42 AM
|