4

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

2

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.

1

The only thing that I can see to look at is the feature template model.

editing widget
Have you set them up in arcmap?
feature template model

  • I took the default feature template model for each published feature service (both layers are point feature classes). – artwork21 Nov 14 '11 at 20:36
  • hmm? with the same schema maybe? same field names, etc. – Brad Nesom Nov 14 '11 at 20:57
  • If so you may have to build a switcher of sorts. to make one uneditable/editable. – Brad Nesom Nov 14 '11 at 20:58
  • I had two separate published resource each with one feature class. I combined both feature classes into one published resource, and now I can edit both from the api. Both schemas are similar, except for the values of one field. – artwork21 Nov 15 '11 at 2:14
  • interesting - I am in the process of making the same change. – Brad Nesom Nov 15 '11 at 2:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.