|
POST
|
I'm trying to use the Excel to Table tool and I get a long error message that culminates in this: No module named expat; use SimpleXMLTreeBuilder instead I have already repaired my ArcGIS installation and that didn't fix it so moving on... Now, I know the expat module exists in the Python 2.7 folder that ArcGIS is supposed to use. When I print the python path in the python window in ArcMap, I get this: ['',
u'c:\\program files (x86)\\arcgis\\desktop10.7\\arcpy',
'c:\\program files (x86)\\arcgis\\desktop10.7\\bin',
'c:\\program files (x86)\\arcgis\\desktop10.7\\ArcPy',
'c:\\program files (x86)\\arcgis\\desktop10.7\\ArcToolbox\\Scripts',
'C:\\WINDOWS\\SYSTEM32\\python27.zip',
'C:\\Users\\mfoley10\\AppData\\Local\\Continuum\\anaconda2\\Lib',
'C:\\Users\\mfoley10\\AppData\\Local\\Continuum\\anaconda2\\DLLs',
'C:\\Python27\\ArcGIS10.7\\Lib',
'C:\\Python27\\ArcGIS10.7\\DLLs',
'C:\\Python27\\ArcGIS10.7\\Lib\\lib-tk',
'C:\\WINDOWS\\system32',
'C:\\Python27\\ArcGIS10.7',
'C:\\Python27\\ArcGIS10.7\\lib\\site-packages'] I see that it's going into both Python27 folder and an anaconda2 folder. When I go to my registry keys though, I don't see a python 2.7 folder and instead I see 3.7. I have set up my python interpreter in Visual Studio to point to the Python 2.7 interpreter and it works there so all good in VS. It's just the problem in ArcMap. I'm not sure what to do from here. Do I change the Default, Executable, and Window Executable all to point to Python27? It's worth noting that all the other tools I've been using in ArcMap work fine, it's just this one that I've had problems with so far. PythonPath folder has this in it: The above screenshots are in the HKEY_LOCAL_MACHINE. When I go to HKEY_CURRENT_USER, these are the install and python paths which point to anaconda. Maybe these are the ones I need to change? The Visual Studio ones are correct because I have those pointing to the ArcGIS interpreter:
... View more
09-05-2019
10:52 AM
|
0
|
8
|
6379
|
|
POST
|
So while you can't cast the !Actual_Completion! field to a string directly using str() unless it's in an int() function for some reason I don't understand, I encoded the unicode value so it was a plain string and got it to work. Codeblock: def getMonth(dateField):
dateString = dateField.encode('UTF8')
dateParts = dateString.split("/")
return int(dateParts[0])
... View more
09-05-2019
07:09 AM
|
0
|
5
|
13815
|
|
POST
|
I am having a heck of a time with this in field calculator and I've looked at the threads in geonet on datetime to string but none them seem to work for me. The ultimate goal is that I need to get a value out of datetime as an integer (so month would come through as an integer value of 2 for February for example). Since datetime seems to be formatted as a unicode string in Field Calculator, I think I need to get it to a regular string and then split it on the slashes so I can get the number I want and convert it to an integer before returning it. I have tried so many different solutions I couldn't write them all down here... can someone help me with this? Date field is "Actual_Completion" and contains values displayed like so: 12/1/2015 (Long) Integer field is "Month" and needs the end value to be like so: 12 The closest I've gotten is this: int(str(!Actual_Completion!)[0]) and it will return the first value of the month, but that's problematic for returning something like 12. If I try def getMonth():
x = str(!Actual_Completion!).split("/")
x = int(x[0])
return x I get an invalid syntax error on line 2. I've tried many different iterations of this: from datetime import datetime
def getMonth(dateObj):
x = datetime.strftime(dateObj, '%m')
return int(x) I get an error about strftime needing a datetime object and not a unicode object.
... View more
09-05-2019
07:06 AM
|
0
|
6
|
16068
|
|
POST
|
Aha! Thank you. That is what I was missing - when I was in edit mode I didn't see the fields and expected to see them grayed out or something. When I was done editing I clicked back on the feature and those fields were displayed. Makes sense now that I think about it.
... View more
09-05-2019
06:43 AM
|
1
|
0
|
1480
|
|
POST
|
I just remembered there was something else I had to do too (and maybe this is what fixed it and not the CA cert part) - when I publishing services, I noticed that on ArcGIS Online in my published feature layer settings, my Data Source URL was pointing to https://<my gisserver>.<my domain>.com:6443/arcgis/rest/services (or something very similar to that, I can't remember exactly). I think once I changed that to my web adaptor URL (https://www.domain.org/myGISServer/rest/services/...), it started being able to pull the layer in. Remember that if your services are secured too and you want to be able to see them without logging into your web map with credentials everytime, you'll want to save your credentials with the map as well so you can access your services.
... View more
09-03-2019
08:36 AM
|
0
|
0
|
2300
|
|
POST
|
I was wondering if there's a way to display fields but not allow them to editable in Collector. This is possible on the ArcGIS Online web map interface via the configure attributes in configure popup, but doesn't seem to pass on to Collector. Am I missing something or is it just not possible?
... View more
09-03-2019
08:25 AM
|
0
|
2
|
1708
|
|
POST
|
Is GoDaddy a Certificate Authority? I believe when I got it signed by a CA it fixed our problem. We had to edit the machine web server certificate to the CA signed one and it was good to go. If you aren't sure how to do that, you need to go to this URL (filled in with your own gisserver.domain info): https://gisserver.domain.com:6443/arcgis/admin. After logging in there with that same credentials you'd use on ArcGIS Server Manager page, then you should click on machines > machine you want to change the cert for > sslcertificates > make sure the signed certificate is seen here, otherwise click generate or import existing depending on your situation > go back to the specific machine's screen > edit > put the name of the certificate in the web server certificate area > save edits. Hope that works for you.
... View more
09-03-2019
08:20 AM
|
0
|
0
|
2300
|
|
POST
|
So it appears that the calendar and date picker in collector will actually do 1 minute increments. I don't see a way to do it on AGOL but that doesn't matter to me.
... View more
07-12-2019
10:04 AM
|
0
|
0
|
820
|
|
POST
|
I noticed that when I configure a popup for a date/time field, it won't give me times in less than 5 minutes increments. It seems there is no way to change this. What could I do instead that would allow me to enforce data integrity? This is time being recorded is unrelated to the creation or modification of the data, so editor tracking is not the answer. I will be using this in Collector Classic
... View more
07-12-2019
08:26 AM
|
0
|
1
|
847
|
|
POST
|
In this case, thankfully, I am not using pro. Thanks, I'll try it out.
... View more
07-12-2019
07:16 AM
|
0
|
0
|
1346
|
|
POST
|
I have published a feature service that contains two related layers (relationship class). If I add a new feature (origin) the map and fill out the attributes, the GlobalID auto populates and that is supposed to relate to the ID of the related feature class (destination). But then I go to add a new destination feature and that ID is not carried over through the relationship class. Why not? Or is the relationship class only utilized in ArcCollector? I have verified that the feature classes are related - when I click on a popup for the origin feature class there is an option to click that says "Show related features" and if I open the attribute table there is an italicized column that has to do with the related destination feature. I just don't get how you add them to map in a related fashion where attributes carry over.
... View more
07-12-2019
07:09 AM
|
0
|
1
|
1204
|
|
POST
|
I am wondering if this is possible because every time I change the alias of the GlobalID field and then remove the layer and re-add it to the map, the field becomes GloablID again. Is there really no way to save it? GlobalID is just so non-descriptive when you're trying to use it in related tables. It doesn't make it obvious that GlobalID is the _NameHere_ID in the other feature class.
... View more
07-12-2019
06:34 AM
|
0
|
2
|
1404
|
|
POST
|
So, I updated my server to 10.7 but the license was only good for a month before my organization decided to pull back and only have licenses for 10.4.1 at the highest (which I'm finding odd because the last license I had was 10.6). Do I need to uninstall 10.7 before reinstalling 10.4.1? Could I just take the 10.4.1 license and authorize the server with that file without having to do anything else (I would assume no, but dang would that be nice)? What do I need to know before I do this?
... View more
07-01-2019
07:03 AM
|
0
|
0
|
689
|
|
POST
|
I was reading some documentation about ArcGIS Online credits and noticed that feature service storage sucks away credits. Is that only for hosted layers? I have published a feature service that is supported by our enterprise geodatabase and I'm hoping that does not cost credits, otherwise I don't know how anyone uses large datasets on AGOL without having deep pockets. Anybody that can inform me on this? I will not be using any of the other credit-charging functions. https://www.esri.com/en-us/arcgis/products/arcgis-online/pricing/credits
... View more
06-10-2019
05:16 AM
|
0
|
2
|
2163
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-18-2020 10:31 AM | |
| 2 | 09-16-2025 02:17 PM | |
| 3 | 09-12-2025 09:26 AM | |
| 1 | 08-16-2023 05:11 PM | |
| 1 | 02-27-2024 06:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
09-16-2025
02:16 PM
|