Not sure it will help but here is the full error:
Application Error
Exception caught in: Epicor.ServiceModel
Error Detail
Message: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
Table: ShipToSrch
SysRowID=‘ff3e9788-8ebe-478e-aea3-d63876d1d8fd’: ForeignKeyConstraint CustomerToShipToSrch requires the child key values (BWF, 107) to exist in the parent table.
Inner Exception Message: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
Program: Epicor.ServiceModel.dll
Method: CopyTSTableToDataTable
Client Stack Trace
at Ice.DatasetAdapter.CopyTSTableToDataTable[TIceRow,TDataTable](IceTable`1 sourceTSTable, TDataTable destinationTable)
at lambda_method(Closure , IIceTable , DataTable )
at Ice.DatasetAdapter.Copy(IceTableset sourceTableset, DataSet destinationDataset)
at Erp.Proxy.BO.CustomerImpl.GetRows(String whereClauseCustomer, String whereClauseCustomerAttch, String whereClauseCustomCrdPool, String whereClausePartner, String whereClauseCustBillTo, String whereClauseCustBank, String whereClauseCustChild, String whereClauseCustDfltDocType, String whereClauseCustIC, String whereClauseCustLabExpRate, String whereClauseCustMandate, String whereClauseCustomerDocs, String whereClauseCustRestriction, String whereClauseCustUPSEmail, String whereClauseCustomerDiscPriceLst, String whereClauseCustomerFSPriceList, String whereClauseGlbCustCred, String whereClauseMXCustomerFiscalText, String whereClauseNAMember, String whereClausePECustWhldHist, String whereClauseShipTo, String whereClauseShipToAttch, String whereClauseShipToRestriction, String whereClauseShipToLabExpRate, String whereClauseCustomerDocsSH, String whereClauseShipToDiscPriceLst, String whereClauseShipToMFBill, String whereClauseShipToPriceLst, String whereClauseShipToUPSEml, String whereClauseCustMFBill, String whereClauseMangCust, String whereClauseShipToSrch, String whereClauseCustomerPriceLst, String whereClauseEntityGLC, String whereClauseTaxExempt, Int32 pageSize, Int32 absolutePage, Boolean& morePages)
at Erp.Adapters.CustomerAdapter.OnGetRows(SearchOptions opts, Boolean& MorePages, String[] whereClauses)
at Ice.Lib.Framework.EpiBaseAdapter.GetRows(SearchOptions opts, Boolean& morePages)
at Ice.Lib.Searches.EpiSearchEngine.GetSearchResultsFromAdapterMethod(SearchOptions opts, SearchDataSetMode sdsMode)
at Ice.Lib.Searches.EpiSearchEngine.SearchUsingAdapterMethod(SearchOptions options)
at Ice.Lib.Searches.EpiSearchEngine.SearchIt(SearchOptions options, DataSet& results, Boolean& usedAdapter)
at Ice.Lib.Searches.EpiSearchEngine.SearchIt(SearchOptions options)
at Erp.Adapters.CustomerAdapter.InvokeSearch(SearchOptions opts)
at Script.custCB_ValueChanged(Object sender, EventArgs args)
at Infragistics.Win.UltraWinGrid.UltraCombo.OnValueChanged(EventArgs e)
at Ice.Lib.Framework.EpiUltraCombo.OnValueChanged(EventArgs e)
Inner Exception
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
at System.Data.DataSet.EnableConstraints()
at System.Data.DataSet.set_EnforceConstraints(Boolean value)
at System.Data.DataTable.EndLoadData()
at Ice.DatasetAdapter.CopyTSTableToDataTable[TIceRow,TDataTable](IceTable`1 sourceTSTable, TDataTable destinationTable)