log errors on Inbound
fix for SQL NOT NULL constraint