1 Reply Latest reply on Sep 7, 2013 8:33 AM by anwar_k

    Data Management Service and Order of Inserts, Deletes

    jamatbls Level 1

      Hello, we are using the LCDS Data management service with a Flex app.  Currently we are using the SQL Assembler.  The issue we are having is with the order of the inserts and deletes that the data management service sends to the server when you call the commit method.   It seems that when using a managed array collection, and you delete an object in the collection that exists in the database, and then add it back to the collection, when you call commit on the dataservice object, it tries to perform the insert operation on the databaes first rather than the delete which causes a database unique constraint violation.   Is there a way to control the the order that the datamagement service performs inserts and deletes so that it is smart enough know to perform delete's first?


      Thank you.