+ Start a Discussion
CloudConversionCloudConversion 

Trigger Error: "Record Deleted"

We wrote a trigger on the Product2 object, which works about 98% of the time.  However, there are a few products that always get the error "The record you attempted to access has been deleted. The user who deleted this record may be able to recover it from the Recycle Bin. Deleted data is stored in the Recycle Bin for 15 days." when the product is updated.

 

We've triple checked the log files, added a try/catch to the trigger and upsert calls, but there isn't nothing specifiying which record has been deleted, so we can't figure out how to resolve this issue.  We've included filters for IsDeleted in our queries and checks to make sure the custom fields don't have "_del__c" on them in the Sobject describe logic.

 

Any ideas??

 

Thanks,

Jon

Starz26Starz26

Can you post some code examples?

 

You are not using the ALL ROWS keyword in your query are you?