Randomly receive permission error
kelseykong@hotmail.com
Member Posts: 86
Dear Experts
Users randomly received the following permission error when they try to post Purchase Receipt or Sales Return Receipt:
You do not have permission to read the G/L Entry table.
We are using NAV 2009 RTC.
Most of the cases users are able to post and print, which means there is no issue with the permission setup.
Please let me know if you have any clue of this issue.
Thank you.
Li
Users randomly received the following permission error when they try to post Purchase Receipt or Sales Return Receipt:
You do not have permission to read the G/L Entry table.
We are using NAV 2009 RTC.
Most of the cases users are able to post and print, which means there is no issue with the permission setup.
Please let me know if you have any clue of this issue.
Thank you.
Li
0
Answers
-
Dear,
Try check user access on Database, set users who access as DB_OWNER.
so all users can posting on tables.0 -
william_marcelinus wrote:Dear,
Try check user access on Database, set users who access as DB_OWNER.
so all users can posting on tables.
Hi William
We prefer to not to change the permission to DB_Owner to regular users as they are not the owner of the database.
Just to let you know this error does not happen all the time, which is really confusing to us.
Thank you.
Li0 -
Andwian wrote:Do you use Security Filter?
Hi Andwian
We are using Security Filter so that users don’t post GL Entries from Journal Entry page, by mistake.
May I know if this will cause the issue?
Thank you.
Li0 -
sometimes, perhaps, eg. when system try to read the record that out of the filter. It can be tricky.kelseykong wrote:We are using Security Filter so that users don’t post GL Entries from Journal Entry page, by mistake.
May I know if this will cause the issue?
Could you please explain in more detail, what Security Filter did you use?
Do you apply SETPERMISSIONFILTER?Regards,
Andwian0 -
Andwian wrote:
sometimes, perhaps, eg. when system try to read the record that out of the filter. It can be tricky.kelseykong wrote:We are using Security Filter so that users don’t post GL Entries from Journal Entry page, by mistake.
May I know if this will cause the issue?
Could you please explain in more detail, what Security Filter did you use?
Do you apply SETPERMISSIONFILTER?
Hi Andwian
Thank you for your response.
Regarding your question, we applied the following security filter for all the role IDs that allow Read Permission for Tabledata 17.
G/L Entry: Source Code=<>GENJNL
We dont apply any SETPERMISSIONFILTER.
The confusing part is the error doesn't always pop up? And even it pops up, later on, users will be able to post.
Do you think this is related to responsibility center setup (the function is there, but only applies to purchase. the issue exists in both purchase and sales), or two users access the post and print function at the same time?
Thank you.
Li0 -
I am not surekelseykong wrote:Do you think this is related to responsibility center setup (the function is there, but only applies to purchase. the issue exists in both purchase and sales)
No. The error should be:kelseykong wrote:two users access the post and print function at the same time?"The G/L Entry table is locked by another user"
It will raise an error only when the system find a record (G/L Entry in your case) that outside your Security Filter, i.e it find G/L Entry that Source Code is GENJNL.kelseykong wrote:The confusing part is the error doesn't always pop up? And even it pops up, later on, users will be able to post.Regards,
Andwian0 -
When posting sales and purchase documents NAV will call a LOCKTABLE and then find the last g/l entry record so if the last record had source code = GENJNL then the restricted users will get the error. As soon as someone with access manages to post a sales or purchase document then the last g/l entry will no longer have source code = GENJNL so the restricted users will then be able to post with getting an error. This is why you are getting the error intermittently.0
-
Andwian wrote:
I am not surekelseykong wrote:Do you think this is related to responsibility center setup (the function is there, but only applies to purchase. the issue exists in both purchase and sales)
No. The error should be:kelseykong wrote:two users access the post and print function at the same time?"The G/L Entry table is locked by another user"
It will raise an error only when the system find a record (G/L Entry in your case) that outside your Security Filter, i.e it find G/L Entry that Source Code is GENJNL.kelseykong wrote:The confusing part is the error doesn't always pop up? And even it pops up, later on, users will be able to post.
Thank you Andwian!0 -
Kishorm wrote:When posting sales and purchase documents NAV will call a LOCKTABLE and then find the last g/l entry record so if the last record had source code = GENJNL then the restricted users will get the error. As soon as someone with access manages to post a sales or purchase document then the last g/l entry will no longer have source code = GENJNL so the restricted users will then be able to post with getting an error. This is why you are getting the error intermittently.
Thank you Kishorm. You have pointed the right issue. I could replicate the error by adding a new GL Entry posted from General Journal. We added a read permission to the users that have issue and the issue was resolved.
Thank you so much for your kind support.
Li0 -
Great explanation!Kishorm wrote:When posting sales and purchase documents NAV will call a LOCKTABLE and then find the last g/l entry record so if the last record had source code = GENJNL then the restricted users will get the error. As soon as someone with access manages to post a sales or purchase document then the last g/l entry will no longer have source code = GENJNL so the restricted users will then be able to post with getting an error. This is why you are getting the error intermittently.
Thank you for pointing that out. =D>Regards,
Andwian0 -
Kishorm wrote:When posting sales and purchase documents NAV will call a LOCKTABLE and then find the last g/l entry record so if the last record had source code = GENJNL then the restricted users will get the error. As soon as someone with access manages to post a sales or purchase document then the last g/l entry will no longer have source code = GENJNL so the restricted users will then be able to post with getting an error. This is why you are getting the error intermittently.
Could you explain it again in little steps
"...the last record had source code = GENJNL then the restricted users will get the error".
Q.
Why would they get the error "You do not have permission to read the G/L Entry table."?0 -
For every datatable permission using "Security Filter" field it's possible to define a specific criteria to limit records which can be read or not.mdPartnerNL wrote:Could you explain it again in little steps
"...the last record had source code = GENJNL then the restricted users will get the error".
Q.
Why would they get the error "You do not have permission to read the G/L Entry table."?
In this case on G/L Entry permission security filter was "Source Code<>GENJNL": when the following code in sales post codeunit is performed if G/L Entry record read has
Source Code = GENJNL security filter isn't respect and the error is raised:IF RECORDLEVELLOCKING THEN BEGIN .. GLEntry.LOCKTABLE; IF GLEntry.FINDLAST THEN; END;
Anyone know if it's possible using security filtering to apply modify/delete criteria?* Daniele Rebussi * | * Rebu NAV Diary *0 -
ok, I was under the assumption, when the security filter is setup, you cannot see the record (filtered out).
Maybe it's better to set a filter higher up the tree, on table GL Account, field Direct Posting=false, or on Register.0 -
That is a better approach, since when using Security Filter <> GENJNL, we could not use SETPERMISSIONFILTER to bypass the last record which is GENJNL.mdPartnerNL wrote:ok, I was under the assumption, when the security filter is setup, you cannot see the record (filtered out).
Maybe it's better to set a filter higher up the tree, on table GL Account, field Direct Posting=false, or on Register.Regards,
Andwian0 -
Hope the topic starter will let us know what worked.0
-
Kishorm wrote:When posting sales and purchase documents NAV will call a LOCKTABLE and then find the last g/l entry record so if the last record had source code = GENJNL then the restricted users will get the error. As soon as someone with access manages to post a sales or purchase document then the last g/l entry will no longer have source code = GENJNL so the restricted users will then be able to post with getting an error. This is why you are getting the error intermittently.
Oops, typo - but I think a couple of you got the intended meaning - last bit was supposed to say...
"so the restricted users will then be able to post WITHOUT getting an error."0 -
Oops... I don't recognized the typos, until you notice us, and I keep it read two-three times, I still don't recognize it.
Finally, I can locate the typos. But indeed, I read it like this, before:
I read it correctly, and understand correctly, although without 'OUT'. Maybe it is true fact that human brain could correct the typos automatically."so the restricted users will then be able to post WITHOUT getting an error."
Regards,
Andwian0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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

