Hello,
I have added a new table to log - Contact 5050: Insert (all fields), Modify (all fields), Delete ( All fields).
New records are created only if done by me, my user connected to the database but not the movements of other users...
Both I and the user have closed and reopened the company.
NAV 5.0
Why this? How to solve?
Thank you
0
Comments
The user needs at least indirect permission to write in the log-table (and read the log-setup tables).
BTW: closing and reopening the company probably is not enough (I am not sure). Try to close the DB and reopen it.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
If it was a problem of permission there would not be an error message?
Thank you
No. When logging changes, the code first looks to see if the user has permission. If not it skips the code.
Another issue cold be if you are connecting to Navision with a different license than the other user. For example if you are using a developer license (which you should never do) to connect to a live database.
All users have it because it is loaded in SQL.
Thank you
Follow my blog at http://x-dynamics.blogspot.com
After that you can check whether the user has the correct roles on this tables.
Another way is to give the user temporarily access to the debugger, so you can log in with the account of the user to see what goes wrong.
Follow my blog at http://x-dynamics.blogspot.com
Have you restarted both computers?
I can try but think that the problems are others or bug.
Is it necessary to reboot the client as you suggest?
Thank you
1) flag Change Log Setup form
2) on same form press menu button : Setup -> Tables
wait the loading of data that is dynamic - run time
3) choose the table: in my case
ID Name Log Insertion Log Modification Log Deletion
5050 Contact All Fields All Fields All Fields
leave the form and reopen NAV on my client and on the client of the user (others users must not logout and login)
Is there something else?
Thank you
I found these suggestions on other mibuso posts but don't understand why doing that solves...probably bugs because it is not logical...
Thank you
Every time someone has told me they found a bug in Change log, it eventually was Always either License, permissions, or they forgot to log out and back into Navision.
In other words, exactly as I said, the user never actually closed Navision. And remember Change log is in Codeunit 1 before the company is opened, there for you must completely close Navision for any change log changes to take effect.
ANyway, glad you solved it.
Codeunit 1 is a single instance codeunit. When you open NAV, ONE instance is created in memory, and will stay there as long as the session is open. Any changes to the C/AL inside the codeunit will be saved to the database, but will not be reflected in the instance that is already running. To be able to actually run modified code in Codeunit 1, you must close NAV and restart it. This is for instance the reason why you must restart NAS when you make a change, because internally it uses codeunit 1.
@Andy: Just a friendly word of advice... when someone makes a suggestion, don't just dismiss it, even if it doesn't make sense. There are a LOT of very experienced people in here that have seen most problems before. Even if you think that something is not the cause of a problem, the least you can do is try the suggestion, if only to eliminate the suggestion.
RIS Plus, LLC
She is the last one using Terminal Server and didn't remember that.
I trusted him and was sure he logged out but only now understand that she didn't understand the difference between closing TS or NAV session...