The error says the file does not exist?
Are you clicking on Importing Transaction File button then selecting a file and then this error pops up or is there any customisation around this?
Verify that file does exist.
Hello,
i don't think so because when i set the path in the cu 435 line this way
ClientFileName :=CompanyInfo."IC Inbox Details"+'\CEFA_2_1.xml' ;
it works
I have tried this but unfortunately the problem remain the same, i think that the problem came from cu 435
CompanyInfo.GET;
CompanyInfo.TESTFIELD("IC Partner Code");
IF ClientFileName = '' THEN BEGIN
IF CompanyInfo."IC Inbox Type" = CompanyInfo."IC Inbox Type"::"File Location" THEN // here it concatenate the path from C Inbox Details" and *.xml
// it give a path like that c:\...\*.xml the file does not exist
ClientFileName := FileMgt.CombinePath(CompanyInfo."IC Inbox Details",'*.xml');
FileName := FileMgt.UploadFile(STRSUBSTNO(SelectFileMsg,TABLECAPTION),ClientFileName);
END ELSE
FileName := FileMgt.UploadFileToServer(ClientFileName);
IF (ClientFileName = '') AND FileMgt.CanRunDotNetOnClient THEN BEGIN
IF CompanyInfo."IC Inbox Type" = CompanyInfo."IC Inbox Type"::"File Location" THEN
InitialDirectory := DELCHR(CompanyInfo."IC Inbox Details",'>','\') + '\';
ClientFileName :=
FileMgt.OpenFileDialog(STRSUBSTNO(SelectFileMsg,TABLECAPTION),InitialDirectory,FileMgt.GetToFilterText('','.xml'));
END;
Answers
Are you clicking on Importing Transaction File button then selecting a file and then this error pops up or is there any customisation around this?
Verify that file does exist.
i don't think so because when i set the path in the cu 435 line this way
ClientFileName :=CompanyInfo."IC Inbox Details"+'\CEFA_2_1.xml' ;
it works
CompanyInfo.GET;
CompanyInfo.TESTFIELD("IC Partner Code");
IF ClientFileName = '' THEN BEGIN
IF CompanyInfo."IC Inbox Type" = CompanyInfo."IC Inbox Type"::"File Location" THEN
// here it concatenate the path from C Inbox Details" and *.xml
// it give a path like that c:\...\*.xml the file does not exist
ClientFileName := FileMgt.CombinePath(CompanyInfo."IC Inbox Details",'*.xml');
FileName := FileMgt.UploadFile(STRSUBSTNO(SelectFileMsg,TABLECAPTION),ClientFileName);
END ELSE
FileName := FileMgt.UploadFileToServer(ClientFileName);
IF FileName = '' THEN
ERROR(EnterFileNameErr);
Get rid of this line:
ClientFileName := FileMgt.CombinePath(CompanyInfo."IC Inbox Details",'*.xml');
What is NAV / BC version and CU?
The current version BC14 but how to get rid of this line?! how to get the file name properly?! is it a bug?!
IF (ClientFileName = '') AND FileMgt.CanRunDotNetOnClient THEN BEGIN
IF CompanyInfo."IC Inbox Type" = CompanyInfo."IC Inbox Type"::"File Location" THEN
InitialDirectory := DELCHR(CompanyInfo."IC Inbox Details",'>','\') + '\';
ClientFileName :=
FileMgt.OpenFileDialog(STRSUBSTNO(SelectFileMsg,TABLECAPTION),InitialDirectory,FileMgt.GetToFilterText('','.xml'));
END;
Thank you