Select to view content in your preferred language

Help! Error code 400: Since the most recent update, I am not able to save my html code in the attribute table for an audio player.

242
5
Jump to solution
12-13-2024 12:12 PM
LayerItOn
Frequent Contributor

Since the most recent update, I am not able to save my html code in the attribute table for an audio player.

LayerItOn_2-1734120540353.png

I have a specific column set up for the html code for my audio player. Every polygon has it except the newest polygon I added. But when I go to add the html code I get an error shown in the image when I save. I haven't figured a way around it yet.

LayerItOn_0-1734120483707.png

When I click okay, it clears my code.  I am so sad. I had this working really well for our organization. 

LayerItOn_3-1734120683256.png

Anyone else experience this? 

0 Kudos
1 Solution

Accepted Solutions
MarkBockenhauer
Esri Regular Contributor

@LayerItOn  I am not sure why your service changed, but this post has information about how to 'fix it'  https://community.esri.com/t5/arcgis-data-interoperability-blog/writing-html-and-other-amp-lt-and-am...

This is a handy reference for getting a token to use for administrating your service.  https://esriaustraliatechblog.wordpress.com/2022/09/01/faq-how-do-i-generate-an-authentication-token....

I did a repro of what you are experiencing, and found that setting xssPreventionEnabled to false, allow HTML to be entered.  

MarkBockenhauer_0-1734369709909.png

Here is more information about the security setting  https://enterprise.arcgis.com/en/server/10.9.1/administer/windows/best-practices-for-configuring-a-s...

How are you actually using the HTML in your attribute?  If it is just for the popup, it might be better to do the HTML in the popup definition, and just put the URL in for the attribute.  You could use Arcade in your popup definition to create the HTML for use in the Popup.

MarkBockenhauer_1-1734370013646.png

 

View solution in original post

5 Replies
Robert_LeClair
Esri Notable Contributor

Is this an ArcGIS Online web layer or a file geodatabase feature class?

0 Kudos
LayerItOn
Frequent Contributor

Hi! @Robert_LeClair It is an ArcGIS Online web layer that I have open in ArcGIS Pro to do the edits. This has been my methodology for this particular layer for the past year. Just experienced this error today though.

0 Kudos
Robert_LeClair
Esri Notable Contributor

So one thing to try is to republish the layer to ArcGIS Online and see if this addresses the error messages.

0 Kudos
MarkBockenhauer
Esri Regular Contributor

@LayerItOn  I am not sure why your service changed, but this post has information about how to 'fix it'  https://community.esri.com/t5/arcgis-data-interoperability-blog/writing-html-and-other-amp-lt-and-am...

This is a handy reference for getting a token to use for administrating your service.  https://esriaustraliatechblog.wordpress.com/2022/09/01/faq-how-do-i-generate-an-authentication-token....

I did a repro of what you are experiencing, and found that setting xssPreventionEnabled to false, allow HTML to be entered.  

MarkBockenhauer_0-1734369709909.png

Here is more information about the security setting  https://enterprise.arcgis.com/en/server/10.9.1/administer/windows/best-practices-for-configuring-a-s...

How are you actually using the HTML in your attribute?  If it is just for the popup, it might be better to do the HTML in the popup definition, and just put the URL in for the attribute.  You could use Arcade in your popup definition to create the HTML for use in the Popup.

MarkBockenhauer_1-1734370013646.png

 

LayerItOn
Frequent Contributor

You, my friend @MarkBockenhauer, are a life saver!! By switching the xssPreventionEnabled to false allowed me to enter in my html code again in the attribute table. Thank you so much for the help! 

0 Kudos