Dec 15 2017 10:07 AM
We are migrating SP2007 document library into SPO. Our document library is huge and there are multiple views of type List View Web Part pages.
While migrating, these view pages also migrated and preventing the Modern Experience. Also the web parts appear twice in the SPO. If I delete the web part, the View also gets deleted but the page (.aspx) is not getting deleted. But couldn't locate these files in SPO.
While looking at SPO, AllItems.aspx takes the View ID as parameter and display the view results instead of navigating to different pages.
Appreciate your help.
Dec 16 2017 08:57 AM
Dec 16 2017 03:31 PM
Dec 16 2017 11:48 PM
Dec 17 2017 05:43 PM
Thanks for the response. My question is misunderstood. My question is not about how to migrate. After migration (yes, using a tool) where these SP 2007 web part pages land in SPO? How to access them via code?
Dec 17 2017 07:34 PM
I would ask the tool vendor how they are handling the migration of those old List View Web Parts and the associated pages. There are typically some hidden folders that are used to store those type of pages.
Dec 18 2017 11:23 PM
Ha, wow, I misread that one. Sorry.
Honestly my understanding has always been that these pages are dynamic based on an XML blob that get's rendered upon request and stored in the content db. That's usually all a view is.
However, you can see them in SPD as .aspx pages. I created a view called whereAreYou and you can see in the attached screen shot (arrow 3). Still pretty sure that is a façade.
I would check in to the SharePoint PnP or the Dev Center for code examples that set views.
You might also want to post this question in the SharePoint Dev area of the community.
Feb 01 2018 03:29 AM - edited Feb 01 2018 05:55 AM
SolutionUpdate:
1) All "*.aspx" pages can be found under "https://<<relative site url>>/Forms/<<pagename>>.aspx"
2) Some of the Web Parts from SP 2007 that are migrated into SPO are in hidden status. These web parts didn't appear even in "Edit Page" mode. The trick is to add "Contents=1" after the "pagename.aspx?" to list all web parts of the page including the hidden one. It provides the option to select the web part and delete it. After removing them, the view returned to Modern Experience.
3) For a given document library/List, don't alter the default view page "AllItems.aspx" or "All Documents" view. Not sure whether it is discouraged to set some other view as Default. The views work perfectly fine in a huge list if "All Documents" is default page. Noticed a new thing in last few weeks that the page displays "Tap here to load more items" if the filter is not returning any files within 5000 limit. I assume it goes back by created/modified date by 5000 items at a time.
Feb 01 2018 03:35 AM
Thanks for sharing your solution, that is a common problem with hidden web parts and the Content=1 technique has always been needed to find that issue.
Feb 01 2018 09:40 AM
Feb 01 2018 03:29 AM - edited Feb 01 2018 05:55 AM
SolutionUpdate:
1) All "*.aspx" pages can be found under "https://<<relative site url>>/Forms/<<pagename>>.aspx"
2) Some of the Web Parts from SP 2007 that are migrated into SPO are in hidden status. These web parts didn't appear even in "Edit Page" mode. The trick is to add "Contents=1" after the "pagename.aspx?" to list all web parts of the page including the hidden one. It provides the option to select the web part and delete it. After removing them, the view returned to Modern Experience.
3) For a given document library/List, don't alter the default view page "AllItems.aspx" or "All Documents" view. Not sure whether it is discouraged to set some other view as Default. The views work perfectly fine in a huge list if "All Documents" is default page. Noticed a new thing in last few weeks that the page displays "Tap here to load more items" if the filter is not returning any files within 5000 limit. I assume it goes back by created/modified date by 5000 items at a time.