Select to view content in your preferred language

Relationship Class from Feature Service to ArcGIS Online

308
10
07-14-2026 11:04 AM
MollyPickelDNR
Emerging Contributor

I set up a relationship class in ArcGIS Pro and created feature services for both the polygon feature layer and the related table. In ArcGIS Pro, I can access related records through the pop-up and attributes for each polygon feature. In ArcGIS Online, I cannot access related records. 

On the REST services directory, the relationship is listed (between the polygon layer "Projects" and the table "Inspections"), so it seems to have come through in some manner when the feature services were published, but I still cannot access them in my Online map. Any ideas for troubleshooting?

0 Kudos
10 Replies
DougBrowning
MVP Esteemed Contributor

Assuming you went into the popup and added a Related records element?

Did you make the map before you added the relate?  If so try a brand new map as it only picks these up on initial adding of the layer.

0 Kudos
MollyPickelDNR
Emerging Contributor

I tried to add a related record element, but the option was not available. 

I tried both to use the existing online map I had and I tried making a new one then adding the feature services.

0 Kudos
DougBrowning
MVP Esteemed Contributor

Did you add them via URL manually with the \0 at the end or from the add data interface?  That can make a diff.  I would start from the layer item page then open map from there just to see.

0 Kudos
MollyPickelDNR
Emerging Contributor

I tried both methods

0 Kudos
DougBrowning
MVP Esteemed Contributor

Hmm I have seen this but it tends to fix on a new map.  Can you post a screen shot of the Rest page showing it.  It could be a naming issue that is does not like.   Trying to remember what it was that I have seen.  Not sure if M:M are supported.

0 Kudos
JonathanMcD
Frequent Contributor

Hi, can you provide a screen-shot of what the layer looks like in your map, please? That's of the layer itself, and then the table in the table view.  And also in the item view for the hosted feature layer, not rest services view, can you you see, in the dropdown, layer and related table?

0 Kudos
MollyPickelDNR
Emerging Contributor

This is my first time posting on Esri Community and I don't see an option to add a photo, except by link. Here's the polygon feature class that has a relationship class with a table: https://dnr.geodata.md.gov/dnrdata/rest/services/AIMS/DNRTXNSTEST2/FeatureServer/5

0 Kudos
DougBrowning
MVP Esteemed Contributor

My guess is its the periods in the relationship name here.  I thought they fixed that but it did used to break I think  DNRAIMSv3.DBO.LWCF_Inspections  

I would try a new test service without the periods in the relationship name to see.

0 Kudos
JonathanMcD
Frequent Contributor

JonathanMcD_0-1784122644036.pngJonathanMcD_0-1784122644036.png

Any particular reason why your data is setup as such? Do you have multiple relationship classes or just the one between /5 and /16 (420 ish and 300 ish records)?

0 Kudos