Dear Developers,
I'm writing in order to ask for some help with File management in 2013 r2 xml port.
The "problem" is, that after importing the records from the file, I'd have to move it from the folder path it was opened from, to another folder (based on whether the import was successfull (in this case it has to be moved to an "Archived" folder), or it finished with errors (in which case it has to be moved to a "Failed" folder). The thing is, that in 2009 i could simply use the "currFile.CLOSE" command to close the file and then move it, but with 2013, this commandline was (re)moved somehow, and I just can't seem to work my way around it.
However, I found a codeunit called File Management (419), in which there IS a function for closing a file, but as a reference it expects a 'File' type variable, which i can not seem to pass from the XMLPort via. currXMLPort.FILENAME (Type Conversion error occurs).
I'm pretty desperate now, so if any of you might have any ideas or hints as to how this problem could be solved, please feel free to share your mind with me (or us, if there are any other developers who are concerned as well regarding this matter :) )
Regards : Ruben
*This post is locked for comments