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 :
Finance | Project Operations, Human Resources, ...
Answered

Write CSV error

(0) ShareShare
ReportReport
Posted on by

Hi all,

I'm following this blog for write a CSV file.

https://dynamics365foroperation.blogspot.com/2018/02/create-csv-file-and-save-it.html

but got an error saying "The name "System.IO.stream" does not denote a class, a table, or an extended data type"

Here is the code on that blog:

pastedimage1599060714287v1.png

there is a read line in my code started in System.IO.....line 24.

What could be causing it ?

Thanks

I have the same question (0)
  • nmaenpaa Profile Picture
    101,166 Moderator on at

    The blog is about AX2012, you are developing in D365FO. The cloud app can't access your local folders so your approach is not valid for D365.

    Instead you can offer the file for user download via the browser.

    Or, without any development, you can use Data management to export entity data to CSV file.

    Could we start by looking at your business requirement?

  • nmaenpaa Profile Picture
    101,166 Moderator on at

    Oops, I'm sorry, was reading too fast :) the blog and your approach are ok so please ignore my previous message.

  • VoltesDev Profile Picture
    on at

    Hi Nikolaos,

    Yes, I have a feeling that it is for AX2012, so that is true.

    My requirement is actually, there is job which is currently shows info messages only (usual using info(strfmt.....), that I want to save it to CSV.

    So I cannot use Data management because there is no physical data.

    Can you help how am I going to achieve that ?

    Thanks.

  • VoltesDev Profile Picture
    on at

    hmm.. so now I'm confuse.

    if it is ok, then why there is that error ?

    Thanks,

  • Verified answer
    Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    The error message doesn't match your code for some reason.

    The error is right - there is no type called "System.IO.stream". It's case-sensitive; the right name is "System.IO.Stream".

  • VoltesDev Profile Picture
    on at

    oo ok.

    I didn't know it is case-sensitive.

    Thanks.

  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    When you use X++ types, it's not case sensitive. But when you use .NET types (via .NET Interop), you must respect casing.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 669

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 331 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans