Sevkavru Sevkavru
Sevkavru Sevkavru

Reputation: 81

TransactionFailureException: Unable to commit transaction

I want delete user and his phones.

 var client = new GraphClient(new Uri("http://10.28.16.199:7474/db/data"));
                client.Connect();
                client.Cypher
                    .Match("(user:User)-[r]->(phone:Phone)")
                    .Where((Users user) => user.Fio == name)
                    .Delete("r,user")
                    .ExecuteWithoutResults();

Its show me error TransactionFailureException: Unable to commit transaction

Upvotes: 0

Views: 169

Answers (1)

Tatham Oddie
Tatham Oddie

Reputation: 4290

There are probably other relationships still attached to the user. You need to delete all of them too.

Upvotes: 2

Related Questions