Answered

I can't delete a dependency.

Hello,

As you can see on attachement "Entities", I have 2 (two) related entities, "PAGAR" and "Cliente". For some reason they have 2 (two) relationships between them, both of them are on attachment "Attributes_marked". The first, "Clientes" (marked in green ) was created by myself and is necessary for my project, so its dependencies are alright as seen on attachment "dependencies_OK".

My problem starts with the second one, "idCliente", marked in red. Whenever I try to delete it, the software states I cannot because it has dependencies, but when I check them it's very inconclusive.

I don't remember creating the "idCliente" dependency, and as you can see on attachment "dependencies_PROBLEM", I didn't use it on any Form, Rule, Expression or anywhere else whithin the project.

How can I delete it and furthermore, how can I prevent this from happening again?

Best regards,

Lucas.

Best Answer
photo

Hello guys,

I've managed to solve this problem. I don't know whether it's some sort of bug or the correct procedure anyway, but this is what I did:

I clicked in "Relationship" and created a Multiple-to-Multiple relationship between the two entities.

Now I had 2 (two) relationships between them, one Single-to-Single and this Multiple-to-Multiple I've just created.

After that I saved my Data Model and closed it.

Finally, when I reopened it, the only relationship between them was the Multiple-to-Multiple one, and I was able to delete right away, without a single problem.

I hope this is useful for other people with similar problems.

Thank you and good luck!

Lucas.

Comments (2)

photo
1

Hello guys,

I've managed to solve this problem. I don't know whether it's some sort of bug or the correct procedure anyway, but this is what I did:

I clicked in "Relationship" and created a Multiple-to-Multiple relationship between the two entities.

Now I had 2 (two) relationships between them, one Single-to-Single and this Multiple-to-Multiple I've just created.

After that I saved my Data Model and closed it.

Finally, when I reopened it, the only relationship between them was the Multiple-to-Multiple one, and I was able to delete right away, without a single problem.

I hope this is useful for other people with similar problems.

Thank you and good luck!

Lucas.

photo
1

The most easy way to overcome this problem is to go to expert view, Entities, find the entity, Attibutes. And delete the undesired relationships.