Announcements
No record found.
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:
there is a read line in my code started in System.IO.....line 24.
What could be causing it ?
Thanks
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?
Oops, I'm sorry, was reading too fast :) the blog and your approach are ok so please ignore my previous message.
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.
hmm.. so now I'm confuse.
if it is ok, then why there is that error ?
Thanks,
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".
oo ok.
I didn't know it is case-sensitive.
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 669
André Arnaud de Cal... 445 Super User 2026 Season 1
Syed Haris Shah 331 Super User 2026 Season 1