[BUG] Postgre getKey error returning uuid key

Well, not really, or not any more, as it turns out.

But this is true. However, an alternative for the OP using UUIDs in PostgreSQL is now available (of no help with UUIDs in MS SQL Server, unfortunately).