Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Error accessing SBA services

Posted on by Microsoft Employee

Hi,

 

I have installed GP Web client and Service based architecture. When I try to browse service using following url https://servername:<port>/GPService/tenants(DefaultTenant)/Companies(Fabrikam,%20Inc.)/Inventory/Items

I am getting error “Authorization failed because the request did not specify a tenant context.”

I have no problem web client with same user. The domain is set up as Poweruser in GP with both SQL and Windows accounts.  Any ideas how to specify tenant context
 

Further Error details from GP Service Logs

 

2015-03-17_15:44:13.629 (E) --> RequestException :: Details:[CorrelationId:[6d97b3960ae44d49b6c5845984c7eb3a], HttpCode:[403], ErrorType:[NoTenantContextSpecified], Source:[GPService], ExInfo:[Microsoft.Dynamics.GP.Svc.Foundation.ErrorHandling.RequestException: Authorization failed because the request did not specify a tenant context.

   at Microsoft.Dynamics.GP.Svc.GPService.Requests.Steps.TenantInformationStep.<Invoke>d__0.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Microsoft.Dynamics.GP.Svc.GPService.Requests.Steps.AuthenticationStep.<Invoke>d__0.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Microsoft.Dynamics.GP.Svc.GPService.Requests.Steps.CorsStep.<Invoke>d__0.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Microsoft.Dynamics.GP.Svc.GPService.Requests.Steps.ErrorHandlingStep.<Invoke>d__0.MoveNext()]]

*This post is locked for comments

  • davidsongau Profile Picture
    davidsongau 10 on at
    RE: Error accessing SBA services

    Hi Rubal,

    I'm having the same issue. Did you manage to get this issue resolved? If yes, could you please give me some advice?

    Thanks,
    David

  • RE: Error accessing SBA services

    Rubal,  can you provide the actual URL that you tried?  I'm having difficulty reproducing the issue that you're seeing.

    Thanks

    Rob

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans