7

I created a File GDB and set up a domain, and the domain was assigned to a field in a feature class. The domain behaves as expected on ArcGIS Desktop (dropdown list when editing the content of that field).

But if I zip up the FGDB and upload to ArcGIS Online to created a feature layer and edit the layer online, there is no dropdown when editing.

I don't see any additional step in this tutorial, other than a different mechanism of getting data to ArcGIS Online. I don't think I can do it the same way in ArcGIS 10.0: http://doc.arcgis.com/en/collector/android/create-maps/prepare-data-desktop.htm

Anyone has any idea what's going on?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Apr 26, 2015 at 17:02
3
  • Were you able to resolve this issue? I loaded a FGDB with several domains, not working. Commented Apr 14, 2017 at 13:12
  • Ian, as pointed out by FelixIP originally (see below), Zip and upload doesn't work. It needs to be shared as a feature service which can be done from ArcMap. See the bottom of the link in my original post. Commented Apr 18, 2017 at 11:51
  • Have u tried to publish in arcpro? seems that is fine Commented Jun 20, 2018 at 12:52

2 Answers 2

4

Zip and upload is not going to work. As it says at the bottom of hypelink you have to share your MAP as feature service.

answered Apr 27, 2015 at 7:19
4
  • There is a checkbox to convert any eligible feature to feature service when uploading the zip. Feature service is not the problem - it's working fine for me. My issue is coded domain not automatically converting to dropdown for editing. Commented Apr 27, 2015 at 11:58
  • I tried publishing from 10.1 - the process of which is identical to what's described in the tutorial - and the dropdown showed up. Seriously they should explicitly say that dropdown won't appear unless the service is published this way. Being able to get the service up and running via uploading the zip made me think the issue was caused by something else. Thanks Felix. Commented Apr 27, 2015 at 15:46
  • I finally found a reference in the docs regarding the domain not carrying through to the Feature Service when you upload a FGDB and publish the Feature Layer from that Data file: "Domains also remain in the geodatabase, but are not accessible from the hosted feature layer." doc.arcgis.com/en/arcgis-online/share-maps/… Commented Nov 25, 2015 at 20:00
  • This couple AGOL-collector drives me nuts sometimes. This week drama was about downloading it back. Nothing documented worked, so I had to work with REST service to figure out 1 out of 9 possible combinations regarding attachments. geonet.esri.com/message/570715?et=watches.email.outcome#570715 Commented Nov 25, 2015 at 20:05
4

I followed the steps in an ESRI blog which shows how to add a domain through the REST API.

Direct link to the document: click me

Here's what I put to add a Yes/No domain to a field called Completed:

{
 "name": "Completed",
 "type": "esriFieldTypeString",
 "alias": "Completed",
 "sqlType": "sqlTypeOther",
 "length": 50,
 "nullable": true,
 "editable": true,
 "domain": {
 "type": "codedValue",
 "name": "Completed",
 "codedValues": [
 {
 "name": "Yes",
 "code": "Yes"
 },
 {
 "name": "No",
 "code": "No"
 }
 ]
 },
 "defaultValue": null
}

I tested it out in the Collector app, and it works great.

There is a gotcha though. You need to change the "lastEditDate" line to be empty quotes or it throws an error when you hit the Update Layer Definition button.

So put:

"lastEditDate" : ""

And it should submit successfully.

answered Mar 4, 2016 at 1:07

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.