Navision 4.0 SP3 - SQL and Create eletronic invoices

hairam
Member Posts: 27
Hi all.
I encounted a problem when writing eletronic invoices from a SQL server.
I had the problem that Navision wrote a error message that it was an invalid OIOXML path I had specified in sales setup.
I tried quite a few things. I took a copy of the database and started a native database with the same information. It now had no problems making the electronic invoices.
Ok so i browsed though the code and found that if I outcommeted these lines in 13609 - OIOXML Export Sales invoice
IF NOT OIOXMLDocumentEncode.TestFolder(SalesSetup."OIOXML Invoice Path") THEN
SalesSetup.FIELDERROR(SalesSetup."OIOXML Invoice Path", Text000);
XMLdocOut.save(STRSUBSTNO('%1\%2.xml', SalesSetup."OIOXML Invoice Path", "No."));
If I did that it made the XML fine and ofcourse dident send a error message. I do not feel good about changing any of the official code.
Anyone seen or heard of this before, and is there a fix for it or something?
Thanks
Jacob Egeberg
I encounted a problem when writing eletronic invoices from a SQL server.
I had the problem that Navision wrote a error message that it was an invalid OIOXML path I had specified in sales setup.
I tried quite a few things. I took a copy of the database and started a native database with the same information. It now had no problems making the electronic invoices.
Ok so i browsed though the code and found that if I outcommeted these lines in 13609 - OIOXML Export Sales invoice
IF NOT OIOXMLDocumentEncode.TestFolder(SalesSetup."OIOXML Invoice Path") THEN
SalesSetup.FIELDERROR(SalesSetup."OIOXML Invoice Path", Text000);
XMLdocOut.save(STRSUBSTNO('%1\%2.xml', SalesSetup."OIOXML Invoice Path", "No."));
If I did that it made the XML fine and ofcourse dident send a error message. I do not feel good about changing any of the official code.
Anyone seen or heard of this before, and is there a fix for it or something?
Thanks
Jacob Egeberg
0
Comments
-
Can it be that it is not a SQL problem, but your server does not have access to the specified path?0
-
I thought so too.
But, I can get it to work without any problems if I run Navision connected to a Native database (The same data, made via a backup from the SQL)
The same path everything, nothing outcommented it works fine. it.0 -
How could this code
File.SETRANGE(Path, FolderName); // foldername = your path
File.SETRANGE("Is a file", FALSE);
File.SETRANGE(Name, '.');
EXIT(File.FIND('-'));
differ from native to sql.
My guess is that it is a permission problem.0 -
Exactly I cannot see it either. But fact is if I ommit those 4 lines it works.
I think you are right in that it is some form of SQL permission.
But then the 10000 DKKquestion.
What SQL permission could have this effect?
Jacob Egeberg0 -
Is SQL Server running with it's own login? Check the services configuration for it, if they created a login just for SQL Server they may not have added it to the correct group or added it's login in the file ACLS.
No one loves you like the one who created you...0 -
[Topic moved from Navision forum to SQL General forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
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