web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

CommaTextIO is not initalized - AX 2009

(0) ShareShare
ReportReport
Posted on by 84

Hi All,

I have a custom code written to read CSV file and I am getting "CommaTextIO is not initalized " error. This code is written in AX 2009. Kernel and Application Version : 5.0.1500.6491

Localization version -Eastern Europe

Below is the code snippet.

FileName path = @"\\Test\Test.csv";

permission = new fileIOpermission(path,#io_read);
permission.assert();

textIO = new CommaTextIo(path,#io_read);
textIO.inFieldDelimiter(",");
textIO.inRecordDelimiter('\r\n');

I have verified that I have proper access to path. The class is having property set to Run on Server and is extending Run base batch class. 

Is it necessary that the service account used to run AOS should also have access to this network path ?

Any help will be very great.

Thanks In Advance.

I have the same question (0)
  • Blue Wang Profile Picture
    Microsoft Employee on at

    Hi Shailee,

    Yes, The recommended approach is to use shared folder and UNC path.

    Please refer this thread:

    community.dynamics.com/.../textio-object-not-initialized

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Shailee,

    If you create TextIO on server side AOS service account should have access to that file or folder.

  • Shailee Shah Profile Picture
    84 on at

    Hi Blue Wang,

    I have gone through the thread but it does not resolved my issue. I do have UNC path and as well as shared folder and tried from both.

    One more thing I would like to add is that If I try to run this from a file which is on my desktop it is working fine.

    Don't know what is missing between network path and desktop path.

  • Shailee Shah Profile Picture
    84 on at

    Hi BR, Sergei,

    Let me try adding service account with full access to file and folder and check.

  • Shailee Shah Profile Picture
    84 on at

    After providing access to AOS service account to that path it worked.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 692 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 280 Super User 2026 Season 1

#3
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 244

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans