When running a SmartConnect map into Sales Order Processing (SOP), receiving an error that says ‘Cannot insert the value NULL into column ‘DISAVAMT’, table ‘TWO.dbo.SOP10100′; column does not allow nulls. INSERT fails.’ There is nothing mapping to the Discount Available Amount, so it should be defaulting.
This occurs when something is wrong with the payment terms assigned to the customer the Invoice is for. Open up the Customer Maintenance form and find out what payment terms are assigned to the customer. Drill back to open up the specific payment term. In this case it was the Discount Type drop down was set to blank. Once that was corrected, the SOP Invoice imported correctly.