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

  • Sergei Minozhenko Profile Picture
    23,091 on at
    RE: How big the file can TextIO fetch and process

    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)

  • Community Member Profile Picture
    on at
    RE: How big the file can TextIO fetch and process

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

    Thanks Leo

  • Community Member Profile Picture
    on at
    RE: How big the file can TextIO fetch and process

    Hi Jerry,

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

  • Community Member Profile Picture
    on at
    RE: How big the file can TextIO fetch and process

    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.

  • Martin Dráb Profile Picture
    232,038 Most Valuable Professional on at
    RE: How big the file can TextIO fetch and process

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

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... 293,280 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,038 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans