Cancel button doesnt delete object

Hi, I have a datagrid with a standard 'New' button. When the 'New' button is pressed it opens a page with a dataview of the newly created object. When I press the 'Cancel' button of this dataview it closes the page and brings me back to the datagrid page. The problem is that there is a newly created empty object in the datagrid. I've tried to replace the standard 'New' button with a MF button that creates a new object without commiting, but the problem still persists. The only thing I can imagine that could be causing this is that there are two After Create event handlers associated with the Entity. EDIT: The problem seems indeed to be with the event handlers. The Cancel button does indeed delete the newly created object when there are no after create events on this entity. Is there a standard way to resolve this? Thanks.
0 answers