We are trying to perform a DMT to update the notification e-mail and UPS Ship From Name fields in the Sales Order Header.
We are providing the required fields: Company, OrderNum, and CustomerCustID which is the CustID from the Customer table joined against the OrderHed table on CustNum.
More specifically, we are getting the data using the following SQL query:
SELECT OrderHed.Company,OrderHed.OrderNum,Customer.CustID,OrderHed.NotifyEMail,OrderHed.UPSQVShipFromName
FROM OrderHed
JOIN Customer
ON OrderHed.CustNum = Customer.CustNum
WHERE
After getting the data into CSV we are then we are modifying the NotifyEMail and UPSQVShipFromName fields appropriately and then trying to DMT the results back in with âUpdateâ checked. We have about 20,000 rows, and every single one of them throws this exception:
<Sales Order #> BPM runtime caught an unexpected exception of âNullReferenceExceptionâ type.
See more info in the Inner Exception section of Exception Details.
BPM runtime caught an unexpected exception of âNullReferenceExceptionâ type.
See more info in the Inner Exception section of Exception Details.
at Epicor.ServiceModel.Channels.ImplBase`1.ShouldRethrowNonRetryableException(Exception ex, DataSet dataSets)
at Erp.Proxy.BO.SalesOrderImpl.GetList(String whereClause, Int32 pageSize, Int32 absolutePage, Boolean& morePages)
at Epicor.DMT.Lib.SalesOrderHeaderImporter.Import(ImportData data, ExtendedBackgroundWorker worker)
As a result, no records are updated.
This is from the full error log, so Iâm not sure what itâs referring to by âin the Inner Exception section of Exception Detailsâ.
At first I thought it was because some of the latter two fields were empty but I get this even if no fields are empty, and it happens on every single record.
What could be causing these exceptions? What is the âInner Exception section of Exception Detailsâ referring to? Is there some place I can look for this information?