Hi experts,
We have an external application which creates records directly in sql nav tables (I know is highly not recommended).
If I do a run or a COUNT from NAV, I see less records than directly in the sql. (The property DataPerCompany is YES)
Is this normal?? Do you know how can I solve this issue??
(I know that we've to use web services instead of that and we're doing it, but it takes time...)
My client is in NAV 2016, I didn't have this problem with the previous versions. Does Microsoft changed something regarding this??? Any piece of advice??
Thanks
Gonzalo
0
Answers
Whenever you create a new company in NAV, SQL too creates a new company so I dont think DatePerCompany will have an effect on this.
Select * FROM [TestompanyOne$Sales Header] For one Company
Select * FROM [TestompanyTwo$Sales Header] For Second Company
Stop and Restart your service from Services.MSC + You can try using SELECTLATESTVERSION as if its a cache memory Issue .
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
Another trick is to define a query object on that table and read from the query object. Query objects go always directly to SQL DB and do not use the cache in the service tier (but it is easier is to use SELECTLATESTVERSION...).
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!