Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

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

Posted on by Microsoft Employee

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.

  • Suggested answer
    ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 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.

  • Community Member Profile Picture
    Community Member Microsoft Employee 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
    ergun sahin 8,812 Super User 2024 Season 1 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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans