Reverse Transaction General Ledger - license error Payroll??

andy76
Member Posts: 616
Hello everybody,
we have NAV 5.0 CH (Switzerland) localization.
We are trying to make a reverse transaction (button: functions -> reverse transaction) from form 20 - General Ledger Entries but we always have the error "You do not have the permssion to read the Payroll Setup Table".
This happen for EVERY reverse transaction operation also if not concerning Payroll.
Same operations with partner (NFR) license are allowed, and with the customer license are not allowed not even giving the permission to read the table Payroll Setup Table in roles.
I want to know your opinion in this.
I also examined code and saw that ALWAYS is tried to make a PayRollSetup.GET after pressing the button.
<add id="CH2200" dev="SRYSER" request="CH-START-400" date="2004-09-15" area="PY"
releaseversion="CH4.00">
Error, when try to reverse Posting Payroll entries</add>
...
<Control63> - OnPush()
CLEAR(ReversalEntry);
IF Reversed THEN
ReversalEntry.AlreadyReversedEntry(TABLECAPTION,"Entry No.");
IF "Journal Batch Name" = '' THEN
ReversalEntry.TestFieldError;
// CH2200.begin
IF PayrollSetup.GET THEN
IF PayrollSetup."Source Code Payroll to G/L" = "Document No." THEN
ReversalEntry.TestFieldError;
// CH2200.end
TESTFIELD("Transaction No.");
ReversalEntry.ReverseTransaction("Transaction No.")
...
Thank you
we have NAV 5.0 CH (Switzerland) localization.
We are trying to make a reverse transaction (button: functions -> reverse transaction) from form 20 - General Ledger Entries but we always have the error "You do not have the permssion to read the Payroll Setup Table".
This happen for EVERY reverse transaction operation also if not concerning Payroll.
Same operations with partner (NFR) license are allowed, and with the customer license are not allowed not even giving the permission to read the table Payroll Setup Table in roles.
I want to know your opinion in this.
I also examined code and saw that ALWAYS is tried to make a PayRollSetup.GET after pressing the button.
<add id="CH2200" dev="SRYSER" request="CH-START-400" date="2004-09-15" area="PY"
releaseversion="CH4.00">
Error, when try to reverse Posting Payroll entries</add>
...
<Control63> - OnPush()
CLEAR(ReversalEntry);
IF Reversed THEN
ReversalEntry.AlreadyReversedEntry(TABLECAPTION,"Entry No.");
IF "Journal Batch Name" = '' THEN
ReversalEntry.TestFieldError;
// CH2200.begin
IF PayrollSetup.GET THEN
IF PayrollSetup."Source Code Payroll to G/L" = "Document No." THEN
ReversalEntry.TestFieldError;
// CH2200.end
TESTFIELD("Transaction No.");
ReversalEntry.ReverseTransaction("Transaction No.")
...
Thank you
0
Comments
-
andy76 wrote:...
Same operations with partner (NFR) license are allowed, and with the customer license are not allowed not even giving the permission to read the table Payroll Setup Table in roles.
...
I do hope you didn't try to post the journal in the live system using a partner license.
You should NEVER use a partner license in a live system. This can create transactions that then can only be reversed by the Partner and would cause the error message you are getting.David Singleton0 -
We were a Microsoft partner until some week ago and now no more.
Do you think that the problem is that original GL Posting were done with partner license and now the reverse entries are with customer license?
I don't think that.
Thank you0 -
I believe something in the database was done with a partner license. If you don't believe that then you need to look for a different option.David Singleton0
-
At least payroll setup must have been filled in with the partner licence, for example with CU 2.
With best regards
Jens0 -
jglathe wrote:At least payroll setup must have been filled in with the partner licence, for example with CU 2.
With best regards
Jens
Yes but Andy does not believe this.David Singleton0 -
I don't understand what you mean.
Looking to the code that I pasted there is no condition to choose if try reading or not PayrollSetup table.
There is always a simple Payrollsetup.GET after press the button Reverse Transaction....
But why? I am not reversing a Payroll registration !!!
// CH2200.begin
IF PayrollSetup.GET THEN
IF PayrollSetup."Source Code Payroll to G/L" = "Document No." THEN
ReversalEntry.TestFieldError;
// CH2200.end
If I comment this part all the reverse transaction is good and right posted...
Thank you0 -
](*,) ](*,) ](*,) ](*,) ](*,) ](*,) ](*,)David Singleton0
-
Hi andy,
that's something pretty odd/old: if you access a table (through get() at least) which you don't have access to, and the table is empty, then you will not get an error. If somehow that part of the database gets filled with data (different license), you will get the error with your license.
with best regards
Jens0 -
edit (deleted old post) what he (Jens) said0
-
If I understand you advice to delete the record in table PayrollSetup - no rows to GET will fail but managed and there not will be a license error?
I will try that.
Thank you0 -
andy76 wrote:If I understand you advice to delete the record in table PayrollSetup - no rows to GET will fail but managed and there not will be a license error?
I will try that.
Thank you
Andy if you are so adamant that no one used a developer license in the live system, then how did this record get in the live database. It means you must have payroll permission in your license. Therefor you will be able to delete the record using the normal user license.
As I said in my first post I believe that someone has done something in your system using a developers license, if you don't want to believe that, then its going to be damn hard to help you, because I just feel like I am banging my head against a wall.David Singleton0 -
David Singleton wrote:andy76 wrote:If I understand you advice to delete the record in table PayrollSetup - no rows to GET will fail but managed and there not will be a license error?
I will try that.
Thank you
Andy if you are so adamant that no one used a developer license in the live system, then how did this record get in the live database. It means you must have payroll permission in your license. Therefor you will be able to delete the record using the normal user license.
As I said in my first post I believe that someone has done something in your system using a developers license, if you don't want to believe that, then its going to be damn hard to help you, because I just feel like I am banging my head against a wall.
What Andy didn't believe wasandy wrote:Do you think that the problem is that original GL Posting were done with partner license and now the reverse entries are with customer license?
It's a simple misunderstanding. So stop banging your head against the wall. reserve that for a real blockhead.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions