I've created several database users and I've added roles as needed.
I've added some of the standard Navision roles to each user.
When a particular user tries to generate invoice lines selecting shipment lines he gets an error: Combination of userid and password is incorrect.
This happens after he has successfully logged in. He can do everything but executing this function.
Debugging I found the error happens in table 111 Sales Shipment Line in the function InsertInvLineFromShptLine, when the instruction SalesLine.INSERT is executed.
IF SalesLine."Shipment No." <> "Document No." THEN BEGIN
SalesLine.INIT;
SalesLine."Line No." := NextLineNo;
SalesLine."Document Type" := TempSalesLine."Document Type";
SalesLine."Document No." := TempSalesLine."Document No.";
SalesLine.Description := STRSUBSTNO(Text000,"Document No.");
SalesLine.INSERT;
NextLineNo := NextLineNo + 10000;
END;
The user has insert permissions in table 37!!!
Anyone has any suggestion?
Thanks in advance
0
Comments
RIS Plus, LLC
Sure!
I've added some standard navision roles to the user.
I've seen into a few of them there are different references to the sales line table with different permissions (in some cases full read, write, modify and delete, in other cases only read).
Could it be a conflict between them?
It is strange that they are getting the error.
Are the users on local network? do they get disconnected?
Do you SQL Triggers on sales line table?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
1) yes, the users are on a LAN
2) no, they don't get disconnected
3) i don't think there are SQL triggers on the table
giving the user the SUPER role it functions! :?
I'm thinking you are getting the wrong caption for the error, or the user needs to log out and in or you need to synchronize security
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
You need to assigned to the db_owner or db_securityadmin database roles and at least securityadmin server role to succesfuly synchronize the security.
Regards,
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03