Problem description
Under Restore & Seedings -> Query based selection -> Add Query -> Selecting the child level as “Custom” opens up the following window for child object selection:
Here, you can exclude certain objects as shown below:
However, when you click on “Add to Restore & Seeding”, some of these excluded objects still get added to the Restore & Seeding.
Cause
By default, we include the parent records related to objects which we select from custom dropdown as part of child object selection.
The selection of a child record always includes the parent records as a child record cannot exist without the parent (i.e. orphan records).
The “Custom Child Object Selection” window is meant to allow the user to identify which child objects they want to include during the discovery process (some objects are pre-selected when you first open the window because they are part of the parent hierarchy as well as the child hierarchy)
Resolution
Select the required children and save the selection.
Once selected -> under the Restore & Seeding Settings -> click the ‘Exclude Objects’ tab as shown below:
3. Click the checkbox next to the object and click on the “Exclude” button to exclude the object’s selection from the Restore & Seeding.
4. Once the unwanted objects are excluded, click on the “Run & Execute Queries” button to start the discovery process.