|
POST
|
Xander Bakker, the publishing issue is improper template order. Since ArcMap 10.1 up to 10.3.1 feature templates seem to reorganize, with no discernible pattern, while staging the service definition file. It occurs when I use picture marker symbols matched to style on a string field with a unique values domain. Other users have posted about this same issue. Tickets and bugs closed in the past were marked low priority/no work around. Since support has trouble reproducing the issue, I've made my own workarounds to script bulk symbology and template changes directly on the services. Downside: It's a grey area for getting support and I tend to stumble upon other bugs/unintended usages of the REST API. Upside: My scheduled sync scripts aren't phased and I don't have to download data with 100's of attachments after everyone goes home just to send it right back up.
... View more
07-01-2015
12:13 AM
|
0
|
5
|
2674
|
|
POST
|
Through the admin REST API, I've had some success creating 1:M relationships for existing hosted feature services. Why not just overwrite the service you ask? There is a bug during sd file creation in ArcMap, making republishing not an option. I start out by updating the layer definition for the layer with the origin field via - https://services.arcgis.com/<Organization ID>/arcgis/admin/services/<ServiceName>.FeatureServer/<layer ID>/addToDefinition In this case, the layer id is 0 and the origin field will be GlobalID. Here is what I add to the definition: {
"relationships" : [
{
"id" : 0,
"name" : "Layer1sInLayer0",
"relatedTableId" : 1,
"cardinality" : "esriRelCardinalityOneToMany",
"role" : "esriRelRoleOrigin",
"keyField" : "GlobalID",
"composite" : false
}
]
} The second layer has an id of 1 and the destination is a GUID field named "RelatedGUID" This is what I add to the layer definition: {
"relationships" : [
{
"id" : 0,
"name" : "Layer1sInLayer0",
"relatedTableId" : 0,
"cardinality" : "esriRelCardinalityOneToMany",
"role" : "esriRelRoleDestination",
"keyField" : "RelatedGUID",
"composite" : false
}
]
} After running these two, the relationship appears valid in the ArcGIS online map viewer and Collector for ArcGIS. Some things I've noticed: Must be done on both layers separately. I Could not add both layer parts to the definition of the entire feature service. Sometimes deleting relationships works. Other times I am unable to delete from the definition with a message saying a specific contraint doesn't exist. I do not see any sql server constraints visible from the REST service directory. It doesn't seem as though relationship names or id's need to match for both layers. Duplicate id numbers can be added to a layer and WILL BREAK IT! I've only tested GlobalID to GUID but assume Integer to Integer would work. I have not tested setting composite to true I have not tested many to many I have not had luck manipulating relationships with updateDefinition My question for anyone reading: Is there another way to add/modify/delete relationships to existing services? I highly doubt this is supported and there isn't any REST API documentation. Hopefully AGOL admins find this helpful. Relationships can be so powerful in a mapping application. It's too bad that we have to go to such extremes to apply them to hosted services when you can simply right-click create relationship class on the data behind ArcGIS Server services. Maybe enough people will break their services and we'll get a tool to manipulate hosted relationships!
... View more
06-30-2015
05:52 PM
|
3
|
7
|
6242
|
|
POST
|
Using 7zip or WinRAR etc. right click the .sd to get some options. You may be able to modify the json without uncompressing by replacing the .json file inside with the one you have modified.
... View more
06-16-2015
11:01 AM
|
0
|
0
|
809
|
|
POST
|
Try to make stage the sd file locally. Unzip it and edit the templates found within <sd file> / servicedescriptions / featureserver / featureserver.json Then recompress the sd (you may need to change the extension back to .sd) and try to publish through ArcMap, Arcpy, or after uploading the .sd to your organization.
... View more
06-16-2015
10:49 AM
|
0
|
2
|
809
|
|
POST
|
Randy Burton, I have found some more out while testing. 1. I've extracted the featureserver.json from an sd file and confirmed the template order is wrong after staging is complete. Although I haven't checked, one may be able to sort the templates in the json, compress the sd file, and publish. 2. all "contentType" values are set to "" for esriPMS picture marker symbols everytime I programmatically update the service definition via REST. It occurs regardless of whether changes are made or not. 3. When managing templates through the map viewer I tried to pick a new image symbol for a templates. After saving, the "contentType" was set to "image/png". 4. While using the style and templates management panels in map viewer, I found that changing the symbol size and keeping the image did not update "contentType" to "image/png" 5. Map viewer doesn't care about "contentType" but Collector for ArcGIS offline does.
... View more
06-16-2015
10:42 AM
|
0
|
0
|
809
|
|
POST
|
The hydrant example from the blog post at Related Tables – Exploring New Ways to use Collector for ArcGIS | ArcGIS Blog, nests a 1:M relationship under another 1:M relationship. It is laid out like so: Layer--> Table --> Table. I'm trying to use a service with all layers instead of the tables. Has anyone successfully used Collector Offline with a Layer --> Layer --> Layer relationship based on globalIDs? I can download web maps in Collector for ArcGIS 10.3 and 10.3.1 and create features for the first two layers. However, Collector always crashes when attempting to create a feature for the deepest layer. My service contains lines related to many points, each point related to many points. Any working example with just 3 layers would help point me in the right direction. Thanks, Davin
... View more
06-15-2015
09:32 PM
|
0
|
0
|
2442
|
|
POST
|
Check out Feature type sort order in drop-down list for some info.
... View more
06-15-2015
11:13 AM
|
0
|
0
|
611
|
|
POST
|
My feature classes don't have subtypes. The feature templates and symbology are based on a text field with a coded value domain. The symbology is match to a style file with names in the domain. I'm curious if your feature class has a similar setup?
... View more
06-11-2015
12:02 PM
|
0
|
7
|
2830
|
|
POST
|
I've suffered this known issue for 2 years now without a solutionWrong Feature Template Order. Here is another post with the same issue Order of Feature Templates Not Honored in ArcGIS Online. For me, the template order is already incorrect at service definition staging for publishing. I too have resorted to updating the service definition's json through REST. Maybe this will be helpful with sorting https://jsfiddle.net/Rx6jQ/15/ . I too have noticed that "contentType" is blank after altering the service definition. Not sure that this impacts in Collector though.
... View more
06-11-2015
11:48 AM
|
2
|
3
|
2832
|
|
POST
|
Has the this release occurred? I'm still getting the issue with a related table in the web map.
... View more
05-28-2015
08:00 AM
|
0
|
1
|
1347
|
|
POST
|
I have what appears to be a simple requirement for my Collector for ArcGIS users. Simply put, I need field1 to be calculated as field2 X field3 upon feature insert or update. Is this possible to do outside of Collector for ArcGIS? Scenario: User submits new point and fills in field2 and field3 User views feature popup and sees field1 has been populated Thank you.
... View more
04-16-2015
11:38 AM
|
0
|
0
|
2864
|
|
POST
|
"Indicates whether the data is editable via the widget" from the reference. I'd interpret this to mean values can be edited within the table, but I don't see any difference between ReadOnly;true or false.
... View more
03-28-2015
10:45 PM
|
1
|
2
|
4231
|
|
POST
|
The REST API shows the following example to query: "where" : "NAME LIKE 'A%'" I'm trying to only label features with values. I've tried to update the definition of the service and the specific feature layer with: "where" : "NAME is not null" . But the labels disappear completely. I've also tried to use the the example esri provides: "where" : "NAME LIKE 'A%'" However, something happens in the background to encode the value: "where":"NAME LIKE \u0027A%\u0027" How do I set labelingInfo where:"Field is not null" ?
... View more
03-26-2015
07:35 AM
|
0
|
0
|
3478
|
|
POST
|
The interface tells you to name the replica, but ignores input. The random string for the names make it incredibly difficult to script automation. Here is what I get with sync model=none: FileGDB: C:\Downloads\cce93b7ebc4c47d18f656ae7ea613ce8\447be11bdf3c4a64b1c229caada76d6a.gdb SQLITE: C:\Downloads\a021300b5c8f445eac500e01fe713e07.geodatabase JSON: C:\Downloads\748a4e8ab624424ebeee38f14bbd1d95.json The zip name is even different from the gdb! The purpose of the replica name alludes me.What value does requiring a Replica Name provide? Additionally, what is the point of generating a random name for the file that has no sync model and you cannot search through the replicafiles directory?
... View more
03-11-2015
08:15 PM
|
0
|
0
|
4258
|
|
POST
|
I figured it out. I was trying to update 2 different fields at once and field calculator understandably only takes one. Its crazy how much time I looked up information on unicode stuff only to find it was a misuse of the parameter. Can't thank you enough Richard. I should be able to fumble through the rest of the conditionals.
... View more
03-03-2015
02:36 PM
|
0
|
0
|
909
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-24-2024 08:58 AM | |
| 1 | 09-22-2022 01:52 PM | |
| 1 | 06-22-2022 12:38 PM | |
| 12 | 06-09-2022 11:53 AM | |
| 1 | 10-16-2015 11:30 PM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|