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
    • Related Articles

    • WCP Cannot Create Workbook Version When First View Is Inaccessible

      Summary When Wiiisdom Cloud Platform (WCP) attempts to create a version of a Tableau workbook, the process fails if the initiating user or service account does not have view permissions on the workbook’s first/default view. This issue occurs only ...
    • How to configure Azure Storage for Wiiisdom Cloud Platform binary files

      Overview This article explains how to configure a customer-managed Azure Storage Account to store binary files generated by Wiiisdom Cloud Platform. Warnings & Prerequisites You need permissions to create and configure an Azure Storage Account. ...
    • Fail to execute Semantic Model Validation step on Semantic Models based on Azure Analysis Services

      Symptoms When running a pipeline that includes steps of type Dataset (for example, performing checks such as Count Rows, Column Statistics, Dataset Values, or Duplicated Rows), the pipeline may fail with an error. In the Pipeline logs, you might see ...
    • Known Issues

      Power BI Pipeline execution RLS with empty roles and simulation steps In Open Report and Simulation Journey steps, support for dataset chaining was introduced in version 1.18.0. This support requires us to perform additional checks on the dataset ...
    • Hidden views are displayed when publishing using WCP and WTAB

      Summary When promoting content using WTAB Desktop, TVM Restoration, or WCP Promote content, workbooks that contain hidden dashboards or worksheets may have these views published instead of remaining hidden. This behavior differs from manual ...