Hi,If you're trying to use an existing pk instead of autogenerated surrogate pk:Remove autopk="true" from root <element/>Add this as the first node under root <element/>, assuming @recommendationId is the table's pk:<key name="pk" internal="true"> <keyfield xpath="@recommendationId"/></key>Thanks,-...