I am creating a log file while working in navision. When an error occurs the system rolls back until the last commit.
I want to keep the logrecords, but i do want to let the system roll back the rest of the transactions.
We are working in navision 4.0 with a 2009 Client and an SQL database.
When i use a commit after insert the logging entry, the system commits the whole process. When i delete the commit, i cannot log my problem.
I can think of a solution like an external log file. But i do not want that, so i hope there is a possibility to partial commit, or skip a table.
I have not heard of something like this, but maybe with the SQl database there are more options.
0
Comments
So when NAV gets an error, the lines in log.txt will still be there.
Tino Ruijs
Microsoft Dynamics NAV specialist
An alternative might be to use a tool like SQL-Server's bcp.
If not, it is not completely invoiced yet.
GenLedEnt.Setrange("Document No.",SalesInv."No.");
GenLedEnt.Setrange("Posting Date",SalesInv."Posting date");
If GenLedEnt.isempty then
-- skip this invoice
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!