<?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: Field has invalid html content in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/202814#M990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Nathan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if this applies to your workflow. I'm adding and updating features using the ArcGIS API for Python to updated hosted feature layers on AGOL. Specifically, I'm using the &lt;STRONG&gt;edit_features&lt;/STRONG&gt; method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, I narrowed the issue down to "=" in quoted URL strings. For instance, the "=" characters in this part of your string&amp;nbsp;&lt;STRONG&gt;drawingNo=JO-P-0004&amp;amp;searchName=JO-P-0004&lt;/STRONG&gt;&amp;nbsp;would have caused my script to fail. I replaced them with "%3D", and the script is running fine. I also had some unsupported tags that I had to take care of, and I'm still doing some testing, but that was my major hangup, and I've been able to move forward since fixing it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2018 14:13:35 GMT</pubDate>
    <dc:creator>dmacq</dc:creator>
    <dc:date>2018-05-21T14:13:35Z</dc:date>
    <item>
      <title>Field has invalid html content</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/202811#M987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know the specific details about the above error message?&amp;nbsp; I receive it when I try to add features through the REST API for a hosted feature service in AGOL.&amp;nbsp; The features have a field with one or more HTML hyperlinks as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="&lt;A href="http://testcivica.lacsd.org/custom/GISDrawingLookup.asp?drawingNo=JO-P-0293&amp;amp;searchName=JO-P-0293"&gt;http://domain/custom/GISDrawingLookup.asp?drawingNo=JO-P-0293&amp;amp;searchName=JO-P-0293&lt;/A&gt;" target="_blank"&amp;gt;JO-P-0293&amp;lt;/a&amp;gt;,&amp;lt;br&amp;gt;&amp;lt;a href="&lt;A href="http://testcivica.lacsd.org/custom/GISDrawingLookup.asp?drawingNo=JO-P-0004&amp;amp;searchName=JO-P-0004"&gt;http://domain/custom/GISDrawingLookup.asp?drawingNo=JO-P-0004&amp;amp;searchName=JO-P-0004&lt;/A&gt;" target="_blank"&amp;gt;JO-P-0004&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The REST API does not like the &amp;amp; and = characters in the URLs.&amp;nbsp; It does not complain about the HTML, just the use of URL parameters.&amp;nbsp; When publishing the service from ArcMap, the data is loaded as is into the hosted feature service and displays perfectly.&amp;nbsp; I have several workarounds ready, but I would like to get&amp;nbsp;the REST API to work using the addFeatures endpoint.&amp;nbsp; I need to automate updating the service and I would prefer to avoid republishing the service each time, or using Arcade and custom HTML popups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 16:17:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/202811#M987</guid>
      <dc:creator>NathanHeick</dc:creator>
      <dc:date>2017-08-30T16:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Field has invalid html content</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/202812#M988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're having the same issue when trying to update a hosted feature service in AGOL using Python. It also appears to be causing issues when copying content in AGO Assistant. Any luck with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 15:48:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/202812#M988</guid>
      <dc:creator>dmacq</dc:creator>
      <dc:date>2018-04-25T15:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Field has invalid html content</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/202813#M989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I was able to update the hosted feature service using Python, but I had to republish the service each time from an MXD.&amp;nbsp; This process&amp;nbsp;is fairly involved.&amp;nbsp; You have to create a service&amp;nbsp;definition draft, analyze it, generate a service definition, upload the service definition to ArcGIS Online, republish the service from the service definition, and reapply the&amp;nbsp;service item info and item data to the&amp;nbsp;overwritten service.&amp;nbsp; Creating the service definition draft involves arcpy.mapping and modifying XML.&amp;nbsp; To make the primary&amp;nbsp;REST API requests, you have to make many other requests&amp;nbsp;to look up the service and service definition&amp;nbsp;item ids, item info, item data, item metadata, item folder id, and item folder name&amp;nbsp;based on&amp;nbsp;the service name.&amp;nbsp; Uploading the service definition is a multipart asynchronous process.&amp;nbsp; Publishing the service definition is also an asynchronous process that multiple REST calls.&amp;nbsp; Finally, when you overwrite the service definition and service items, you lose most of the item info, item data, and metadata in the process.&amp;nbsp; This requires more REST calls to reapply that information&amp;nbsp;to the new service definition item and the updated service item.&amp;nbsp; This is necessary to retain&amp;nbsp;your popup configurations, item descriptions, and any&amp;nbsp;item properties you usually set in AGOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, the AGOL Assistant probably uses the same REST endpoint (applyEdits) to update item data, so it makes sense you would get the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 22:06:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/202813#M989</guid>
      <dc:creator>NathanHeick</dc:creator>
      <dc:date>2018-04-26T22:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Field has invalid html content</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/202814#M990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Nathan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if this applies to your workflow. I'm adding and updating features using the ArcGIS API for Python to updated hosted feature layers on AGOL. Specifically, I'm using the &lt;STRONG&gt;edit_features&lt;/STRONG&gt; method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, I narrowed the issue down to "=" in quoted URL strings. For instance, the "=" characters in this part of your string&amp;nbsp;&lt;STRONG&gt;drawingNo=JO-P-0004&amp;amp;searchName=JO-P-0004&lt;/STRONG&gt;&amp;nbsp;would have caused my script to fail. I replaced them with "%3D", and the script is running fine. I also had some unsupported tags that I had to take care of, and I'm still doing some testing, but that was my major hangup, and I've been able to move forward since fixing it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 14:13:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/202814#M990</guid>
      <dc:creator>dmacq</dc:creator>
      <dc:date>2018-05-21T14:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Field has invalid html content</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/202815#M991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it has been a little while since I worked on this issue.&amp;nbsp; I do remember that the main issue was the equals signs in the URLs.&amp;nbsp; I suspect they are identifying URL parameters as a potential security threat.&amp;nbsp; I believe that I also escaped the equals signs and that fixed the issue.&amp;nbsp; In the end, for other reasons, I decided to go with using the ArcGIS REST API to republish the service the same way ArcMap does.&amp;nbsp; It might have been because of unsupported HTML tags.&amp;nbsp; Underneath it all, the ArcGIS API for Python uses the ArcGIS REST API, so knowledge like this applies no matter how you use it.&amp;nbsp; I just wish I could have found the restrictions in the documentation somewhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 16:36:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/202815#M991</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2018-05-21T16:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Field has invalid html content</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1002194#M3616</link>
      <description>&lt;P&gt;This is an old post but I just ran into this and found the solution.&amp;nbsp; In the Advanced Feature Access settings in ArcGIS Server (under Capabilities), you need to make sure you uncheck the box that says &lt;STRONG&gt;Filter web content&lt;/STRONG&gt;.&amp;nbsp; I had this set for one of my services, and was unable to edit any HTML-based content in my string fields.&amp;nbsp; As soon as I turned it off, it all worked.&amp;nbsp; Not necessary to escape the HTML.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 16:51:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1002194#M3616</guid>
      <dc:creator>KarenRobine1</dc:creator>
      <dc:date>2020-11-17T16:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Field has invalid html content</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1028640#M3735</link>
      <description>&lt;P&gt;Thank you! This was driving me nuts, honestly never even went into advanced settings before.&amp;nbsp; This was very helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 18:27:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1028640#M3735</guid>
      <dc:creator>MichaelAugust</dc:creator>
      <dc:date>2021-02-19T18:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Field has invalid html content</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1044003#M3769</link>
      <description>&lt;P&gt;I recently encountered this error in ArcGIS Online using Python to copy data using REST. The issue turned out to be that a user had added the text "&amp;lt;Null&amp;gt;" into a text field in an enterprise geodatabase.&lt;/P&gt;&lt;P&gt;My theory is that the ArcGIS Online html validation treats the text as an unrecognized html tag and rejects the record and I can replicate the error by trying to add the text "&amp;lt;Null&amp;gt;" into the Data widget in ArcGIS Online.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 22:00:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1044003#M3769</guid>
      <dc:creator>BillSouter2</dc:creator>
      <dc:date>2021-04-05T22:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Field has invalid html content</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1134444#M4065</link>
      <description>&lt;P&gt;Did this get filed as a bug? I'm trying to over-write services utilizing the ArcGIS API for Python clone_items() and I'm running into this same issue with nulls-- --which is odd, because the initial cloning working without any issues.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 22:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1134444#M4065</guid>
      <dc:creator>feralcatcolonist_old</dc:creator>
      <dc:date>2022-01-17T22:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Field has invalid html content</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1205969#M4254</link>
      <description>&lt;P&gt;Thanks for this insight... I had a field with thousands of text values and wasn't sure which was causing the "invalid html content" error.&amp;nbsp; Turns out it's just as you said.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 17:49:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1205969#M4254</guid>
      <dc:creator>SamSzotkowski</dc:creator>
      <dc:date>2022-08-24T17:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Field has invalid html content</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1206007#M4256</link>
      <description>&lt;P&gt;I had a column with &amp;lt;&amp;gt; characters so, within a Pandas dataframe, I used regex to remove those characters. This is for an AGOL feature layer updated every few minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df['unit'] = df['unit'].replace('[&amp;lt;&amp;gt;]', '', regex=True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 18:51:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1206007#M4256</guid>
      <dc:creator>ellipsol</dc:creator>
      <dc:date>2022-08-24T18:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Field has invalid html content</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1219671#M4292</link>
      <description>&lt;P&gt;FYI for anyone else having this issues with AGOL hosted layers, there is a post that describes how to update setting's at the FeatureServer level here&lt;/P&gt;&lt;P&gt;&lt;A href="https://comunity.esri.com/t5/arcgis-data-interoperability-blog/writing-html-and-other-amp-lt-and-amp-gt-tagged/bc-p/1219668#M159" target="_self"&gt;https://comunity.esri.com/t5/arcgis-data-interoperability-blog/writing-html-and-other-amp-lt-and-amp-gt-tagged/bc-p/1219668#M159&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 00:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1219671#M4292</guid>
      <dc:creator>PeterMilenkovic</dc:creator>
      <dc:date>2022-10-07T00:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Field has invalid html content</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1305787#M4501</link>
      <description>&lt;P&gt;For future users - the link has changed:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-data-interoperability-blog/writing-html-and-other-amp-lt-and-amp-gt-tagged/ba-p/1116925" target="_blank"&gt;Writing HTML and other &amp;amp;lt; and &amp;amp;gt; tagged conten... - Esri Community&lt;/A&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 16:01:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/field-has-invalid-html-content/m-p/1305787#M4501</guid>
      <dc:creator>ChadPeltier</dc:creator>
      <dc:date>2023-07-05T16:01:48Z</dc:date>
    </item>
  </channel>
</rss>

