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, ...
Unanswered

How big the file can TextIO fetch and process

(0) ShareShare
ReportReport
Posted on by

I used TextIO api to process a txt file as size of 6,000KB and contains more than 5000 lines. My code can fetch the file and start to read, but will break before fully reading all lines. Does TextIO.read() has limitation for file size or number of lines to read?

Thank you for any feedback

I have the same question (0)
  • Martin Dráb Profile Picture
    237,912 Most Valuable Professional on at

    Could you please elaborate what you mean by "will break"?

  • Community Member Profile Picture
    on at

    Thanks for quick reply, Martin

    Actually the myline = myfile.read() variable contains only part of lines in txt file, such as if 5000 lines in txt file then only 3000 read into myline.

  • Community Member Profile Picture
    on at

    Hi Jerry,

    Can you check if there is a size limit of your variable myline ?

  • Community Member Profile Picture
    on at

    You are right, It has limit for Str type. Let me try Memo instead.

    Thanks Leo

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi TianJerry,

    Did you mean that myline variable has a string type? TextIO.read returns a container of values, not a string value.

    docs.microsoft.com/.../gg957997(v=ax.60)

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 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans