Questions tagged [cascadedelete]

A cascade delete is the scenario in which child records of a deleted record are also automatically removed from the system as part of the original, single action of deleting the parent.

Filter by
Sorted by
Tagged with
0
votes
1answer
35 views

Delete Account Error “Cascade deleting too many records”

I would like to delete an account record. But It show to me error here: I also delete all related record with this account. When I check detail record. It don't have any Activity record. What's ...
0
votes
2answers
46 views

Cascade Delete on Lookup in Unmanaged Package

Salesforce has the option to enable cascade deletion for lookup relationships. Thus, if you delete the parent in the lookup, the child will also be deleted. However, this option must be enabled on a ...
0
votes
0answers
78 views

SOQL Query records deleted by cascade

I have a soql query ran in a trigger on AfterDelete of parent that finds all deleted objects that are children of this parent. It looks like this: SELECT Id, FROM child_object_c where ParentID='123' ...
0
votes
1answer
1k views

DELETE_OPERATION_TOO_LARGE, Cascade deleting too many records

I have 4 custom objects which has master-detail relationship with each other. Obj A (Parent) | Obj B (Child of Obj A) | Obj C (Child of Obj B) | Obj D (Child of Obj C) So if I delete Obj A , ...
6
votes
0answers
155 views

How many child records can a parent cascade delete (documented limit)?

I have a CustomObject__c which has childrens 2 level deep. Together a single parent object can have many 10.000 child records. Would it work to auto-delete the thousands ob child records just using a ...
0
votes
1answer
527 views

Governor limits involving cascaded deletes?

I'm writing a job to bulk delete records from my database. I've already seen this question: Cascade delete limits? But it does tell me how the deletion limits are affected. The object whose records ...
2
votes
1answer
509 views

Operations That Don't Invoke Triggers - Cascading delete operations

I was going through documentation about Operations That Don't Invoke Triggers and got confused with Cascading delete operations. Records that did not initiate a delete don't cause trigger evaluation ...
2
votes
1answer
1k views

Cascade delete records

I have one object, for example Area. It has two lookup relationships to itself, Parent__c, Child__c. In result I can create record with Parent and Child parameters. I am trying build hierarchy. And ...
2
votes
1answer
812 views

Deletion trigger in a master-detail relationship

I'm trying to figure out how to structure my trigger correctly. I have a trigger that fires properly when the detail is deleted, however I cannot figure out how to write a trigger handling the ...
1
vote
4answers
666 views

How can I mass delete records from custom objects?

I would preferably like to use a point-and-click approach or an appexchange app which helps me accomplish that? Also, if there is an app for recursive delete of data, that would be fantastic.
3
votes
1answer
1k views

Prevent related record deletion, except when parent record is being deleted

I have two custom objects, call them Parent and Child. Child has a Lookup to Parent, via Parent__c. It is not a Master:Detail relation. What pattern could I use to prevent deletion of a Child record ...
9
votes
2answers
5k views

Delete Operation Too Large - but all related records have been deleted

I had more that 1,00,000 child objects records for a single record of parent Object. After deleting the child object records when I am deleting the parent record I am getting the below error:- Using ...
7
votes
1answer
2k views

Cascade delete limits?

Is there a limit to the number of records that can be deleted in cascading delete? We are receiving an error "Deletion Unsuccessful You cannot delete this object" when trying to delete records ...