Unable to get rootFolder name of a list

Dhanusha Elangovan 0 Reputation points
2024-05-28T05:31:18.81+00:00

In our code we are fetching rootfolder name from SchemaXml of a list as below. In the scheamXML, the root folder will be present. It was working fine. But recently the value is coming as empty. Any one knows the root cause for this?

ListCollection listCollection = context.Web.Lists;

context.Load(

listCollection,

lists => lists.Include(

list => list.Hidden,

list => list.Title,

list => list.BaseType,

list => list.BaseTemplate,

list => list.Id,

list => list.SchemaXml

));

context.ExecuteQuery();

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,300 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 33,641 Reputation points Microsoft Vendor
    2024-05-28T08:07:40.38+00:00

    Hi @Dhanusha Elangovan,

    There is an issue in sharepoint online backend which will cause users receive the following error when attempting to access some SharePoint Online lists: "One or more field types are not installed properly. Go to list settings page to delete these fields."

    You could refer to the following reprot in admin center

    https://admin.microsoft.com/adminportal/home?#/servicehealth/:/alerts/SP791256


    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.