Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

DMF Import- Customer Postal Address

(0) ShareShare
ReportReport
Posted on by 10

Hello,

While trying to import data into the Customer postal Address data entity, I keep having problems. I can import 1 line at a time, but when I try multiple lines simultaneously, this error message keeps appearing.

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: "The statement has been terminated.".An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0” Hresult: 0x80004005  Description: "Violation of PRIMARY KEY constraint 'I_2439STAGINGIDX'. Cannot insert duplicate key in object 'dbo. CUSTOMERPOSTALADDRESSSTAGING'. The duplicate key value is [PII data removed].".

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" (152) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (165). 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 ADDRESSLOCATIONID, CUSTOMERACCOUNTNUMBER, CUSTOMERLEGALENTITYID, DEFINITIONGROUP, EFFECTIVE, EXECUTIONID, PARTITION. Duplicate records must be removed from the file prior to import.-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: "The statement has been terminated.". An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Violation of PRIMARY KEY constraint 'I_2439STAGINGIDX'. Cannot insert duplicate key in object 'dbo.CUSTOMERPOSTALADDRESSSTAGING'. The duplicate key value is [PII data removed].".

'0' 'Customer postal addresses' record(s) inserted in staging.

  • Verified answer
    Alireza Eshaghzadeh Profile Picture
    Alireza Eshaghzadeh 13,564 Super User 2025 Season 1 on at
    RE: DMF Import- Customer Postal Address

    Hi Mubeen Ch,

    It seem that is issue is related to the source excel file since the data is not uploaded to staging table.

    It can be related to the duplicate records for one customer. Can you share the test file that t you want to import to better troubleshoot the issue?

  • Verified answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    RE: DMF Import- Customer Postal Address

    It is very clear from the error log that there are some duplicate records in the Excel. Try checking the primary key for that entity and check if there is any duplicate present. So gle record means it is not the duplicate but multiple means it might have duplicates. Try checking the Excel and the table and try again.

  • Mubeen624 Profile Picture
    Mubeen624 10 on at
    RE: DMF Import- Customer Postal Address

    Hi Alireza,

    When I submit just one line, no error message appears and the data uploads without a hitch. The snapshot that is attached is below.

    pastedimage1673353891024v1.png

     

    Additionally, data is not submitted when I upload many lines and an error is displayed. The snapshot that is attached is below.

    pastedimage1673353903072v2.png

    Regards,

    Mubeen

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    Alireza Eshaghzadeh 13,564 Super User 2025 Season 1 on at
    RE: DMF Import- Customer Postal Address

    Hi Mubeen Ch,

    Have you tried to export the entity (Customer postal addresses) to Excel?

    When you say that "I can import 1 line at a time,", do you mean that you have created filter while export data?

    I have tested the export of this standard entity and it works fine (records get exported)

    pastedimage1673349346440v1.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,187 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,966 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans