2

[Issue Description] - Customer is getting below error while importing the data from excel, into Sales freight charges or Purchase freight charges.

 

Error - SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.

An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Violation of PRIMARY KEY constraint 'I_13068STAGINGIDX'. Cannot insert duplicate key in object 'dbo.TMSSALESFREIGHTCHARGESTAGING'. The duplicate key value is (5637144576, SVL_Import_TMSRates, SVL_Import_TMSRates-2022-12-09T13:29:38-47FAB257FEBB4A6C9D0B48ED69B8F754, , 0, , Jan 1 1900 12:00AM).".

 

SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "OLE DB Destination.Inputs[OLE DB Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "OLE DB Destination.Inputs[OLE DB Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.

 

SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "OLE DB Destination" (77) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (90). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.

 

Failed to insert record into staging table. The keys of the record are DEFINITIONGROUP, EFFECTIVESTARTDATE, EXECUTIONID, ISFREIGHTCHARGEIGNORED, ORDERINGCUSTOMERACCOUNTNUMBER, PARTITION, SALESCHARGECODE. Duplicate records must be removed from the file prior to import.-The duplicate key value is (5637144576, SVL_Import_TMSRates, SVL_Import_TMSRates-2022-12-09T13:29:38-47FAB257FEBB4A6C9D0B48ED69B8F754, , 0, , Jan 1 1900 12:00AM)

'0' 'Sales freight charges' record(s) inserted in staging

 

Actual result - Error occurs.

Expected result - There should be no error and data should be imported.

 

Additional note - This issue was investigated my MSFT on support ticket 2305040050002583 , product group confirmed it's a bug (Bug id 818794). However, they resolved as won't fix. Details below.

 

Reason for the issue: There's no index restriction on TMSMiscellaneousCharge table for records to be unique on specific fields. However, for related entities they require a combination of fields to be unique to identify the unique row inserted, e.g.,  [ SalesChargeCode, IsFreightChargeIgnored, OrderingCustomerAccountNumber, EffectiveStartDate] for TMSSalesFreightChargeEntity. Each entity uses different ChargeCode for its own entityKey so it makes sense from this perspective. As a result, we'll resolve this bug as won't fix for now. 

  

Please consider this issue to be fixed in future release of the product. 

Category: Data Management
STATUS DETAILS
New