Hi
Have you seen a file moving function from WinApi library in AX? There is a function WinApi::moveFile(FromFile, ToFile). And there is an interesting keyword that is hardcoded for this method: CLIENT static int moveFile(FromFile, ToFile). You on the other hand have written your method where you explicitly want to work with SERVER side (you have a keyword SERVER up there).
Therefore my question is - did you use a generic path to save the file, i.e., something like C:\temp\myFile.csv ? If so then in this case the method would look for (and save) the file from the server perspective, which is in this case server’s C:\temp\ folder… which you might have no access to or such path may not even exist on that server… or otherwise it might happen that the AOS user might have no access to that path.
By the way, you have a try-catch construction there, so what is the actual exception message?
Janis.