|
POST
|
I am trying to use the Update Definition operation on a hosted feature layer view through the Admin view of the REST endpoint of the feature service. The change i am trying to make is setting some default values in the 'templates' element. However, regardless of the changes i try to make to the definition, i am getting the following error message: Invalid definition for 'DefinitionQuery'. Invalid definition for System.String Even for the simplest change of setting "lastEditDate" : " ", I get the error message. I am the owner of the view. The definition query (as generated by AGOL when creating the view) looks like this: { ... "viewDefinitionQuery" : "(IsActive = 'Yes') AND (CaseType = 'Report') AND (ReportStatus = 'Received')", "definitionQuery" : "(IsActive = 'Yes') AND (CaseType = 'Report') AND (ReportStatus = 'Received')" ... } Any thoughts on what's going on?
... View more
05-17-2018
12:11 PM
|
1
|
14
|
10333
|
|
POST
|
Hi Kelly. Thank you for your reply. i may need to clarify the problem. Using the WAB editor (the simple one, not the 'smart editor' widget), I get the expected behavior. For a field with a range domain set between 1 and 20 I can select an integer value between 1 and 20. However, when attempting to edit the same data via the 'Data' tab on the Item Details page of the hosted feature service, i get the unexpected (maybe buggy) behavior. Instead of being able to select (or enter) a value between 1 and 20, the only options in the drop down list are 'empty' and the current value of the field. I cannot select a new value between 1 and 20. Does that help clarify the problem? It may be that my expectations of the behavior are off. but if we think is a bug i can submit a tech support request. Thanks again for your help.
... View more
05-10-2018
09:14 AM
|
0
|
0
|
1234
|
|
POST
|
Hi Kelly Gerrow. I apologize for mentioning you directly, but i havent gotten any responses to my original post. Can you take a look to see if this is a bug, or if i have a setting (or expectation) wrong? Is there more information that you need from me? anything like that..... Thank you.
... View more
05-09-2018
05:43 PM
|
0
|
2
|
1234
|
|
POST
|
Hello. I have a hosted feature service in AGOL. One of the layers in the service is a related table. Within the related table we use subtypes. On one of the 'count' fields in the related table we have set a range domain with a min/max of 1 and 20 (see the screen cap below). When I try to edit values directly in the Data tab of the Item Details page, the only values i can enter into the input box are 'empty' and the current value (see screen cap below). I've tried to overwrite the number, paste a number in, etc. But nothing seems to work. I can select 'empty' or the current value. And if I select 'empty', i am unable to enter any other value into the input field. When this same layer is added to a map and the map to a WAB app, I am able to put in any value between 1 and 20, or leave it empty. Any idea what's going on here? Thanks.
... View more
04-27-2018
02:09 PM
|
0
|
3
|
1339
|
|
POST
|
Hi Kelly and Stephanie. Thanks for tracking this issue and creating the bug report. KGerrow-esristaff, I think there are two separate use cases here: 1) editing existing data and 2) creating new data. In the first case, i think an big, bright error message indicating that the value entered fails the 'uniqueness constraint' would be most helpful. Currently, AGOL simply deletes the duplicated value, leaving the input empty. That has caused us some problems when we didn't notice that the value we entered was replaced by a blank value (that's what got us stuck in the second use case). The second case is a bit harder to work thru given AGOLs current pattern of creating a new record in the database as soon as the geometry is created. I don't know how it would/could work that AGOL hold the feature in memory, checking that all attributes pass their various constraints, and then having the user click a 'save' or 'insert' or some such button to send the data to the database. Hopefully this helps. I love a good architecture discussion - it'd be interesting to know how you guys think about situations like this. Tom
... View more
04-26-2018
02:14 PM
|
1
|
0
|
1975
|
|
POST
|
I have taken advantage of the newly added capability of setting a unique constraint on a field in a hosted feature layer. I am seeing some odd behavior around that functionality. Here's how to reproduce the behavior Create a new hosted feature layer in AGOL Add a text field, lets call it 'testid' Set a unique constraint on testid Add the hosted feature layer to a new map Use the Map Viewer Edit tool to create a new feature and do not enter a value for 'testid'. Save that feature Now try to create another new feature The system wont let me create a new feature. Instead, after clicking the place on the map where i want to add the new feature, no new feature is added and a popup window is displayed with the values from another feature in the hosted feature layer. If i go back to feature with the missing value for testid and populate the field with a unique value, all goes back to working as expected. I suspect it's happening because behind the scenes a new feature is created with 'null' or empty (or default if set) values for each attribute. And when the system sees a duplicated value, i.e. null/empty value for the field testid, the system can't handle that? Anyone else see this behavior? Is this the expected behavior?
... View more
04-20-2018
01:01 PM
|
0
|
3
|
2159
|
|
POST
|
As an update on this thread, Esri recently added the ability to add a Unique Index on a field for a hosted feature layer. See the help document here: Manage hosted feature layers—ArcGIS Online Help | ArcGIS Search for the section header Add a unique constraint to a field
... View more
04-20-2018
12:44 PM
|
4
|
0
|
6217
|
|
POST
|
Did you ever figure out how to do this? I have the same (or roughly the same) use-case. I have a feature with many photos and in the feature's popup i want to display only the pictures with the name 'before' and 'after' while not showing any others.
... View more
04-18-2018
11:32 AM
|
0
|
1
|
1106
|
|
POST
|
Hi James. I have previously shared the survey with you. If you'd like, i can send you another copy. There is a geopoint question which is a calculation (see first screen cap in the original post). The result of the 'pulldata()' operation is the calculated value that is assigned to the geopoint question. I appreciate how quickly you responded to my question. thanks.
... View more
04-09-2018
12:05 PM
|
0
|
0
|
2034
|
|
POST
|
It seems that Survey123 is putting two points in the wrong location. Perhaps the most interesting piece of this puzzle is that of the 8 surveys assigned to this point, 6 are in the correct location and two are not. Also interesting is that the two mis-placed sites are not exactly on top of each other; they are placed about 53 feet apart. Our survey does not have a visible map where a user can place a point for the survey. Instead, a user is required to select a ‘Site Name’. Once the site name is selected, we use the pulldata() function to pull the lat/lon of the selected site from a csv file (IPM_Sites.csv). Once that info is available, the point for the survey is calculated based on the lat/lon pulled. This works as expected except for one site two times - River Island. For some reason, the map point is placed about 40 miles southwest of the actual location (see screen cap below). I am unable to figure out why that is happening. The screen cap below is from the Choices worksheet. You can see that when ‘River Island’ is selected, the site id value is 10107. I have verified that within the ipmSiteList that there is only one record with a label of River Island and only one instance of the name/siteid 10107 The next screen cap is from the csv file that the pulldata() function hits. Siteid 10107 should return the correct/expected lat/lon. I have verified that in the csv file there is only one record with a siteid 10107 Instead of putting the point at the River Island lat/lon, Survey123 is putting it at 44.97, -122.98 (screen cap below is from the ‘individual response report’ on the data tab of survey123 web site). Any thoughts about what’s going on with those two surveys?
... View more
04-09-2018
11:43 AM
|
0
|
3
|
2202
|
|
POST
|
This is the response i got from khassen10 from Esri. the process worked for me. Hi Tom, I have looked/debugged this issue. The following workaround works for me in my dev env. For deleting a table, you will need to delete the relationship first, then delete the related table. Not sure if you have tried this. For instance to delete related table with Id = 2. Use http://.../ArcGIS/rest/admin/services/exporttestingView/FeatureServer/2/deleteFromDefinition Pass the following json to delete the relationship between table Id=2 and layer Id = 0 { "relationships" : [ { "id" : 1, "name" : "Test_Table_2", "relatedTableId" : 0, "cardinality" : "esriRelCardinalityOneToMany", "role" : "esriRelRoleDestination", "keyField" : "CaseNumber", "composite" : false } ]} Use service deleteFromDefinition to delete table with Id=2 Use http://.../ArcGIS/rest/admin/services/exporttestingView/FeatureServer/deleteFromDefinition Pass the following json to delete the table with Id=2 { "layers" : [ { "id" : 2 } ]} Pl. try this out and let me know if you still see the issue. Thanks
... View more
04-05-2018
04:08 PM
|
2
|
7
|
2904
|
|
POST
|
Hi Kelly. We ended up deleting the service and re-publishing it. That process seemed to fix whatever the problem was because we can now change styles.
... View more
04-02-2018
03:24 PM
|
1
|
0
|
2960
|
|
POST
|
Thanks for your super fast response. I hadn't until you mentioned it. I opened the web map in Chrome and got the same behavior, but with a bit better stack trace on the error thrown when clicking on the 'Options' button.
... View more
03-30-2018
03:45 PM
|
0
|
2
|
2960
|
|
POST
|
Hello. I have added a Feature Layer to my AGOL content. I used the 'Add Item' tool to add an ArcGIS Server web service from the web. I was able to add the feature layer to a web map, but i cannot change the style of the feature layer. When i click on the 'Change Style' tool, the dialog below opens up abd there are no options in the 'Choose an attribute to show' drop down. If i click on the 'Options' button, a dojo error is throw and the page freezes up Interestingly, i can add the Feature Layer to a map in an ArcGIS Pro project and change the style without any problems. When I share the ArcGIS Pro map as a web map, it is published as expected but the style is reverted back, i.e. the feature layer loses the style set in Pro. Any thoughts on what's going on.
... View more
03-30-2018
03:30 PM
|
0
|
5
|
3236
|
|
POST
|
Hi Jamie. Thanks for the tip. It appears that something was amiss with our domain definitions in one related table, but we could never pinpoint exactly what the problem was. Fortunately we have a "QA" version of the hosted feature service so we copied the 'fields' JSON definition from the QA version of the table and pasted it over the PROD version. Once we did that, we were able to export the feature service as a file Geodatabase James Tedrick - Esri Tech support recommended contacting the Survey123 team about the officially supported method for updating the domain values for a field in a hosted feature service that supports a survey, i.e. when updating the choices for survey question. Any thoughts?
... View more
03-21-2018
12:02 PM
|
0
|
1
|
2382
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 4 weeks ago | |
| 1 | 02-24-2021 12:15 PM | |
| 2 | 01-05-2026 10:04 AM | |
| 1 | 09-30-2025 01:30 PM | |
| 1 | 09-25-2025 07:37 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|