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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Bank Statement Upload - MT940 - Failing following upgrade to version 10.0.12

(0) ShareShare
ReportReport
Posted on by 25

Since updating to latest version 10.0.12 of D365 F&O, we seem unable to upload bank statements with the following error being reported:

File contains duplicate rows, cannot insert data into staging due to unique key violation.-
'0' 'Bank statements' record(s) inserted in staging

Bank statement file has been checked for duplicates and there are no duplicates in the file.  

Anyone any advice on any configuration that would need updating following an upgrade?  

Thanks!

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi ColMain,

    What exact procedure are you using to import your bank statements? Have you also checked if there are empty lines at the end of the file?

  • ColMain Profile Picture
    25 on at

    Hi André procedure is through the front end of the application, module Cash & Bank Management>Bank Statement Reconciliation>Bank Statements.  Choose the option of Import Statement, enter Bank Account and Format (MT940) and select file for upload.  There are no blank lines at the end of the file.

  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    Hi ColMain ,

    I would be hard to say whats causing that error. However , you can debug the process and see what causing this error.  class BankStatementImportBatch is getting called during the  import process . You can start debugging  from method importSingleStatement or doImportBankStatementsDMF and see whats causing it.

    I have seen similar issues with BAI2 import statement before and debugging this class helps in finding out the root cause.

  • Suggested answer
    Junaid Idrees Profile Picture
    on at

    Hi ColMain,

    After upgrade, Did you verified your transaction code mapping, statement format and  reconciliation matching rules setups in Advance bank reconciliation setup?

    Are you facing this issue on your all bank accounts or on specific one?

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello ColMain,

    I would recommend contacting the MS support especially if things worked fine before.

    Similar issues are reported on LCS but they are not related to bank statement imports.

    Best regards,

    Ludwig

  • Verified answer
    ColMain Profile Picture
    25 on at

    All, thanks for the responses.  Issue now resolved by simply restarting DIXF (Data Management restart).

    Thanks!

  • DJY Profile Picture
    30 on at

    Hi , we are trying to  import MT940 files to business central any advise .

    as we understood we need xslt file to covert MT940txt to MT940xml ?

    Thank you for your reply 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans