Forum Discussion
Document Library greyed out on Image Gallery web part
I'm trying to add an Image gallery web part to a new SharePoint Online site (Team site template) with lots of images in a few document libraries. These are regular plain Document Libraries. However the Image gallery web part has the Document library dropdown greyed out. If try another web part that looks for input from a document library, I can see them listed in other web part options.
I too have seen this behavior on my SharePoint site and I think this is a bug in SharePoint code (API call) which retrieves document libraries from current site to bind to the dropdown control.
I noticed below error in developer console of browser when I selected Dynamically display images from a document library option in web part settings:
The expression "Id,Title,RootFolder%2FServerRelativeUrl" is not valid.& the API call request causing this error is:
https://<tenant>.sharepoint.com/sites/<siteName>/_api/web/lists?%24select=Id%2CTitle%2CRootFolder%252FServerRelativeUrl&%24filter=BaseTemplate+eq+101&%24orderby=Title+asc&%24expand=RootFolderBut, ideally it should be like:
https://<tenant>.sharepoint.com/sites/<siteName>/_api/web/lists?$select=Id,Title,RootFolder,ServerRelativeUrl&$filter=BaseTemplate eq 101&$orderby=Title asc&$expand=RootFolderHope it will help you & Microsoft to troubleshoot this issue.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
7 Replies
- gregbutler_20Copper Contributor
labrunningHello. Did you ever find a solution for this? We currently have the same issue.
- labrunningCopper Contributor
Hi gregbutler_20 , no I have not. As far as I'm concerned, ganeshsanap has diagnosed this one correctly and the problem is at Microsoft's end and needs a fix there.
- gregbutler_20Copper ContributorThanks. As of October 2021 the issue is not occurring for our tenant anymore. I don't know if it was fixed or not, but we can no longer recreate it. I don't think we have CDN enabled either, but if we did, it would certainly still be enabled, since I didn't make any changes and just walked away from this issue for a couple of months.
- OpenBoxChrisCopper ContributorWould be great if there was a work around for this. Haven't had much luck yet with MS support but I'll reply again if they find out what the cause of this is.
I too have seen this behavior on my SharePoint site and I think this is a bug in SharePoint code (API call) which retrieves document libraries from current site to bind to the dropdown control.
I noticed below error in developer console of browser when I selected Dynamically display images from a document library option in web part settings:
The expression "Id,Title,RootFolder%2FServerRelativeUrl" is not valid.& the API call request causing this error is:
https://<tenant>.sharepoint.com/sites/<siteName>/_api/web/lists?%24select=Id%2CTitle%2CRootFolder%252FServerRelativeUrl&%24filter=BaseTemplate+eq+101&%24orderby=Title+asc&%24expand=RootFolderBut, ideally it should be like:
https://<tenant>.sharepoint.com/sites/<siteName>/_api/web/lists?$select=Id,Title,RootFolder,ServerRelativeUrl&$filter=BaseTemplate eq 101&$orderby=Title asc&$expand=RootFolderHope it will help you & Microsoft to troubleshoot this issue.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.