Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Classes Io, CommaIo, C...
Finance forum

Classes Io, CommaIo, CommaTextIo, TextIo and AsciiIo are deprecated.

(0) ShareShare
ReportReport
Posted on by 70

Hello,
I use in the code:
-TextIo,
-AsciiIo
during compilation receives a warning from BP:
"Warning BP Rule: [BPUpgradeCodeTextIo]: Classes Io, CommaIo, CommaTextIo, TextIo and AsciiIo are deprecated. Upgrade to new AX7 equivalents and fix related code."
What then should I use instead of these two classes?

  • Kannan01 Profile Picture
    65 on at
    RE: Classes Io, CommaIo, CommaTextIo, TextIo and AsciiIo are deprecated.

    Try using

    System.IO.FileStream fileStream;

    System.IO.StreamWriter streamWriter

    For reference, you can find a code in the class "AccountingSourceExplorerFileExport"

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Classes Io, CommaIo, CommaTextIo, TextIo and AsciiIo are deprecated.

    I CaspJegl,

    If you want to directly add data to the tables using your file then I suggest you go use the data management platform (as Nikolaos suggested).

    else, if you are looking to write custom code to read file stream then you should look into .NET namespaces to read files (txt, CSV, dat, etc). I've used System.IO.Stream, OfficeOpenXml.ExcelPackage, OfficeOpenXml.ExcelWorksheet and OfficeOpenXml.ExcelRange namespaces to read from a CSV and DAT file.

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Classes Io, CommaIo, CommaTextIo, TextIo and AsciiIo are deprecated.

    What is your business requirement?

    I think you should use Data Management for CSV handling in most cases.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,760 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans