|
POST
|
I am attempting to use the sync_replicated_items class from the #ArcGIS API for Python to synchronize two services, one on AGOL and one on an internal portal but receive a Runtime error code 500. I created the internal portal feature service using the create_replica_item class, and both have the same replica name and ID (although the internal is all caps and external id is lower case, if this makes a difference). The script successfully connects to both AGOL and our internal portal. Error below ---------------------------------------------------------------------------RuntimeError Traceback (most recent call last)<ipython-input-12-3b2f687ad756> in <module>() 19 print("syncing services") 20 ---> 21 sync_extint = ext_fs.replicas.sync_replicated_items(ext_item,int_item,'NWW Spot Report') 22 23 print(sync_extint)C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\managers.py in sync_replicated_items(self, parent, child, replica_name) 632 if child_replica_id and \ 633 parent_replica_id:--> 634 import tempfile, os 635 child_replica = child_replicas.get(replica_id=child_replica_id) 636 parent_replica = parent_replicas.get(replica_id=parent_replica_id)C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\managers.py in get(self, replica_id) 389 when the replica was created. 390 """--> 391 return self._fs._replica_info(replica_id) 392 393 # ----------------------------------------------------------------------C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\layer.py in _replica_info(self, replica_id) 1509 } 1510 url = self._url + "/replicas/" + replica_id-> 1511 return self._con.get(path=url, params=params, token=self._token) 1512 1513 # ----------------------------------------------------------------------C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\connection.py in get(self, path, params, ssl, compress, try_json, is_retry, use_ordered_dict, out_folder, file_name, force_bytes, add_token, token) 875 return self.get(path=path, params=params, ssl=True, compress=compress, try_json=try_json, is_retry=True) 876 --> 877 self._handle_json_error(resp_json['error'], errorcode) 878 return None 879 except AttributeError:C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\connection.py in _handle_json_error(self, error, errorcode) 1174 1175 errormessage = errormessage + "\n(Error Code: " + str(errorcode) +")"-> 1176 raise RuntimeError(errormessage) 1177 1178 class _StrictURLopener(request.FancyURLopener):RuntimeError: (Error Code: 500)
... View more
10-01-2018
09:57 AM
|
0
|
1
|
790
|
|
DOC
|
Thanks Jake, we will be able to accomplish what we need too with this additional information.
... View more
09-28-2018
07:23 AM
|
0
|
0
|
8285
|
|
DOC
|
Jake, I believe the request has been sent and permissions should be ok but with AGOL is always a bit of crap shoot. FYI, I could only find jskinner_CountySandbox. Update, the tool did work when I supplied the URL of the Feature Layer versus the URL of the Feature Service (which also has a related table).
... View more
09-27-2018
01:31 PM
|
0
|
0
|
8284
|
|
DOC
|
I am attempting to extract from our AGOL Organization account services directory (ex https://services3.arcgis.com/ ). I did change the token URL to our org which works with another python script against the services directory so its a little puzzling why this doesn't.
... View more
09-27-2018
12:30 PM
|
0
|
0
|
8284
|
|
DOC
|
Ever manage to resolve that issue? I get the same error using Desktop 10.6.
... View more
09-27-2018
11:22 AM
|
0
|
0
|
8284
|
|
POST
|
Instead of granting each sde user CREATE TABLE/SEQUENCE can the SDE_LOGFILES and SDE_LOGFILE_DATA tables (and sequence) be created in their schema in advanced using sql?
... View more
06-25-2013
03:41 PM
|
0
|
2
|
823
|
|
POST
|
I am curious what your resolution was, more resources on existing servers or more VMs?
... View more
05-13-2013
12:43 PM
|
0
|
0
|
1063
|
|
POST
|
Thanks! I just switched the event from 'onClick' to 'onMouseOver' and got just what I was looking for.
... View more
02-28-2013
11:17 AM
|
0
|
0
|
733
|
|
POST
|
Thanks LANDVEST, you just saved me some serious frustration.
... View more
02-05-2013
01:55 PM
|
0
|
0
|
630
|
|
POST
|
I am getting the same problem with this script. Smells buggy. Win 7 64-bit v10.1 import arcpy
from arcpy import env
env.compression = "JPEG 75"
env.workspace = "D:\\Tiles"
indir = "D:\\Tiles"
outdir = "D:\\TilesOut"
rasterlist = arcpy.ListRasters("*", "ALL")
for raster in rasterlist:
inras = indir + "\\" + raster
print "In image " + inras
outras = outdir + "\\" + raster
arcpy.CopyRaster_management(inras,outras,"#","#","256","NONE","NONE","8_BIT_UNSIGNED","NONE","NONE")
print "Out image " + outras
break
... View more
10-24-2012
08:43 AM
|
0
|
0
|
1282
|
|
POST
|
We do have 2003 r2 and have met all of the other requirements. Could it be we are using the 32 bit ASP .NET web services extension? Its isn't specified in the system requirements.
... View more
04-03-2012
03:40 PM
|
0
|
0
|
802
|
|
POST
|
I successfully installed the application but when I try to browse to the builder site I get a 404 error. All of the permissions seem to be in order so I don't think it is related to permissions. We are running Windows Server 2003 64 bit.
... View more
04-03-2012
02:23 PM
|
0
|
7
|
2952
|
|
IDEA
|
-->
Make a versoin Workgroup SDE that can work with Oracle Express (XE)
... View more
03-21-2012
07:53 AM
|
8
|
1
|
490
|
|
POST
|
I am creating a tool that will allow a user to upload a csv file into our Oracle/SDE database. Not sure what changed from yesterday to today but now this script is working, it successfully inserted the record. Here is the code, import arcpy, csv from arcpy import env #### parameters inCSV = "C:\\Temp\\test.csv" #### connect to sde database env.workspace = "\\\\egis\\GeoTools\\System\\cw_em_load.sde" copfc = "EM.COPIncident_P" #### parse and convert csv to list, create point the prepare attributes opencsv = open(inCSV, 'rt') csvlist = csv.reader(opencsv) for row in csvlist: pnt = arcpy.Point() pnt.Y = float(row[7]) pnt.X = float(row[8]) inctype = row[0] #### create insert cursor and insert feature cur = arcpy.InsertCursor(copfc,"\\\\egis\\GeoTools\\System\\WGS 1984.prj") sdrow = cur.newRow() sdrow.SHAPE = pnt sdrow.INCIDENTTYPE = inctype cur.insertRow(sdrow) #### cleanup opencsv.close() del sdrow, cur, pnt
... View more
01-13-2012
07:48 AM
|
0
|
0
|
2157
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-09-2022 03:52 PM | |
| 1 | 04-16-2019 08:17 AM | |
| 8 | 03-21-2012 07:53 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-24-2022
06:12 PM
|