Why can't I delete records from the Directory?

Why do I receive an error when attempting to delete a record in the Directory?
“Error: Not Authorized to delete record: on table: Directory”

The most common time that this happens is because the directory record is not at a NEW workflow status. We do not allow deletion at any other status, as that contact may have been used in a downstream transaction — it is a form of data integrity.

Is this the case for you?

1 Like

@melanie.spence is this your use case, or is your directory record at a New status?

Gotcha is this new functionality for 25.1 because in our 24.2 environments we are able to delete directory records that are in the Active State. In this case the Directory Record is in the Active state and not the New state so it makes sense from what you said above as far as requirements for deletion that we got blocked from a security error.

This is enhanced functionality that came with the Directory Overhaul delivery for in 24.2, so it shouldn’t be different in 25.1.

Gotcha interesting I am able to delete Active records in 24.2 so is there a way we are bypassing that and in that case why am I unable to do so in 25.1? Am I missing data?

We deprecated all of the workflow security profiles that allow delete at Active but they still do exist in 24.2, just not later. We also don’t deliver any permissions associated to those security profiles — so my next idea is that a custom security that could be reusing those deprecated objects and since they were removed in the following release, the security doesn’t work anymore.

I think being able to delete in 24.2 is a bug and shouldn’t be happening (at least internally). Can you confirm there are no active WF security profiles tied to any current permission/role given to your user?

1 Like

That makes sense thank you. We have decided to agree with your flow for data integrity and have informed people that they will no longer be able to delete records in the Active State and that instead of deleting they should set the Directory record as inactive. Thank you so much for your help on this.

1 Like