Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
coolbear_lq
Regular Visitor

FeatureNotAvailableError while trying to get RLS to work

Hey guys,

 

I am desperate for help!!!!!! I keep getting this error when trying to get a report access token:

 

Microsoft.Rest.HttpOperationException: Operation returned an invalid status code 'NotFound'

 

The Power BI service also returns the following JSON:

{

    "error":

    {

         "code":"FeatureNotAvailableError",

         "pbi.error":

          {

              "code":"FeatureNotAvailableError",

              "parameters":{},

              "details":[]

          }

     }

}

 

Here is my code:

 

                    GenerateTokenRequest tokenParam = new GenerateTokenRequest(

                        accessLevel: "view",

                        identities: new List<EffectiveIdentity>

                                    {

                                        new EffectiveIdentity(

                                            username: "bill",

                                            roles: new List<string> { "SalesRep" },

                                            datasets: new List<string> { "8aefbacc-06e5-4261-89bc-e6aba598d0b2" } )

                                    }

                        );

 

                    EmbedToken embedToken = client.Reports.GenerateTokenInGroup(groupId, reportId, tokenParam);

 

The code runs without error if I remove the "identities" parameter from GenerateTokenRequest. But I need it there in order for RLS to work.

 

Some background info: I am connecting to Power BI service in China which uses a different api URL: https://api.powerbi.cn . Has this anything to do with the error? (i.e. RLS not availalbe in China?).

 

Also, I am using the latest version of Power BI SDK v2.0.11 (updated from NuGet).

 

I really appreciate for any help. Thanks in advance.

1 ACCEPTED SOLUTION
v-micsh-msft
Microsoft Employee
Microsoft Employee

Hi,

 

Power BI Embedding is not supported in China, currently.

See the FAQ:

Frequently asked questions about Power BI Embedded

 

Quoted:

"

Where is Power BI Embedded available? US Government? Germany? China? What is the timing?

Power BI Embedded is available in Azure commercial clouds and in the US government cloud. Sovereign cloud availability for Germany and China will be added in the future.

"

The FAQ updated on 03/07/2018.

 

Further, as Power BI Pro is hosted by 21vbluecloud, there is no information that I could find tolding that they will start support Power BI Embeded.

For Power BI Pro in China, please check

http://www.21vbluecloud.com/powerbi/pricing/

 

If you need additional help to confirm when Power BI Embeded would be supported, you may take a try to contact 21vbluecloud through:
http://www.21vbluecloud.com/ContactBlueCloud.html

 

Regards,

Michael

View solution in original post

1 REPLY 1
v-micsh-msft
Microsoft Employee
Microsoft Employee

Hi,

 

Power BI Embedding is not supported in China, currently.

See the FAQ:

Frequently asked questions about Power BI Embedded

 

Quoted:

"

Where is Power BI Embedded available? US Government? Germany? China? What is the timing?

Power BI Embedded is available in Azure commercial clouds and in the US government cloud. Sovereign cloud availability for Germany and China will be added in the future.

"

The FAQ updated on 03/07/2018.

 

Further, as Power BI Pro is hosted by 21vbluecloud, there is no information that I could find tolding that they will start support Power BI Embeded.

For Power BI Pro in China, please check

http://www.21vbluecloud.com/powerbi/pricing/

 

If you need additional help to confirm when Power BI Embeded would be supported, you may take a try to contact 21vbluecloud through:
http://www.21vbluecloud.com/ContactBlueCloud.html

 

Regards,

Michael

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.