<?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: How to use the Update Definition operation on a hosted layer view in AGOL in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389404#M19485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the bug the whole method of using Update Layer Definition?&lt;/P&gt;&lt;P&gt;Or is the bug related to this poster's Def Qry only?&lt;/P&gt;&lt;P&gt;I'm running into similar problem trying to update a field to nullable = false.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2018 14:35:20 GMT</pubDate>
    <dc:creator>larrycamp</dc:creator>
    <dc:date>2018-06-13T14:35:20Z</dc:date>
    <item>
      <title>How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389402#M19483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&amp;nbsp; The change i am trying to make is setting some default values in the 'templates' element.&amp;nbsp; However, regardless of the changes i&amp;nbsp;try to make&amp;nbsp;to the definition, i am getting the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;FORM&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;I&lt;SPAN style="color: #993300;"&gt;nvalid definition for 'DefinitionQuery'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #993300;"&gt; Invalid definition for System.String&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/FORM&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;P&gt;Even for the simplest change of setting "lastEditDate" : " ", I get the error message.&amp;nbsp; I am the owner of the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The definition query (as generated by AGOL when creating the view) looks like this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;"viewDefinitionQuery" : "(IsActive = 'Yes') AND (CaseType = 'Report') AND (ReportStatus = 'Received')", &lt;BR /&gt; "definitionQuery" : "(IsActive = 'Yes') AND (CaseType = 'Report') AND (ReportStatus = 'Received')"&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on what's going on?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 19:11:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389402#M19483</guid>
      <dc:creator>Trippetoe</dc:creator>
      <dc:date>2018-05-17T19:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389403#M19484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Esri Tech Support has verified that this is a bug in AGOL.&amp;nbsp; The bug number is&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8; font-weight: 300;"&gt;#BUG-000114175&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 15:40:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389403#M19484</guid>
      <dc:creator>Trippetoe</dc:creator>
      <dc:date>2018-05-23T15:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389404#M19485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the bug the whole method of using Update Layer Definition?&lt;/P&gt;&lt;P&gt;Or is the bug related to this poster's Def Qry only?&lt;/P&gt;&lt;P&gt;I'm running into similar problem trying to update a field to nullable = false.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 14:35:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389404#M19485</guid>
      <dc:creator>larrycamp</dc:creator>
      <dc:date>2018-06-13T14:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389405#M19486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue appears to be with having a Definition Query applied to the Feature Layer View when attempting to update its 'definition.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case anyone else encounters this error message, here is a workaround that was successful for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;remove all definition queries for the feature layer view [&lt;STRONG&gt;edit&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt; be sure to save your definition queries for later retrieval, or at least remember what they are]&lt;/LI&gt;&lt;LI&gt;update the definition of the feature layer view&lt;/LI&gt;&lt;LI&gt;re-enable any definition queries previously removed in step 1&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 20:42:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389405#M19486</guid>
      <dc:creator>JohnMarino</dc:creator>
      <dc:date>2018-10-02T20:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389406#M19487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same exact issue as described by &lt;A href="https://community.esri.com/migrated-users/241508"&gt;Tom Rippetoe&lt;/A&gt;‌ and this 3-step process worked like a charm. I hope there's a bug fix coming soon on this or at least a more useful error. Anyway, in my opinion this should&amp;nbsp;replace the current Correct Answer as it provides an actual workaround rather than a link to a promise of fix. Thank you for sharing, &lt;A href="https://community.esri.com/migrated-users/51232"&gt;John Marino&lt;/A&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389406#M19487</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-11-08T14:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389407#M19488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing that information John.&amp;nbsp; That is the best part of GeoNet!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:50:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389407#M19488</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2018-11-08T14:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389408#M19489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works for me. i updated the correct answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 16:29:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/389408#M19489</guid>
      <dc:creator>Trippetoe</dc:creator>
      <dc:date>2018-11-08T16:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1137197#M43936</link>
      <description>&lt;P&gt;How do you carry out the first step?&amp;nbsp; "remove all definition queries for the feature layer view"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 23:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1137197#M43936</guid>
      <dc:creator>RobBurke</dc:creator>
      <dc:date>2022-01-25T23:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1185974#M46617</link>
      <description>&lt;P&gt;Steps that worked for me:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Navigate to the ArcGIS REST Services Directory page for the specific layer within your Hosted Feature Layer&lt;/LI&gt;&lt;LI&gt;Use the "deleteFromDefinition" REST end point, passing it both the "viewDefinitionQuery" and the "definitionQuery" from the layer in your view. e.g.,&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
"viewDefinitionQuery" : "(field1 = 12345) AND (field_name_two = 'bobsyeruncle')",
"definitionQuery" : "(field1 = 12345) AND (field_name_two = 'bobsyeruncle')"
}​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;After step 2 is complete, use the "addToDefinition" REST end point, passing it ONLY the "viewDefinitionQuery", ESRI will add the "definitionQuery" for you automatically. If you try to pass both, you will get the "Invalid definition for System.String" error.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
"viewDefinitionQuery" : "(field1 = 98765) AND (field_name_two = 'slurm is tasty')"
}​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 12:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1185974#M46617</guid>
      <dc:creator>fklotz</dc:creator>
      <dc:date>2022-06-24T12:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1247324#M49715</link>
      <description>&lt;P&gt;This bug still exists as of today.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 16:45:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1247324#M49715</guid>
      <dc:creator>ArmstKP</dc:creator>
      <dc:date>2023-01-11T16:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1250659#M49925</link>
      <description>&lt;P&gt;Can you contact tech support? They closed this bug as non-reproducible. I feel like you and I and others hit this page and assume it's a bug but no one contacting support.&lt;/P&gt;&lt;P&gt;The issue is reproducible for my on the layer definition (i.e. featureserver/0, /1, /2 etc) but it looks like it's not reproducible on the parent service (featureserver/). So a good workaround may be to update the service definition. Either way would be good if you can touch base with support so we can have this issue properly reognized if it's still a thing.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 02:32:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1250659#M49925</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-01-24T02:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1253580#M50064</link>
      <description>&lt;P&gt;&lt;STRONG&gt;BUG-000114175&amp;nbsp;&lt;/STRONG&gt;has been closed as 'non-reproducible'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUG-000155365&amp;nbsp;&lt;/STRONG&gt;has been opened.&lt;/P&gt;&lt;P&gt;The error does not occur for the 'update service definition', i.e. when you do it at the root layer level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error does occur for the 'update layer definition', i.e. when you go into one of the sublayers of the service and try to update there.&lt;/P&gt;&lt;P&gt;Esri had closed off this issue however long ago but it's now been reopened as&amp;nbsp;BUG-000155365. Please contact support and attach yourself to this issue if you continue to encounter it.&lt;/P&gt;&lt;P&gt;I believe it should be possible to update the sublayer definitions through the service definition - we should be able to workaround the error this way instead of having to remove the definition query.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/563014"&gt;@ArmstKP&lt;/a&gt;&amp;nbsp;FYI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 22:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1253580#M50064</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-01-31T22:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1483647#M59511</link>
      <description>&lt;P&gt;The latest BUG on this is marked as "By Design".&amp;nbsp; The fix is quite easy to implement, but it is annoying that Esri's error messaging is not better or that the updateDefinition doesn't take care of these things by itself.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;From the bug page:&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#808080"&gt;Bug ID Number BUG-000155365&lt;/FONT&gt; &lt;TABLE width="100%" cellspacing="0" cellpadding="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;Submitted&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;January 25, 2023&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;Last Modified&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;October 12, 2023&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;Applies to&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;ArcGIS Online&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;Version found&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;November 2022&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;Operating System&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;Windows OS&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;Operating System Version&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;11.0 64 bit&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;Status&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#808080"&gt;As Designed&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;H2&gt;&lt;FONT color="#808080"&gt;Additional Information&lt;/FONT&gt;&lt;/H2&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#808080"&gt;When updating a layer definition from REST, it is recommended to only include the part of the definition that is being updated. Including the entire definition may cause the update definition to fail. The "definitionQuery" cannot be updated by updating the layer definition. However, you can update the "viewDefinitionQuery" without including the rest of the layer definition including the "definitionQuery".&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;End of bug page content.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;What this means is when you update the definition query, you only need to include the elements you want to update.&amp;nbsp; For example, if the bottom of my layer's definition shows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;  "maxRecordCount" : 1000, 
  "standardMaxRecordCount" : 32000, 
  "tileMaxRecordCount" : 8000, 
  "maxRecordCountFactor" : 1, 
  "capabilities" : "Query", 
  "viewDefinitionQuery" : "CreationDate &amp;gt; timestamp '2023-01-01 05:59:59'", 
  "definitionQuery" : "CreationDate &amp;gt; timestamp '2023-01-01 05:59:59'", 
  "exceedsLimitFactor" : 1, 
  "layerOverrides" : [
    "allowGeometryUpdates", 
    "capabilities", 
    "ownershipBasedAccessControlForFeatures"
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I want to modify the maxRecordCount and the view's definition query, I would submit the following to the updateDefinition end point:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
  "maxRecordCount" : 5000, 
  "viewDefinitionQuery" : "CreationDate &amp;gt; timestamp '2024-01-01 05:59:59'"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the layer definition afterwards, we can see that those elements have been updated:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;"maxRecordCount" : 5000, 
  "standardMaxRecordCount" : 32000, 
  "tileMaxRecordCount" : 8000, 
  "maxRecordCountFactor" : 1, 
  "capabilities" : "Query", 
  "viewDefinitionQuery" : "CreationDate &amp;gt; timestamp '2024-01-01 05:59:59'", 
  "definitionQuery" : "CreationDate &amp;gt; timestamp '2024-01-01 05:59:59'", 
  "exceedsLimitFactor" : 1, 
  "layerOverrides" : [
    "allowGeometryUpdates", 
    "capabilities", 
    "ownershipBasedAccessControlForFeatures"
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 21:25:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1483647#M59511</guid>
      <dc:creator>fklotz</dc:creator>
      <dc:date>2024-06-03T21:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1483653#M59514</link>
      <description>&lt;P&gt;&lt;A href="https://support.esri.com/en-us/bug/when-updating-the-definition-at-a-layer-level-update-la-bug-000155365" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;BUG-000155365&lt;/STRONG&gt;&lt;/A&gt;&amp;nbsp;is closed with a status of '&lt;STRONG&gt;As Designed&lt;/STRONG&gt;'.&lt;BR /&gt;Some folks don't have access to bug pages, so here is the additional information from that bug:&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;When updating a layer definition from REST, it is recommended to only include the part of the definition that is being updated. Including the entire definition may cause the update definition to fail. The "definitionQuery" cannot be updated by updating the layer definition. However, you can update the "viewDefinitionQuery" without including the rest of the layer definition including the "definitionQuery".&lt;/LI-CODE&gt;&lt;P&gt;What this means is that instead of including the View's complete layer definition in the 'updateDefinition' REST end point, you only need to include the relevant parts.&amp;nbsp; To update a view definition, you only need to include the viewDefinitionQuery:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
    "viewDefinitionQuery" : "CreationDate &amp;gt; timestamp '2024-01-02 05:59:59'"
}&lt;/LI-CODE&gt;&lt;P&gt;Submitting that will update the 'viewDefinitionQuery' and Esri will update the 'definitionQuery'.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 21:40:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1483653#M59514</guid>
      <dc:creator>fklotz</dc:creator>
      <dc:date>2024-06-03T21:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the Update Definition operation on a hosted layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1688358#M68067</link>
      <description>&lt;P&gt;Thanks for this tip. Sure would be nice if there were documentation on this!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2026 15:40:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-the-update-definition-operation-on-a/m-p/1688358#M68067</guid>
      <dc:creator>Jesse_WI_DNR</dc:creator>
      <dc:date>2026-03-04T15:40:23Z</dc:date>
    </item>
  </channel>
</rss>

