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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

How can i make ax to read file directly without copying it to local folder

(0) ShareShare
ReportReport
Posted on by

I have 4 AOS on 4 different server and

i am importing files from ftp server to the folder on c drive of each server with same name.

and after that i am reading those file from the local folder.

The issue is when user try to login AOS from RDP server insteat of 4 AOS server , CLR error is generated because of local folder missing

How can i make ax to read file directly without copying it to local folder

or any other way to import files from ftp  server.

I have the same question (0)
  • Suggested answer
    ergun sahin Profile Picture
    8,824 Moderator on at
    RE: How can i make ax to read file directly without copying it to local folder

    Like in example 3, you can download it with ftp and pass it to the stream object

    www.atomicax.com/.../downloading-files-ftp-and-doing-something-them-d365fo

    The above code is c # code, but below I share an x ++ code that does the opposite. You can combine the two and write your own code.

    stackoverflow.com/.../dynamics-ax-ftp

  • Community Member Profile Picture
    on at
    RE: How can i make ax to read file directly without copying it to local folder

    I have tried both way didn't help

  • Suggested answer
    ergun sahin Profile Picture
    8,824 Moderator on at
    RE: How can i make ax to read file directly without copying it to local folder

    You didn't share what's not working. What error are you getting.

    Or let's just forget about the other codes for now. Our aim is to download the file from ftp and assign the data to the stream object.

    You already have a code that downloads the file from ftp. The rest is using stream, rather than recording. If you share your code, I can help you how to assign.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,100

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 890 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 633 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans