[GIS] ArcGIS Viewer for Flex – multiple feature services

arcgis-flex-apiarcgis-flex-viewerfeature-service

I have two operational feature service layers in the flex viewer config.xml file, when I try to load both layers I get this error:

Office Locations layer failed to load: Fault code: 500 Fault info: An
unexpected error occurred processing the request. Fault details:

Interestingly, I can comment out either of the two layers (leaving only one operation layer), which allows me to edit with no error. Both layers are coming out of the same SDE database. Why can I not edit both layers? My geometry service has a min/max of two instances. Here is my code.

    <geometryservice> url="http://MyServer/arcgis1/rest/services/Geometry/GeometryServer"</geometryservice>

         <operationallayers>

            <layer label="Office Locations" type="feature" visible="true"
                   url="http://MyServer/arcgis1/rest/services/WICKSflexOffice/FeatureServer/1"/> 
            <layer label="Industrial Parks" type="feature" visible="true"
                   url="http://MyServer/arcgis1/rest/services/WICKSflexIndustrial/FeatureServer/0"/> 

        </operationallayers>

Thanks

Best Answer

I had two separate published resources each with one feature class. I combined both feature classes into one published resource, and now I can edit both from the api.