<?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: Invalid html content in json request body in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/1182325#M4173</link>
    <description>&lt;P&gt;Had this issue come up with submitting data in Field Maps and this solution worked for me.&amp;nbsp; Thanks!!&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2022 15:01:53 GMT</pubDate>
    <dc:creator>Brian_Laws</dc:creator>
    <dc:date>2022-06-13T15:01:53Z</dc:date>
    <item>
      <title>Invalid html content in json request body</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/174064#M834</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;I have a peculiar problem with posting data via the /applyEdits rest endpoint to a service in ArcGIS Online.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The feature contains a string attribute "LOG_OPM" which contains the following text:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;"kast 1 richting 2 3 A Groen &amp;lt;dub ov&amp;gt; vervangen nacht"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;(double quotes added for clarity)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When posting this as an update through the applyEdits endpoint, the following error is returned:&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Field LOG_OPM has invalid html content&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Obviously this is not meant to be HTML but the parser thinks it is. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Escaping the &amp;lt; and &amp;gt; like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;"kast 1 richting 2 3 A Groen \u003cdub ov\u003e vervangen nacht"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: Arial, sans-serif;"&gt;results in the same error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;How should I escape or encode this string so that the parser stores it properly without thinking it's invalid HTML?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;This is part of a C# application, I should add.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Eva&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 14:33:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/174064#M834</guid>
      <dc:creator>EvaDienske</dc:creator>
      <dc:date>2015-10-29T14:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid html content in json request body</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/174065#M835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://geospatialworld.blogspot.in/2015/08/arcgis-collector-update-error-code-1006.html" title="http://geospatialworld.blogspot.in/2015/08/arcgis-collector-update-error-code-1006.html"&gt;Geospatial World: ArcGIS Collector: Update Error Code 1006&lt;/A&gt; This helped me last time!&lt;/P&gt;&lt;P&gt;Go to your ArcGIS Server Admin page, select the Feature Service that is causing the problem and Edit the Feature Service.&amp;nbsp; Select the &lt;STRONG&gt;&lt;EM&gt;Capabilities &lt;/EM&gt;&lt;/STRONG&gt;item and select &lt;EM&gt;&lt;STRONG&gt;Feature Class&lt;/STRONG&gt;&lt;/EM&gt; within the Capabilities tab.&amp;nbsp; Near the bottom you will see a button labelled Advanced Options&lt;/P&gt;&lt;P class="separator" style="text-align: center;"&gt;&lt;A href="http://1.bp.blogspot.com/-y5yTkgsyVrc/VdZW1AW5Y9I/AAAAAAAAFxE/rcU2AlZu44k/s1600/blog_feat_serv_capab.png" style="margin-right: 1em; margin-left: 1em;"&gt;&lt;IMG border="0" class="jive-image" height="304" src="http://1.bp.blogspot.com/-y5yTkgsyVrc/VdZW1AW5Y9I/AAAAAAAAFxE/rcU2AlZu44k/s320/blog_feat_serv_capab.png" width="320" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P class="separator" style="text-align: left;"&gt;Click the &lt;EM&gt;&lt;STRONG&gt;Advanced Options&lt;/STRONG&gt;&lt;/EM&gt; button and you will be presented with the following dialog.&lt;/P&gt;&lt;P class="separator" style="text-align: center;"&gt;&lt;A href="http://4.bp.blogspot.com/-zhWH3KsIoZk/VdZW1QsQP3I/AAAAAAAAFxA/FEgylpr_dU8/s1600/blog_filter_content.png" style="margin-right: 1em; margin-left: 1em;"&gt;&lt;IMG border="0" class="jive-image" height="251" src="http://4.bp.blogspot.com/-zhWH3KsIoZk/VdZW1QsQP3I/AAAAAAAAFxA/FEgylpr_dU8/s320/blog_filter_content.png" width="320" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P class="separator" style="text-align: left;"&gt;Uncheck the &lt;EM&gt;&lt;STRONG&gt;Filter web content&lt;/STRONG&gt;&lt;/EM&gt; toggle and restart the service and the error should be gone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 16:22:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/174065#M835</guid>
      <dc:creator>PramodHarithsa1</dc:creator>
      <dc:date>2015-11-09T16:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid html content in json request body</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/174066#M836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that did the trick. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 10:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/174066#M836</guid>
      <dc:creator>EvaDienske</dc:creator>
      <dc:date>2015-12-11T10:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid html content in json request body</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/174067#M837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad It worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 20:42:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/174067#M837</guid>
      <dc:creator>PramodHarithsa1</dc:creator>
      <dc:date>2015-12-18T20:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid html content in json request body</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/174068#M838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this is an old thread but this is an issue with ArcGIS Server 10.6.1, the recommended solution solved our issue of "Invalid untrusted Html content detected in field".&amp;nbsp; Once web filter web content was disabled and service was restarted user was able to sync in Collector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/486324_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2020 13:35:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/174068#M838</guid>
      <dc:creator>JerrySimmons_GISP</dc:creator>
      <dc:date>2020-03-26T13:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid html content in json request body</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/1182325#M4173</link>
      <description>&lt;P&gt;Had this issue come up with submitting data in Field Maps and this solution worked for me.&amp;nbsp; Thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 15:01:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/1182325#M4173</guid>
      <dc:creator>Brian_Laws</dc:creator>
      <dc:date>2022-06-13T15:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid html content in json request body</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/1219507#M4291</link>
      <description>&lt;P&gt;Updating this thread as I am working on 10.9.1. When I go to capabilities and look at the feature access this filter web content is not to be seen, no radio button, checklist whatever. Then, fooling around, I unchecked feature service, then checked it again and more options came up, including the 'Advanced Options'. And therein was that silly hidden check box where I could uncheck filtering. This is so one layer, and one column's notes field, didn't have the json parser flagging the field worker's clever arrow emoji ----&amp;gt; as 'untrusted' html (I spend way too much time on troubleshooting this). Here's the snip:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AaronVaughn1_0-1665079068451.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53003i6942A091CE649DDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AaronVaughn1_0-1665079068451.png" alt="AaronVaughn1_0-1665079068451.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AaronVaughn1_1-1665079178817.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53004i58F34CEE0C7F1506/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AaronVaughn1_1-1665079178817.png" alt="AaronVaughn1_1-1665079178817.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 17:59:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/1219507#M4291</guid>
      <dc:creator>AaronVaughn1</dc:creator>
      <dc:date>2022-10-06T17:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid html content in json request body</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/1589939#M4955</link>
      <description>&lt;P&gt;thx! very helpfull&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/233714"&gt;@AaronVaughn1&lt;/a&gt;&amp;nbsp; i was totally lost on this error to begin with&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 10:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/invalid-html-content-in-json-request-body/m-p/1589939#M4955</guid>
      <dc:creator>TheMappingBearFromDenmark1</dc:creator>
      <dc:date>2025-02-27T10:23:22Z</dc:date>
    </item>
  </channel>
</rss>

