<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Publish FGDB to Feature Layer: domain values disappear? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-fgdb-to-feature-layer-domain-values/m-p/1035990#M5708</link>
    <description>&lt;P&gt;Having the same issue;&amp;nbsp; my coded values vanish upon publishing a FGDB.&amp;nbsp; &amp;nbsp; Did you figure this out?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Mar 2021 16:38:47 GMT</pubDate>
    <dc:creator>JLBlair</dc:creator>
    <dc:date>2021-03-12T16:38:47Z</dc:date>
    <item>
      <title>Publish FGDB to Feature Layer: domain values disappear?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-fgdb-to-feature-layer-domain-values/m-p/839607#M3470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: why is it that domain values are not implemented to the fields in a layer in a FeatureServer when you publish Feature Classes from an FGDB containing domain values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the workflow I have followed (Python files to replicate this workflow can be found in the attached zip file):&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I have a Python (ArcPY) script to create an FGDB - with Editor Tracking and Attachments enabled, and wit coded domain values applied to multiple fields.&lt;/LI&gt;&lt;LI&gt;After creation, I have (manually) zipped the FGDB&lt;/LI&gt;&lt;LI&gt;Next I use a Python script to upload the FGDB to ArcGIS Online, and once uploaded the Feature Classes from this FGDB are published to a FeatureServer /Hosted Feature Layer. This script also takes care of all kinds of adminstrative tasks, like adding a Snippet, a Description, the Terms of Use, Tags, Credits and a Thumbnail.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything looks fine after publication, &lt;STRONG&gt;except for the Coded Value Domains which where present in the FGDB: these are not applied to the fields in the layers in the FeatureServer...&lt;/STRONG&gt; These fields just remain free fields with no domains attached.&lt;STRONG&gt; &lt;/STRONG&gt;And that's a pity, isn't it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone advise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pythons files used in this process (see attached zip file) - please feel free to have a look at the code; it creates just a simple FGBD for demonstration purposes:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Step 1 above: &lt;STRONG style="font-family: courier new, courier, monospace; "&gt;arcpy_prepare_fgdb_example.py&lt;/STRONG&gt; together with &lt;STRONG style="font-family: courier new, courier, monospace; "&gt;domain_definitions.py&lt;/STRONG&gt; and &lt;STRONG style="font-family: courier new, courier, monospace; "&gt;feature_class_fields.csv&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Step 3 above: &lt;STRONG style="font-family: courier new, courier, monospace; "&gt;agol_publish_fc_from_fgdb_to_featureserver_layer.py&lt;/STRONG&gt; together with &lt;STRONG style="font-family: courier new, courier, monospace; "&gt;provide_credentials.py&lt;/STRONG&gt; and &lt;STRONG style="font-family: courier new, courier, monospace; "&gt;my_credentials.json&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course I can add the domains afterwards, manually (using the ArcGIS Online UI) or using the ArcGIS API for Python, but I just wonder why the domain values are not implemented in the first place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 10:44:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-fgdb-to-feature-layer-domain-values/m-p/839607#M3470</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2019-03-21T10:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Publish FGDB to Feature Layer: domain values disappear?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-fgdb-to-feature-layer-domain-values/m-p/1035990#M5708</link>
      <description>&lt;P&gt;Having the same issue;&amp;nbsp; my coded values vanish upon publishing a FGDB.&amp;nbsp; &amp;nbsp; Did you figure this out?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 16:38:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-fgdb-to-feature-layer-domain-values/m-p/1035990#M5708</guid>
      <dc:creator>JLBlair</dc:creator>
      <dc:date>2021-03-12T16:38:47Z</dc:date>
    </item>
  </channel>
</rss>

