POST
|
I've been going through and updating some old scripts from Python 2 to Python 3. These are typically very very minor changes, such as updating dictionary methods from old stuff like "viewitems" and "iteritems" to "items." I haven't changed anything in this script at all except now when I run it, when it hits lines with an UpdateCursor (hereforth, UC), it says the "in_table" is not a table or feature class. I have run Describe on feature class that I am passing to the UC to ensure that it is a feature class and it is. It is not participating in any joins, topologies, networks, network datasets or anything like that. It is coming from a file geodatabase. The documentation mentions something about "some" feature classes not working with class extensions and I wonder if that's my problem? This feature class does use domains, but I'm uncertain if the class extensions they're referring to in the documentation are custom class extensions and not the "out of the box" stuff. The last time this script worked, I was using ArcMap and Enterprise 10.7 I believe. I can alter my code to make a feature layer and give that to the UC and it works, but I don't understand why... The code is really long, so I've tried to boil it down. svyPtFC = os.path.join(uploadedGDB, "{0}_Patch_Template".format(stateID))
try:
#Check the projection of the input feature class.
prjInfo = inputDesc.spatialReference
if prjInfo.PCSCode != 102003:
#Project the feature class to match the Patches FC in the SDE database
spatialRef = arcpy.SpatialReference(102003) #USA Contiguous Albers Equal Area Conic EPSG code
svyPtFC = arcpy.Project_management(svyPtFC, os.path.join(scratchGDB, "projection"),
spatialRef)
except:
# do stuff
#Split multipart polygons to single part. Each polygon has to be evaluated separately. Multipart features would not work
#well when evaluating appropriate access or adjacency.
multipartFL = arcpy.MakeFeatureLayer_management(svyPtFC, 'multipartFL')
svyPtFC = arcpy.MultipartToSinglepart_management(multipartFL, os.path.join(scratchGDB, 'singlepart'))
#Find any gaps between polygons 1 meter wide or less and fix the polygon edges so they are coincident with each other.
svyPtFC = arcpy.Integrate_management(svyPtFC, '1 Meter')
##### FAILS HERE ######
# Check float fields for decimals. If there is a decimal, multiply by 100 to make it a whole number.
with arcpy.da.UpdateCursor(svyPtFC, ['CropResidue', 'CnpyOver12', 'CnpyDecid', 'CnpyConif', 'ShrubCover',
'ShbHiStemsDens','GrassCover', 'ForbCover', 'FrbAsProtect', 'BareGround']) as uCursor:
for row in uCursor:
for position, item in enumerate(row):
if item < 1 and item != 0 and item != None:
item = item * 100
row[position] = item
uCursor.updateRow(row)
... View more
08-23-2022
10:19 AM
|
0
|
4
|
678
|
POST
|
I am attempting to publish a map service where I use some data from a folder I have registered with the server. The folders are located in different locations on their respective machines, it is NOT a shared drive. Maybe that's what is causing the issue here...but the folder registers and validates successfully: Unfortunately, the publishing of the service always fails due to error 001488: "The service you are trying to publish includes data but the site has been configured such that data cannot be copied to the server." I purposely have that checked off on my server as I do not want any data to be copied to my server when publishing anything. What am I misunderstanding here?
... View more
07-25-2022
02:38 PM
|
0
|
2
|
452
|
POST
|
I am able to use it in Portal, the problem comes when you try to take the basemap offline in an application like Collector. It will not allow you to use it unless you're logged in as an AGOL subscriber unfortunately. You can see the functionality limitation highlighted in the little gray "Note" box in this document: https://enterprise.arcgis.com/en/portal/latest/use/take-maps-offline.htm I might have been a little unclear in my use case when describing my question; I have a Portal account and my AGOL account. I am not an administrator on our AGOL subscription, but I am an administrator of our Portal so I can control the membership. The members of my Portal are not members of our AGOL subscription, so while they would be able to see the ESRI imagery basemap when logged into Portal or even on Collector when connected to wifi, the minute they try to download the map in Collector for use offline, it will ask for AGOL credentials. The linked doc above explicitly states: You can take an Esri basemap from ArcGIS Online offline with an ArcGIS Enterprise web map. To do so, you must have an account as a member of an organization in ArcGIS Online. What I was hoping was that by setting up a collaboration, the portal members would sort of "inherit" permission to use the ESRI imagery basemap since the Portal would be affiliated with our AGOL subscription more or less, but I don't think that will work now that I read how explicit the wording is.
... View more
07-25-2022
12:22 PM
|
0
|
0
|
595
|
POST
|
I didn’t test it, but upon more reading and in looking at the imagery page it has the little “Subscriber” badge, so I think even if I was able to share it through a collaboration, it’d just be a reference (not a copy) and would require members of my portal to have AGOL credentials which they don’t have. Bummer.
... View more
07-25-2022
12:10 PM
|
0
|
2
|
599
|
POST
|
I have an enterprise deployment and I’m thinking about setting up a distributed collaboration between my portal and my organization’s AGOL. The main reason for this would be to get access to ESRI’s imagery basemap for offline use in Collector (if you’re not part of AGOL, you cannot use ESRI basemaps in offline Collector maps). Will this give me the access I seek or will I still be out of luck? I wish it was as a simple as me testing this out myself, but I have to go through a lot of people before I can test anything and figured someone might be able to answer my question right off the bat.
... View more
07-25-2022
06:16 AM
|
0
|
4
|
641
|
POST
|
Oddly, I went in today and it's working again. I'm not sure what the deal was as I haven't had the time to try anything else since I posted yesterday. Thank you for listing all those files though, that will be helpful for me to know if the service is truly running next time or not!
... View more
07-08-2022
05:28 AM
|
0
|
0
|
1412
|
POST
|
I receive the connection refused error for the 7443 URL and the 500 internal server error for the webadaptorname/portaladmin URL.
... View more
07-07-2022
07:05 AM
|
0
|
2
|
1457
|
POST
|
Recently some IT folks installed a patch on our windows server and now I can no longer reach our Portal admin URL and am getting a "Connection refused" error message. If I try to load the portal home page I get a 500 error. I reconfigured the ArcGIS Server Account and restarted the service just to ensure that wasn't causing problems, but no dice. I can only find one help article on this issue and it's for 10.3 and I cannot find files the steps are referencing so that's no good. Anybody have any bright ideas on how to move forward?
... View more
07-07-2022
06:41 AM
|
0
|
4
|
1466
|
POST
|
Have you contacted ESRI support over this? If not, you should. That’s an important flaw/bug they need to know about. No viewer should ever be able to edit and I cannot imagine they ever intended AGP to act that way.
... View more
04-07-2022
04:17 AM
|
1
|
3
|
1400
|
POST
|
I tried that the other day and it doesn’t work. It says that the web adaptor config URL has to be accessed from the machine hosting the web adaptor. I’m logged into the server machine when I do this, so the message is non-sensical to me.
... View more
03-18-2022
01:35 PM
|
0
|
1
|
1184
|
POST
|
Well that sucks. I can't use any client closer to the source. The rasters are aerial imagery if that's what you mean by type. I need to be able to cache and publish them as a map service to use them as a basemap in Collector. We have an unfederated server with no copying of data upon publishing allowed, so they need to be registered in some way. Seems like putting them in the EGDB would be the way to go, but I honestly never really work with raster data so maybe not. Open to suggestions of course. Would dumping them in a folder registered with the server be more appropriate?
... View more
03-17-2022
01:57 PM
|
0
|
1
|
807
|
POST
|
I'm using the Raster to Geodatabase tool in 2.9.1 and I believe it's pretty slow for the raster it's processing. It just sits at 0% saying "Converting <raster name>" forever. I left it overnight and no movement. When I open the Diagnostic Monitor, Geoprocessing and Background Geoprocessing are lit up green and I see things moving in the Logs tab so I know it's doing something...just not effectively. The format of the raster I'm trying to move is a file geodatabase raster. It's uncompressed size is listed as 741 mb, so under a gig. I'm trying to move it from an FGDB to an enterprise geodatabase, so maybe internet speed is a factor? Pro is installed on my local computer, but I have to work over a VPN to access my enterprise data so that's certainly not helping anything. Is there a better way to move rasters from one geodatabase to another? Export Raster gives me the same results, slow.
... View more
03-17-2022
01:30 PM
|
0
|
3
|
817
|
POST
|
AGS. Since we only host one site on the web server, we have left the bindings otherwise blank in IIS. I wonder if that's where the URL is pulled from during the registration of the web adaptor. Since nothing is there, maybe it just defaults to the server name.
... View more
03-17-2022
08:35 AM
|
0
|
0
|
1191
|
POST
|
Sorry I'm only now seeing this - do you have a relationship class between your points and the boundaries being drawn? That's the only way I could think to do it. The other thing about Collector though is that I don't know how to calculate in an existing database field; you can calculate a new field on the fly, but I'm not sure how to calculate an already existing field. It can probably be done, but I've never figured it out.
... View more
03-16-2022
08:24 AM
|
0
|
1
|
1196
|
POST
|
The solution was to use a different browser. I was originally using Chrome, but switched to Firefox and it saved. Oddly, when I opened back up Chrome the saved URLs had persisted (like expected), but I decided to change the URLs again just to see if the save button now worked in Chrome; it did. Makes no sense, but it worked for me.
... View more
03-16-2022
08:06 AM
|
0
|
0
|
324
|
Title | Kudos | Posted |
---|---|---|
1 | 02-27-2024 06:48 AM | |
1 | 04-15-2019 09:38 AM | |
1 | 04-06-2021 10:08 AM | |
1 | 12-07-2023 06:46 AM | |
1 | 02-19-2018 10:13 AM |
Online Status |
Offline
|
Date Last Visited |
02-27-2024
10:08 PM
|