XMLPort - Job Queue

jbellingerjbellinger Member Posts: 2
I've an XMLPort I'd like to run via the Job Queue. In the Job Queue Log Entries, I'm getting the message: Client callbacks are not supported on Microsoft Dynamics NAV Server. Here is my Job Queue Entry codeunit;

SalesHeader.SETRANGE("Document Type",SalesHeader."Document Type"::Order);
SalesHeader.SETRANGE(Status,SalesHeader.Status::Released);
IF SalesHeader.COUNT > 1 THEN BEGIN
varXmlFile.CREATE(TEMPORARYPATH + 'orders.xml');
varXmlFile.CREATEOUTSTREAM(varOutputStream);
CustomerSalesOrder.SETTABLEVIEW(SalesHeader);
CustomerSalesOrder.SETDESTINATION(varOutputStream);
CustomerSalesOrder.EXPORT;
FromFile := varXmlFile.NAME;
varXmlFile.CLOSE;
FileManagement.DownloadToFile(FromFile,'\\sybvw8fap01\temp\orders.xml');
END;

Suggestions would be appreciated.

Comments

  • SeeSharpSeeSharp Member Posts: 19
    Try using the 'CopyServerFile()' method in the same codeunit. The DownloadToFile() method deals with client operations and you're not utilising a client here.
  • daniel_mitrea_1995daniel_mitrea_1995 Member Posts: 26
    Have you managed to fix this ? I have the same problem
Sign In or Register to comment.