Hi,
We've added a couple of custom fields to Vendor Ledger Entry. Currently, there is no code to populate these fields (working on that in development). But the fields do exist in the table.
I'm getting an error when a non-SUPER user tries to post. They get the big error window that says (among other things) "Cannot insert the value NULL into column 'Archive Status', table "xxx.dbo.Company$Vendor Ledger Entry'; column does not allow nulls. INSERT fails."
The field "Archive Status" is type [Option].
We're running NAV2009 R2 under Classic Client, so no service tier is involved.
If I try to post the identical transaction logged in as a SUPER user, the error does not occur.
Standard code in Codeunit 12 does an INIT on VendLedgEntry before it is populated. This should initialize any Option field to a value of 0 and should not be NULL.
I have a similar problem with posting of another transaction where Shortcut Dimension 3 is the field that causes the same error (field cannot be null). Dimension 3 is optional.
Has anyone seen this type of problem?
Ron
0
Comments
Did you try to restart that session?
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Hmmmmmmmmmm.
But if you don't use the RTC or the webservice, why do you have them running? It is useless and only consumes resources.
Just to be sure:
-What is the version of SQL Server and its build?
-If you don't have other DB's on your SQL Server, you can restart it so the cache gets cleaned completely. In case you have other databases, you can't do that but you can take the database offline and then back online. This should clean the SQL cache for that database but not other databases. After this, you can try again to see if it still has a problem.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Thanks for the reply.
We have about half the workstations on RTC, but the problem above was only on the Classic Client. We are on separate servers for the service tier, NAS and SQL, and performance is fine. The problem seems to have resolved itself. Still don't really know why. It could have been because of our periodic restart of all the servers, but it stopped being a problem even before we restarted SQL. So this is 'something that makes you say "hmmmmmmmm"'