Select to view content in your preferred language

Can't get relationshipid when publishing Feature Service

650
3
10-16-2012 07:40 PM
shevchenhehe
New Contributor
I relate a layer with a table, then  i publish this service as Feature Service. Everything is ok. but when i go into the service directory, i check the layer info. I can not find the "Relationships" item.
However, in the Map Service everything is ok. I can see the "Relationships", and also can perform the " Query Related Records".
Tags (2)
0 Kudos
3 Replies
nicogis
MVP Alum
What do you mean "...I can see the "Relationships", and also can perform the " Query Related Records"..." ?
0 Kudos
shevchenhehe
New Contributor
What do you mean "...I can see the "Relationships", and also can perform the " Query Related Records"..." ?


I means in the Map Service�?I can see the layer has been actually related with the table. see the attachments.
The first picture shows the layer information in Map Server
The second picture shows the layer information in Feature Server
0 Kudos
GaryMacDougall
Esri Contributor
If the relationship class is attributed, you need to add the relationship class to the map before publishing in order for it to show up for feature services. For attributed rel classes, the relationships are described in the relationship class table. Having this in the service is required to support editing since clients need to add rows to the relationship class table in order to add a relationship. Thus, in order to support editing workflows, the feature service requires that the table be in the service.

thanks
Gary
0 Kudos