POST
|
I have a recurring project where I update a geodatabase every quarter. The geodatabase contains a feature class with relationships to multiple tables. Because of this update schedule, I also overwrite the feature service published to ArcGIS Online each quarter from ArcGIS Pro. With the last update, I noticed that the relationship index changed between each relationship table. In the web map feature class popup, this change of relationship index disrupted a line chart in the that uses one of the related tables. Is anyone aware of how ArcGIS Pro or ArcGIS Online determines the relationship index during publishing when multiple relationship classes exist in the geodatabase? Or, is there a way to to ensure that the same relationship index is created each time I overwrite the feature service? If the relationship indices are randomly assigned, maybe this needs to fixed so that there is a system so this error does not persist. If I have to update the line chart after every feature service overwrite, that will be very annoying.
... View more
09-08-2018
03:12 PM
|
0
|
5
|
1468
|
POST
|
Thanks Marco. I edited my response by crossing out the read-only step.
... View more
06-29-2018
06:26 AM
|
0
|
0
|
1839
|
POST
|
I noticed that when a new env was created, not all the files from the default arcgispro-py3 env were copied over. Therefore I experimented with copying the default env folder directly. I think I found a workaround for getting ArcGIS Pro to recognize the env: Copy and paste the default, read-only 'arcgispro-py3' env in 'C:\Program Files\ArcGIS\Pro\bin\Python\envs' to 'C:\Users\[username]\AppData\Local\ESRI\conda\envs' Rename the folder to be unique (e.g. 'arcgispro-py3-username') Right-click on the folder, click Properties, and uncheck Read-only (not sure if this is necessary, but I did it and it worked...it may still work if this step is skipped) Open ArcGIS Pro, then Package Manager, and activate the env (Note that a new 'proenv.txt' file is added to the env folder. I am not sure what this does, but it lists the folder of the newly create env.) However, I cannot seem to install the Spyder package (I haven't tried other packages), it seems stuck and won't finish the install. I am wondering if the issue I raised a few weeks ago could be causing issues: Why is Spyder 3.2.8 not working with ArcGIS API for Python 1.4.1? Note that the default env includes ArcGIS API for Python 1.4.1. Any feedback or adjustments on this workaround is appreciated. Thanks.
... View more
06-28-2018
07:10 AM
|
7
|
6
|
1839
|
POST
|
Yes, this is critical! Spyder is essential. Maybe it should be added to the default install? Thanks Mitch Holley for starting this thread.
... View more
06-27-2018
11:17 AM
|
4
|
0
|
5920
|
IDEA
|
When I edit coded value domains in ArcGIS Pro in the Domains View, it always automatically sorts the domains alphanumerically. Many times I want my domains to be in a specific order that is not numeric or alphabetical. I do not recall ArcMap/Catalog having this issue. Is this a bug? If not, why was design implemented? Can this be an optional setting or an additional step within the editing domains view? Can the Domains View also be set up to easily change the order of coded value domains. The good news is that if you use the Table To Domain tool, it retains the order that is in the table. However, if you try to add a new value, the domains will sort. Though there are other issues with this tool sometimes not working properly...it removes the old domains, but doesn't add the new ones. I have had this issue in ArcCatalog also.
... View more
06-06-2018
03:41 PM
|
45
|
8
|
4430
|
POST
|
Dan, Thanks for responding. I pretty much do everything you have discussed, but I tired install via conda in my troubleshooting. I haven't figured out how to do updates via Spyder, I have always done them through the package manager. As I have tried to troubleshoot further, I am pretty sure there were some weird permission things going on as I have non-standard, limited admin rights on my workstation. I think that I have fixed the issue, or at least a workaround, and there may not be any more issues. I simply updated the permissions on the arcgispro-py3 folder to include all users. I think I will consider this answered for my case. PS...The only question for you was really the first one. I have noticed you seem to keep on top of all things Python, so I thought you might have an idea or have been aware of the issue. The other questions were for the community or Esri...I realize that to actually get this issue fixed, a bug notification would need to be submitted.
... View more
05-10-2018
06:24 AM
|
0
|
0
|
755
|
POST
|
I have been trying to update to Spyder 3.2.8, and I finally did by installing it first before updating to ArcGIS API for Python 1.4.1. However, now Spyder will not work...it keeps crashing. In a previous attempt, I tried to install ArcGIS API for Python 1.4.1 first, then install Spyder 3.2.8 via the Python Command Prompt with: conda install spyder This said that it would need to downgrade the ArcGIS API for Python 1.4.1 to 1.2.5. It didn't work... What is the deal? Spyder is a mission critical IDE for me as it is sometimes the only IDE that will work for syntax errors for arcpy in Python 3. Dan Patterson, do you know what is going on? Why does the Python Package Manager seem to be so fickle? Can this be fixed ASAP please? I think this may also have been an issue from a previous post of mine ArcGIS Pro 2.0 Python Manager Update Packages Not Working.
... View more
05-08-2018
03:04 PM
|
1
|
2
|
1212
|
POST
|
I am trying to update an attribute coded value domain using the ArcGIS API for Python using the Update Servcie Definition method. I am an admin for my AGO org. Here is my code so far (if you are testing it, you will need to used your own parameters): import arcgis
username = 'username'
gis = arcgis.gis.GIS('https://www.arcgis.com', username)
url = 'https://domain.com/arcgis/rest/services/Service_name/FeatureServer/0'
field_name = 'Field_Name'
cv_code = 1
cv_name = 'Code Name'
fs = arcgis.features.FeatureLayer(url, gis)
update_dict = {"fields": [{"name": field_name, "domain": {"codedValues": [{"name": cv_name, "code": cv_code}]}}]}
fs.manager.update_definition(update_dict) When I run in my Jupyter Notebook, I get the error below. What am I missing? Is my 'update_dict' not correct (I ma inclined to think it isn't)? Is there a better way to script this out? Thanks. Error: Unable to update feature service layer definition.
Invalid definition for ''.
Invalid definition for System.Collections.Generic.List`1[ESRI.ArcGIS.SDS.FieldInfo]
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-7-4fbf02d770c9> in <module>()
----> 1 fs.manager.update_definition(update_dict)
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\managers.py in update_definition(self, json_dict)
981 u_url = self._url + "/updateDefinition"
982
--> 983 res = self._con.post(u_url, params)
984 self.refresh()
985 return res
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\connection.py in post(self, path, postdata, files, ssl, compress, is_retry, use_ordered_dict, add_token, verify_cert, token, try_json, out_folder, file_name, force_bytes, add_headers)
1151 verify_cert=verify_cert, is_retry=True)
1152
-> 1153 self._handle_json_error(resp_json['error'], errorcode)
1154 return None
1155 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)
1171
1172 errormessage = errormessage + "\n(Error Code: " + str(errorcode) +")"
-> 1173 raise RuntimeError(errormessage)
1174
1175 class _StrictURLopener(request.FancyURLopener):
RuntimeError: Unable to update feature service layer definition.
Invalid definition for ''.
Invalid definition for System.Collections.Generic.List`1[ESRI.ArcGIS.SDS.FieldInfo]
(Error Code: 400) Follow up: Ok, in investigating further, I found this idea: https://community.esri.com/ideas/12962. Great idea, and a good solution for my immediate issue. However, I am foreseeing a need in my greater use case to automate other tasks in conjunction with this task or to have a set of tools (either Python or eventually shipped with ArcGIS Pro) that allows for editing/updating other service definition properties. I know this can be done with the ArcGIS API for Python, but it seems cumbersome when going back and forth between JSON and Python. I also don't have a lot of experience with working with JSON in Python, so that could be one of my hindrances here. Any help is still greatly appreciated.
... View more
03-24-2018
03:32 PM
|
3
|
7
|
7573
|
POST
|
Thanks Kelly for clarifying this. I was hoping for a limit just so I could add more support to my argument...but I can live with this! But as you indicate, there is inefficiency in creating duplicated roles. My users them for some class-management purposes that I argue are better or just as well suited by using Groups. They don't seem to buy it.
... View more
01-19-2018
02:28 PM
|
0
|
1
|
959
|
POST
|
In ArcGIS Online, what is the maximum number of custom roles allowed for an Organization? I ask because I work in higher ed and many instructors are creating custom roles for their classes, which I don't think is good practice. Therefore, I would like to tell them there is an upper limit as one incentive to stop this practice (I use other incentives too...). Currently we have over a dozen custom roles and they are growing. I do not intend for this space to become a discussion about proper and improper uses of custom roles. Thank you.
... View more
01-17-2018
02:23 PM
|
0
|
4
|
1135
|
POST
|
I am also experiencing this exact issue and I cannot find a solution anywhere. I have been able to publish time-enabled data before, but now I can't. I am writing this reply to see if we can activate this question again and get a response from Esri. I am surprised there are no updates to the original post/question. Thanks.
... View more
12-06-2017
08:04 AM
|
1
|
0
|
501
|
POST
|
The field lengths are 50 characters for both. The usernames are all shorter than that. It is definitely weird...
... View more
11-02-2017
11:33 AM
|
0
|
1
|
717
|
POST
|
I am editing data in ArcGIS Pro directly from a feature service hosted on ArcGIS Online that has editor tracking enabled for both time and user. I appended a bunch of rows using the Append tool, which was successful, except the Creator and Editor fields did not update with my user name, however the times did update. Does anyone know why this isn't working? Thanks.
... View more
11-01-2017
12:27 PM
|
0
|
3
|
884
|
POST
|
In ArcGIS Pro, I am getting this error when I am working on a local file geodatabase when I try to delete a feature class or table in the Catalog pane. The error message below pops up. The FC appears to still be int he FGDB, but when I refresh the FGDB, the FC goes away...it appears to be deleted and gone, but then, if I try to rename something as the name of the thing I just deleted, ArcGIS Pro claims there is already something named that in the FGDB. Very strange behavior. This happens a lot and I cannot find any reason why. It makes no sense that this error should be present when working with local hard drive files if it is a web/server type error. Any help would be greatly appreciated.
... View more
10-11-2017
07:05 AM
|
1
|
0
|
714
|
POST
|
John Diaz I am experiencing this same issue and this should work. A numeric field vs. a text field should be no different in SQL. Maybe this bug has not been fixed... Can someone from Esri please respond to let us know if this is a bug, if this should be working, or if other workarounds exist. Thank you.
... View more
10-10-2017
01:28 PM
|
0
|
0
|
853
|
Title | Kudos | Posted |
---|---|---|
1 | 10-11-2017 07:05 AM | |
1 | 08-19-2022 07:46 AM | |
1 | 07-31-2022 07:45 AM | |
1 | 02-03-2020 01:12 PM | |
1 | 01-28-2020 09:12 AM |