Skip to main content
Question

URL encoding for ArcGIS Online Feature Service

  • December 7, 2020
  • 1 reply
  • 45 views

I am trying to publish a file geodatabase to an ArcGIS Online Feature Service that has several attributes with URLs.  One attribute that has just the URL (e.g. https://safe.com) and it works fine and is a clickable link in the AGOL popup window.  Another attribute has several URLs with a linked name and using formatting like: 

<a href="https://safe.com/page.aspx?ID=1">Link 1</a><a href="https://safe.com/page.aspx?ID=2">Link 2</a>

If I publish like this, I get a code 400 failure message. I believe the ArcGIS API is looking for an encoded URL so I tried the TextEncoder transformer and that will let me publish but the attribute shows up as text, not a clickable link. I tried several of the encoding types: HTML, URL (percent encoding), and XML but AGOL shows them all as just a text string. How do I make these clickable links? I should also note that if I simply upload my GDB in the AGOL interface it works fine without the encoding (the link names are displayed and clickable), my issue is just with the arcgisonline writer.

1 reply

debbiatsafe
Safer
Forum|alt.badge.img+20
  • Safer
  • December 10, 2020

Hi @zagorka​ 

If you're using FME 2019 and newer, one workaround you can try is using two ArcGISOnlineConnectors chained one after another as demonstrated in the example titled Upload and publishing a file geodatabase as a feature service in the transformer documentation.

I tested this method using the HTML snippet you posted and the both links appear as hyperlinks in the ArcGISOnline popup.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings