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

asked Nov 11, 2011 at 20:10

2 Answers 2

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.

answered Nov 16, 2011 at 19:54
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

answered Nov 14, 2011 at 14:58
5
  • I took the default feature template model for each published feature service (both layers are point feature classes). Commented Nov 14, 2011 at 20:36
  • hmm? with the same schema maybe? same field names, etc. Commented Nov 14, 2011 at 20:57
  • If so you may have to build a switcher of sorts. to make one uneditable/editable. Commented Nov 14, 2011 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. Commented Nov 15, 2011 at 2:14
  • interesting - I am in the process of making the same change. Commented Nov 15, 2011 at 2:18

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.