WE have a custom Sage 500 task that creates sales orders from external data - I am seeing an issue where I get an error in my SQL profiler when creating a sales order and calling the stored proc spsoGetSOLineDist That does an insert into #tsoSOLineDist with the values for @_iShipToAddrLatitude, @_iShipToAddrLongitude. The issue is, that seems to fail. I have found the different procs that create that temp table and I noticed that one of them specCreateSalesOrder does not create the columns for the latitude and longitude
(does not have ShipToAddrLatitude DECIMAL(9,6) NULL,
ShipToAddrLongitude DECIMAL(9,6) NULL)
where all the other ones seem to. Because of that I have issues because the insert can't succeed cleanly. I am wondering it this was an oversite or something with that proc.