web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Uploading Customer payment to MS Dyn F&O using Customer Payment Journal data entity

(0) ShareShare
ReportReport
Posted on by 10

Hello,

           We are using the Data management import process using "Customer Payment journal" entity to upload customer payments done outside of MS Dyn 365.  It was working fine until last month and it is giving the following error during import process.  I have checked the staging table to make sure the Journal Number does not exists.  I also tried uploading with a very big journal number which is also giving same error.

Error

-----------------------------------------------------------------------------------------------------------------------------

File contains duplicate rows, Cannot insert data into staging due to unique key violation-
"0" Customer payment journal" records(s) inserted in stating.

-----------------------------------------------------------------------------------------------------------------------------

Customer-Payment-Journal-error.docx

  • Suggested answer
    A.Prasanna Profile Picture
    8,227 on at

    Hi ,

    Error is Clear, it says " File Contains duplicate rows, cannot insert data into staging due to unique key violation."
    just check the duplicate lines in the import sheet specially  Invoice Number, Payment Reference, and Description Fileds.
    also, Delete all the Rows after your Rows with values and columns after your data columns even those are empty. then try to upload again.

  • Suggested answer
    saurabh bharti Profile Picture
    15,059 Moderator on at

    You can try creating new excel file and try copy paste data as "Paste by value".

    Also try that you are not entering same line number or voucher for the lines by mistake.

  • Suggested answer
    MauricioSaldana Profile Picture
    Microsoft Employee on at

    Hi,

    Try cleaning the data on the staging before trying to import the file again and is mentioned before by the others, you need to check you don't have any duplicates, easier to do it by checking the log on the import.

    pastedimage1623660198392v1.png

  • AnithaEswaran Profile Picture
    2,032 on at

    Hi,

    Can you try uploading only one record and check if it is imported without any error.

    It clearly states as 'unique key' violation. Check the keys and see if the values for the unique keys are correct.

  • Finance and operation Profile Picture
    10 on at

    Hello All,

                Thanks for all your inputs.   I tired creating the Customer payment journal header manually and tried uploading only the customer payment journal line which should not have any unique key violation.

    I also ran Job History Clean up.  Now I am getting a different error "  Package execution failed please check event log in DMF service box-
    '0' 'Customer payment journal line' record(s) inserted in staging".   Attached screen shots.

    Thanks again.

    Ran Job History clean up

    pastedimage1625001137941v2.png

    Created Customer payment journal header manually

    pastedimage1625001166972v3.png

    Uploading the Customer payment journal Line using the following XML

    pastedimage1625001181528v4.png

    pastedimage1625001200523v5.png

    pastedimage1625001128422v1.png

  • MauricioSaldana Profile Picture
    Microsoft Employee on at

    Hello,

    On the last screen you attached you have an option on the menu that says infolog, click there and share the info.

    Also on the same screen you have the option to go to the staging table, click there and let us know if you have something there.

    Regards

    Mauricio

  • AnithaEswaran Profile Picture
    2,032 on at

    Hi,

    Can you check if your DMF service is running in your environment ?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 528 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 424 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 374

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans