<?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: Schema changes to registered dataset not reflected in Portal in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034217#M10633</link>
    <description>&lt;P&gt;We're on postgres, but the workflow ought to be the same:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Stop service&lt;/LI&gt;&lt;LI&gt;Make necessary changes to underlying DB via Pro (Right-click layer → Design → Fields)&lt;/LI&gt;&lt;LI&gt;Republish&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Stopping and starting, as you assumed, won't be enough to catch a schema change, as the fields need to be written into the service definition.&lt;/P&gt;&lt;P&gt;When you published a new layer, did you also give it a new name? I doubt that a browser cache issue would cause this, but it's worth checking.&lt;/P&gt;&lt;P&gt;Is your data versioned, or do you use views at all?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 22:30:42 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-03-08T22:30:42Z</dc:date>
    <item>
      <title>Schema changes to registered dataset not reflected in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034210#M10632</link>
      <description>&lt;P&gt;-Working with ArcGIS Enterprise 10.8. Server federated with Portal&lt;/P&gt;&lt;P&gt;I've published a feature class to Portal referencing registered data from our SQL Server database. The feature layer in Portal behaves as expected and edits made are showing in the source dataset in SQL Server.... all good.&lt;/P&gt;&lt;P&gt;My problem is that I want to make a schema change to this feature class (add a field), but I'm having trouble getting this change to be honored when I republish to Portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I've tried:&lt;/P&gt;&lt;P&gt;- I stop the map service in ArcGIS Server Manager to remove the lock on the feature class&lt;/P&gt;&lt;P&gt;- I added the field to the feature class.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I first tried simply restarting the map service, but I couldn't see my new field in Portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I then assumed that republishing was required for me to see my new field in Portal, so I overwrote the layer in Portal, but I still can not see the new field.&lt;/P&gt;&lt;P&gt;- I thought this was strange, so I published a new feature layer to Portal from the same data source, and even this feature layer did not show my new field!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the expected workflow to get a schema change made to a feature class in SQL server (add/remove field, add domain value, etc) to be reflected in the map service in Portal?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 22:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034210#M10632</guid>
      <dc:creator>JordanKeller</dc:creator>
      <dc:date>2021-03-08T22:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Schema changes to registered dataset not reflected in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034217#M10633</link>
      <description>&lt;P&gt;We're on postgres, but the workflow ought to be the same:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Stop service&lt;/LI&gt;&lt;LI&gt;Make necessary changes to underlying DB via Pro (Right-click layer → Design → Fields)&lt;/LI&gt;&lt;LI&gt;Republish&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Stopping and starting, as you assumed, won't be enough to catch a schema change, as the fields need to be written into the service definition.&lt;/P&gt;&lt;P&gt;When you published a new layer, did you also give it a new name? I doubt that a browser cache issue would cause this, but it's worth checking.&lt;/P&gt;&lt;P&gt;Is your data versioned, or do you use views at all?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 22:30:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034217#M10633</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-03-08T22:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Schema changes to registered dataset not reflected in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034222#M10634</link>
      <description>This dataset is not versioned and not part of a view.&lt;BR /&gt;I've followed the steps you have mentioned, unfortunately no luck. Almost as if the service definition is not being updated to reflect what's in the database.&lt;BR /&gt;When I tried to publish the new layer, I gave it a completely new name.&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Mar 2021 22:36:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034222#M10634</guid>
      <dc:creator>JordanKeller</dc:creator>
      <dc:date>2021-03-08T22:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Schema changes to registered dataset not reflected in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034230#M10635</link>
      <description>&lt;P&gt;That's very curious... The fact that the new-name version of this would &lt;EM&gt;also&lt;/EM&gt; lack the new field points to this perhaps being a DB-level issue. Do you have other services or a throwaway layer you can test this with?&lt;/P&gt;&lt;P&gt;Also, can you confirm whether or not the field is present in the service JSON at &lt;EM&gt;web-adaptor/rest/services/path-to-layer/FeatureServer?f=pjson&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If you're comfortable with it, try editing the service defintion directly to add the field. You can use &lt;A href="https://ago-assistant.esri.com/#" target="_self"&gt;AGO Assistant&lt;/A&gt; to do it. I've had other layers (hosted, not server-based) where I had to add a new field via the JSON directly, and it worked.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1615243456827.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7879i4666045068B3D8E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1615243456827.png" alt="jcarlson_0-1615243456827.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 22:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034230#M10635</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-03-08T22:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Schema changes to registered dataset not reflected in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034247#M10636</link>
      <description>This was my throwaway layer haha...&lt;BR /&gt;I do not see the field listed in the service JSON.&lt;BR /&gt;Thanks for troubleshooting with me. I may have to open up a ticket, as I'm at the limits of my knowledge on the subject.&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Mar 2021 23:36:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034247#M10636</guid>
      <dc:creator>JordanKeller</dc:creator>
      <dc:date>2021-03-08T23:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Schema changes to registered dataset not reflected in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034259#M10637</link>
      <description>&lt;P&gt;If support is able to help you, come back here and post it as a solution for the next person!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 00:05:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034259#M10637</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-03-09T00:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Schema changes to registered dataset not reflected in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034276#M10638</link>
      <description>&lt;P&gt;Hi Jordan&lt;/P&gt;&lt;P&gt;I've done a few tests with Pro 2.7.1 and ArcGIS Enterprise 10.8.1, and while I've seen inconsistencies in the way that the addition of new fields manifests in Server/Portal, in general it has worked with just a service restart (i.e. not republishing the service).&lt;/P&gt;&lt;P&gt;A few things to check:&lt;/P&gt;&lt;P&gt;1) Is the new field being flagged as visible in the Fields view from the map that you're publishing?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CraigRussell_0-1615253842089.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7890iCFC2BE20F0558CD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CraigRussell_0-1615253842089.png" alt="CraigRussell_0-1615253842089.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If not, then it won't appear in the service definition.&lt;/P&gt;&lt;P&gt;2) Do you see the new field listed in the rest endpoint for the map/feature service?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CraigRussell_1-1615253998926.png" style="width: 677px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7891i43122AF0E1DCCCF3/image-dimensions/677x188?v=v2" width="677" height="188" role="button" title="CraigRussell_1-1615253998926.png" alt="CraigRussell_1-1615253998926.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) Has the field been added but is just not visible by default in Portal (e.g. from the Data tab on the Portal item page)?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CraigRussell_2-1615254195681.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7892i27638A9FFB7AFF14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CraigRussell_2-1615254195681.png" alt="CraigRussell_2-1615254195681.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Something that I've seen with a fair bit of consistency is new fields not being made visible by default.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 01:50:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034276#M10638</guid>
      <dc:creator>CraigRussell</dc:creator>
      <dc:date>2021-03-09T01:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Schema changes to registered dataset not reflected in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034484#M10650</link>
      <description>Just wanted to give an update.&lt;BR /&gt;I came back in this morning and checked my service to find the new field now shows up!&lt;BR /&gt;We do have a nightly script running on our server that stops and starts all map services, but I was stopping and starting services when I was testing the addition of the new field yesterday....&lt;BR /&gt;I wonder what tripped the change this time? Or maybe there was some lock on the feature class somewhere? I wouldn't think it would be a performance lag from our remote server, but I'm not sure...&lt;BR /&gt;Anyway, thank you all for the help. It seems resolved for now, but I'll post any updates if I can pin down any other reason why it wasn't working.&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Mar 2021 15:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/schema-changes-to-registered-dataset-not-reflected/m-p/1034484#M10650</guid>
      <dc:creator>JordanKeller</dc:creator>
      <dc:date>2021-03-09T15:30:37Z</dc:date>
    </item>
  </channel>
</rss>

