Error: 'Cannot insert the value NULL ... column does not allow nulls. INSERT fails' and SQL reporting does not record data