Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

XMLport crashing when importing a MT940 file

(0) ShareShare
ReportReport
Posted on by

Hello everyone

We are trying to import a Bank Statement file (MT940) into Navision. We do this all the time, but the files from this particular Bank contain 2 characters, that crash the import - SOH (ASCII 1) and ETX (ASCII 10).

Never mind that these characters are not supposed to be in a MT940 file, unfortunately we cant change that.

The XMLport crashes immediately after the PreXMLport code is done (error message below for SOH character). Is there some way to set up the XMLport to ignore these characters (changing the TextEncoding property didn't help)? Manually removing these characters works fine, but that is a last resort

1817.Error.jpg

The import is done manually.

Thanks

Armin

*This post is locked for comments

  • Suggested answer
    Yogesh Kulkarni_ Profile Picture
    Yogesh Kulkarni_ 1,762 on at
    RE: XMLport crashing when importing a MT940 file

    Yes, this is definitely with the special characters in data.

    As suggested by Ahmed, you can first clean the data and pass on the data to the XMLPort for importing.

     

    -Yogesh Kulkarni
    Please verify, if you find answer helpful.

  • Rashed Profile Picture
    Rashed 3,765 on at
    RE: XMLport crashing when importing a MT940 file

    There isn't much you can do with the xmlport.  I suggest to create new function code before passing the file to xlmport and remove those characters from the file. 

  • PachaDie Profile Picture
    PachaDie 50 on at
    RE: XMLport crashing when importing a MT940 file

    Hi Lenquist, Please check XMLPort properties:

    Encoding <UTF-16>

    XMLVersionNo <1.0>

    vs. first line in your file.

    Regards,

    Diego

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: XMLport crashing when importing a MT940 file

    Check the data in file , There might be some special characters in data

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans