Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers 2

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

share|improve this answer
    
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
add comment
up vote 0 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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