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