Microsoft.SharePoint.Client.ServerException: The requested operation is part of an experimental feature that is not supported in the current environment.

Naveen Kumar B 0 Reputation points
2024-04-25T05:49:30.3566667+00:00

When I tried to executing the following code to check the connection with SharePoint Online and to get the Site Properties using CSOM, "Microsoft.SharePoint.Client.ServerException: The requested operation is part of an experimental feature that is not supported in the current environment." the mentioned error is thrown.

Tenant tenant = new Tenant(context);

context.Load(tenant);

context.ExecuteQuery();

Earlier the above code is working fine without any issues. Any suggestions??

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,481 Reputation points Microsoft External Staff
    2024-04-25T08:33:53.0833333+00:00

    Hi @Naveen Kumar B,

    What you can try if your tenant is like test environment is to make it targeted release for all users.

    To do that, go to your Admin Center > Settings > Organisation Profile > Release Preferences.

    Here, change it to Targeted release for everyone and wait for couple of hours.

    After that, you might be able to use this capability.

    enter image description here


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.