Relationsip ID's in a Map Service Viewer

Discussion created by USForestServiceAdmin on Jul 2, 2013
Hi all,

We are working on a custom identify tool for a Flex-based map viewer that can display related data from a map service published using ArcGIS Server 10 SP3. Some of our map services contain 1-M relationships between feature classes and tables (defined by SDE relationship classes) in an Oracle-backed instance of SDE. We are noticing that for map services with relationships the REST relationship ID periodically changes. We have had a hard time pinning down under what conditions the ID is assigned and why it changes. Since the custom identify tool relies on knowing the relationship ID upfront the tool will break when the relationship IDs change.

This is what we want to know from ESRI:
- How does ArcGIS Server and the REST API assign the ID???s to relationships in a map service?
- Is there a way to make the relationship ID???s permanent?