Forum Discussion
Document Library greyed out on Image Gallery web part
- Aug 04, 2021
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.
labrunningHello. Did you ever find a solution for this? We currently have the same issue.
- labrunningAug 25, 2021Copper 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_20Dec 03, 2021Copper 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.
- OpenBoxChrisAug 25, 2021Copper ContributorI've been told by MS support that this is a known issue for the CDN enabled tenants that the product team is aware of, and that we can expect a feature update in the 'far' future. I'm seeing this without a public/private CDN enabled for our tenant so they're going to see if they can find something else.
- labrunningAug 25, 2021Copper ContributorAs far as I am aware we also no not have any public/private CDN enabled.