Skip to main content
Question

URL encoding for ArcGIS Online Feature Service

  • December 7, 2020
  • 1 reply
  • 54 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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

debbiatsafe
Safer
Forum|alt.badge.img+21
  • Safer
  • 648 replies
  • 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.