web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

inventory recalculation invalid_scope error

(0) ShareShare
ReportReport
Posted on by 4

Hi

I wrote a job for recalculate inventsum and fix onhand qty errors.

I call standard recalculation functionality.

InventSumReCalcItem reCalcItem = new InventSumReCalcItem(itemId, true, CheckFix::fix);

 reCalcItem.updateNow();


At the end of job system create an error and on hand does not fix.

Do you have any solution about error?

error: 

Unable to retrieve token. Error: invalid_scope. Error description: Principal is not authorized for requested scopes. { "Principal": "finops-aos:7fba2e58-8d81-4144-98b0-xxxxxxxxxaef", "Context": "finops-env:7fba2e58-8d81-4144-98b0-xxxxxxxxxaef", "RequestedScopes": [ "https://inventoryservice.operations365.dynamics.com/.default" ], "UnauthorizedScopes": [ "https://inventoryservice.operations365.dynamics.com/.default" ] }. Error URI: . Correlation id: 12911cdc-9afc-4523-b28a-xxx2d5xxx4f0e

Ekran-g_F600_r_FC00_nt_FC00_s_FC00_-2023_2D00_04_2D00_03-170528.png

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    Hi Davut,

    There is no need to create a separate class to run the consistency check. You can follow the instructions in the blog from Tim Schofield to run this from the user interface with the standard feature.

    Consistency check for a single item in Dynamics 365 for Operations (and AX 2012 and AX 2009). - Dynamics 365 Finance Community

  • davut Profile Picture
    4 on at

    Hi Andre

    Thanks for reply.

    I tried standard functionality to.

    I get same error.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    Hi Davut,

    It looks like you also configured the Inventory Visibility add-in. If you don't have customizations, I would suggest logging an incident for Microsoft Support. There might be a regression due to the Inventory Visibility solution.

  • davut Profile Picture
    4 on at

    Hello Andre

    in the feature management inventory visibility features are enabled and add in is not configured.

    I disabled features and problem is solved. thanks for reply.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 271 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 171 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 130 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans