cancel
Showing results for 
Search instead for 
Did you mean: 

Pending operations not deleting cancel pending objects

Former Member
0 Kudos

I've spent the last few hours trying to figure out why any item I delete is being Synchronized with the SUP Cache.

It seems the only way to delete an instance of an MBO you create is to call CancelPending().

I've read the Documentation and it says to call Delete(), but delete doesn't get generated with any implementation.

The Delete function is generated like so:

  public void Delete() { throw new Sybase.Persistence.NoSuchOperationException(); } 

So when I call CancelPending() on the MBO instance I want to delete, it removes it locally, but when the device Synchronizes it sends all pending objects, including deleted ones, to the Sybase Server.

It appears as though when it performs the Synchronization it is rolling back the deletions sending them to the server then committing the changes on the device.

Regards

Anupam

Accepted Solutions (0)

Answers (1)

Answers (1)

profitlich42
Participant
0 Kudos

Hello Anupam,

I ran in a similiar problem and finally started to read the documentation, which says:


cancelPending – cancels the previous create, update, or delete operations on the MBO. It cannot cancel submitted operations.