this looks exactly like the same bug. forgot to point this out. the first hypothesis, that the sequence produces duplicate values was not correct. i have an heavily verbose installation that shows clearly that in cases where he error is raised the generated keys are unique.