
Hi
I'm having a problem while trying to use the GPService I've installed the 'Web Components' and testing GP Desktop, Web Client and the Web Console are working fine. However when I try to use the endpoints for the say getting customer information I get a error 403
I'm running a single Tenant environment (Default Tenant)
I've got a Windows account assigned to an account in GP that is a power user.
https://<My Domain>/GPService/Tenants(DefaultTenant)/Companies(Fabrikam, Inc.)/Dynamics/Sales/Customers
<DexResponse>
<RequestError>
<CorrelationId>852589b7ec8549febd17e80e85cf03a4</CorrelationId>
<HttpCode>403</HttpCode>
<ErrorCode>ApplicationLoginFailure</ErrorCode>
<Source>DexterityProcess</Source>
<Message>
The specified user is not authorized to perform operations in this context.
</Message>
</RequestError>
</DexResponse>
I've looked in to the logs and it seems that the issue is in the logs for the folder
C:\ProgramData\Microsoft Dynamics\GPSvc\Logs\Inst_DEFAULT_14\DexterityRequests\
[*Error*]::Request Exception (pipeline - expected)
ErrorType:[ApplicationLoginFailure]
Source:[DexterityProcess]
The specified user is not authorized to perform operations in this context.
Basically its the same message that comes back in the browser. This looks like I've missed some setup step to allow the process to continue but I can't find any documentation that gives any indication of what permissions or setup I've missed.
Anyone got any ideas.
Thanks in advance
*This post is locked for comments
I have the same question (0)Hi VenUK
I've had a similar issue and was able to resolve it. I've been working on and off this issue and I finally hit upon the answer.
I did have 2 problems the first was certificate errors which were causing me to get an error in the 'C:\ProgramData\Microsoft Dynamics\GPSvc\Logs\Inst_DEFAULT_16\DexterityService\' logs having turned on verbose logging in the web management. This was fixed with proper certificates.
However the certificate was not the underlying problem and what was stopping me from calling SBA endpoints. The issue turned out to be accessing SQL Server. The break through came when I came across an 'Information' level event in the 'Event Viewer' under 'Windows Logs' -> 'Application'. The issue was this:
Login failed for user 'Domain\Account'. Reason: Attempting to use an NT account name with SQL Server Authentication. [CLIENT: <local machine>]
This was because during the install I had specified 'Windows Domain Account' for access rather than an 'SQL Account' doing a repair install and specifying an SQL Account instead of a windows domain one solved the issue and I can now hit the standard endpoints from Dynamics GP SBA.