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 :
Microsoft Dynamics AX (Archived)

Importing a file without delimiters

(0) ShareShare
ReportReport
Posted on by 451

Hi 

I am trying to import a file without delimiters and its a transaction file with one long string having divided by 120 characters. I could not handle it through code as AX supports only string size of 65000 characters.  I have used the commaio class but it does not read all the data and randomly reads only a portion of data.

Any help is appreciated.

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    Hi Srikanth,

    You can try to use System.IO.StreamReader mycsharpdeveloper.wordpress.com/.../how-to-read-text-file-line-by-line-in-ax

  • SKO Profile Picture
    451 on at

    Hi Ievgen,

    Amazing!!!! It works.

    But i have more requirement like my import file is of type simple text file and it has transactions in it. All the transactions are loaded without any delimiters and i have to read the transactions by breaking them to 120 characters each.

    Can you please help me

  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    So you can read file to a string now.

    Use https://msdn.microsoft.com/en-us/library/aa677836.aspx in a loop to split it.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#1
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#1
Pratik Bhosle Profile Picture

Pratik Bhosle 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans