This article provides a comprehensive guide to troubleshoot the 'Access to the resource is forbidden' error when attempting to extract predictive scoring data using the Wiiisdom Cloud Platform's OData API. Follow the steps below to resolve common issues and ensure successful data extraction.
Ensure that Predictive Scoring is activated at the BI platform level. Refer to the Predictive Scoring documentation for detailed instructions.
Ensure that your user account has the necessary roles assigned:
If you do not have the required roles, contact your platform administrator to assign them.
Ensure that you are using a valid and dedicated PAT. Do not reuse the same PAT across multiple applications or WCP tenants. Refer to the Account Settings documentation for instructions on creating and managing PATs.
Ensure that you are using the correct context ID in the API endpoint URL. The endpoint structure should be:
https://{your tenant}.platform.wiiisdom.com/odata/v1/powerbi/{contextId}/
https://{your tenant}.platform.wiiisdom.com/odata/v1/tableau/{contextId}/Use Basic Authentication with your Wiiisdom Cloud Platform email as the username and your PAT as the password. The authorization header should be:
Authorization: Basic
Note that data is, by default, refreshed daily at 05:00 UTC. Ensure that you are attempting to access the data after this time.
For more detailed information on using the Predictive Scoring OData API with Power BI and Tableau, refer to the following documentation: