If a GatewayPaymentProfileId is deleted i.e. a shopper deletes a stored card profile, accessing any related payment records GatewayPaymentProfile child class throws an exception:
Obviously the 1805 is the gateway profile Id that was deleted.No row with the given identifier exists[CommerceBuilder.Payments.GatewayPaymentProfile#1805]
Shouldn't the ac_Payments.GatewayPaymentProfileId be set to null via a foreign key constraint when a profile is deleted?