file location in intercompany functionnality

TMAN10
Member Posts: 12
Hello i have this problem when i want to import an xml file transaction
can you please help me to fix this problem?
0
Answers
-
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.United Kingdom0 -
there is no customisation, when i select the xml file and click open the error message popup0
-
Seems that xml file might be corrupt. Please check the file as there is no reason for that error.United Kingdom0
-
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 works0 -
Strange. In the company info set the IC Inbox Type to the Database and remove folder in the IC Inbox Details and then try it perhaps?United Kingdom0
-
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 FileName = '' THEN
ERROR(EnterFileNameErr);
0 -
I see.
Get rid of this line:
ClientFileName := FileMgt.CombinePath(CompanyInfo."IC Inbox Details",'*.xml');
What is NAV / BC version and CU?United Kingdom0 -
Hello,
The current version BC14 but how to get rid of this line?! how to get the file name properly?! is it a bug?!0 -
Correct code is this:
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;
United Kingdom0 -
Great it works ! is it a bug or something?!
Thank you0 -
great, thanks for confirming. It seems like it is bug.United Kingdom0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions