Troubleshooting 'Access to the resource is forbidden' Error in Predictive Scoring OData API

Troubleshooting 'Access to the resource is forbidden' Error in Predictive Scoring OData API

Introduction

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.

Prerequisites

  • Predictive Scoring must be activated on the platform.
  • A valid Wiiisdom Cloud Platform Personal Access Token (PAT) is required.
  • Ensure you have obtained a context ID.
  • The appropriate roles must be assigned to your user account.

Step-by-Step Troubleshooting

1. Verify Predictive Scoring Activation

Ensure that Predictive Scoring is activated at the BI platform level. Refer to the Predictive Scoring documentation for detailed instructions.

2. Check User Roles

Ensure that your user account has the necessary roles assigned:

  • Monitoring Viewer: Grants access to the Predictive Scoring menu.

If you do not have the required roles, contact your platform administrator to assign them.

3. Validate Personal Access Token (PAT)

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.

4. Confirm Context ID

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}/

5. Authentication Method

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 

6. Data Refresh Schedule

Note that data is, by default, refreshed daily at 05:00 UTC. Ensure that you are attempting to access the data after this time.

Additional Information

For more detailed information on using the Predictive Scoring OData API with Power BI and Tableau, refer to the following documentation:

  1. Predictive Scoring – OData API Integration
  2. Predictive Scoring
  3. Account Settings
  4. Predictive Scoring – Setup