Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
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 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 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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,989 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans