We are running a NAV 2009 and a NAV 2013 System.
The databases lie in separate SQL Servers, which know each other as linked servers.
In the NAV2009 database I have a table which I want to access from NAV2013, too.
Records are appended to the table inside NAV2009. Later, some mechanism in NAV2013 reads the records.
Therefor I created an SQL view in the NAV 2013 database and a NAV2013 table object that links to that view. The "LinkedObject" property is YES, the "LinkedInTransaction" property is NO.
So far, everything works fine. I can read the data from NAV2013 code. I can "Run" the table from the NAV 2013 Development Environment and see the data in NAV2013 Windows Client.
Now, there is a Boolean data field that marks a record as not yet read by the NAV2013 system. I want to set the Boolean field to "TRUE", as soon as my NAV2013 code has finished.
Unfortunately, my MODIFY command in NAV2013 C/AL code fails with an error message:
The following SQL error was unexpected:
Unable to start a nested transaction for OLE DB provider "SQLNCLI10" for linked server "XXXXXX". A nested transaction was required because the XACT_ABORT option was set to OFF.
When I klick one of the checkboxes in Windows Client, I get the same error message as soon as the system tries to MODIFY.
Only in SQL Server Management Studio, I can apply an SQL UPDATE to my view without any problems.
Anybody out there, who can help?
Uwe
PS:
These are the MIBUSO links that I visited before my post:
http://mibuso.com/forum/viewtopic.php?f=23&t=55571&hilit=xact_aborthttp://mibuso.com/forum/viewtopic.php?f=23&t=37850&hilit=xact_abort