document library
3239 Topics404 error downloading file versions via CSOM (SharePoint 2013 On-Prem)
I need to download historical versions of a document from a SharePoint 2013 On Premises document library using a C# console application, so I can migrate them chronologically to SharePoint Online along with their column properties. While downloading the current latest version works perfectly, downloading older historical versions always fails. Standard CSOM methods fail because ListItem.Versions does not exist in the SharePoint 2013 v15 SDK. Reverting to direct HTTP endpoints consistently throws an error. Here is the exact exception message I receive: System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found). Below is the minimal reproducible code example demonstrating how the connection is initialized, how properties are loaded, and where the download fails on historical versions: using System; using System.IO; using System.Net.Http; using Microsoft.SharePoint.Client; using SP = Microsoft.SharePoint.Client; class Program { static void Main() { string siteUrl = "https://example.com"; using (ClientContext sourceCtx = new ClientContext(siteUrl)) { sourceCtx.Credentials = System.Net.CredentialCache.DefaultCredentials; List sourceList = sourceCtx.Web.Lists.GetByTitle("MyLibrary"); CamlQuery query = CamlQuery.CreateAllItemsQuery(); ListItemCollection items = sourceList.GetItems(query); sourceCtx.Load(items, ic => ic.Include( item => item.Id, item => item.File, item => item.File.Versions, item => item.File.ServerRelativeUrl )); sourceCtx.ExecuteQuery(); foreach (ListItem item in items) { if (item.File == null || !item.File.Exists) continue; foreach (FileVersion ver in item.File.Versions) { string absoluteVersionUrl = siteUrl.TrimEnd('/') + "/" + ver.Url.TrimStart('/'); using (var handler = new HttpClientHandler { Credentials = sourceCtx.Credentials }) using (var client = new HttpClient(handler)) { client.DefaultRequestHeaders.Add("X-FORMS_BASED_AUTH_ACCEPTED", "f"); client.DefaultRequestHeaders.Add("User-Agent", "Mozilla/5.0"); // CRITICAL FAILURE HERE: Always throws 404 Not Found HttpResponseMessage response = client.GetAsync(absoluteVersionUrl).Result; response.EnsureSuccessStatusCode(); using (Stream fileStream = response.Content.ReadAsStreamAsync().Result) { // Upload logic to SPO goes here } } } } } } The version URL returned inside the property matches the following virtual folder layout format: _vti_history/512/Folder/Doc.docx My specific environment queries are: Why does navigating to the absolute history folder URL over an authenticated HttpClient trigger a 404 Not Found error in SharePoint 2013 on premises, even though the path token is extracted directly from the version url metadata property? Is there an alternative legacy REST endpoint routing structure or an alternative file stream extraction method available in the SharePoint 2013 (v15) SDK that allows an external client application to fetch older version binaries successfully?23Views0likes0CommentsHow to hide the Modify this view and Create View as per users available in groups
Hi All, I have classic view of SharePoint in list/libraries. I have group(for Managers). I just want want to show and hide the Create View/Modify View/Modify this view depends on users available in group. If user available in group(for Managers) then they can do anything like Create View/Modify View/Modify this view but if user is not a part of the group(for Managers) then they can not modify any Public views but the can create Personal view. Is there any way how I can achieve this functionality?102Views0likes1CommentBulk cleanup of content / documents in SharePoint
Hi, We currently have a few SharePoint sites that have old content / documents in document libraries. These are outdated and some are more than 5 years old. To delete these, we currently need to go to each document library / page (and its subfolders), sort by the date created / modified and then manually delete, which would take some time. Is there a way to bulk delete older content/ documents based on date, either within SharePoint admin or a third party program? (e.g. maybe run a query on a site to list any older content and then check off which page / document to delete). Jason59Views0likes1CommentSharePoint Video Playback Quality Defaults to 480p – Horrendous
I manage multimedia training for over 600 locations and two distribution centers, supporting nearly 10,000 team members. We have made a significant investment in producing high-quality training content through professional equipment, structured scripting, and dedicated production and editing time. However, once videos are uploaded to SharePoint, the default playback quality often degrades the experience to what appears to be approximately 480p. As a result, professionally produced content can look noticeably poor on initial playback. Many of our store-level team members are not in a position to manually adjust playback settings, so the default experience matters. The source files are high resolution, but the default playback does not reflect that quality. This also creates issues when leadership reviews training content, because the playback quality can reflect poorly on the production even though the original video is clear. We moved away from third-party hosting due to ad exposure during onboarding and the need for a controlled internal platform. We are intentionally using SharePoint and Stream as part of our existing Microsoft 365 ecosystem for scalability, governance, and centralized access. Introducing additional paid hosting platforms or external streaming solutions is not a direction we are pursuing. From an enterprise training standpoint, defaulting to low-resolution playback undermines engagement and credibility. Are there plans to allow administrators to define a default playback resolution for SharePoint or Stream videos? Are there recommended encoding settings that influence the initial playback quality more reliably? Are there roadmap updates around improving adaptive streaming behavior or default resolution selection? Any guidance or insight would be appreciated.92Views0likes1CommentSharePoint Creates a New Document Version After Printing
Hello All, We're experiencing an issue with version control in SharePoint. Here is the scenario: Our users are in SharePoint Online major/minor version controlled document libraries. They are opening Office 365 documents (Word, Excel, etc.) in the web app in view-only mode. They are making no changes to the files — just selecting File > Print. The action of printing is creating a new version of the file (ex: 3.0 to 3.1). This is causing issues with the document statues. After a new version is created, the file status is updated from Approved to Draft. But there was no change to the file to warrant a new version. Lastly, the new version is only created if the user is printing from the web app (Word, Excel, etc.). If they open the file in their desktop app, the document is not marked as modifed. After reaching out to Microsoft, we were informed this is a new "expected behavior". Quote from Microsoft: "From SharePoint’s perspective, printing = modifying, so this is not considered a bug but expected product behavior. When a document is printed from Office for the web (Word/Excel/PowerPoint Online), SharePoint treats this action as a file modification." Is anyone else experiencing this issue? Have you discovered a way to prevent this from happening?86Views1like1CommentSharepoint link shared with me does not seem to be working
Hi, With my new job I was shared a link to my personal gmail address for a folder of documents I need to become familiar with. This was done with an invite link to a Sharepoint folder the documents are kept in to my gmail. When I click the link it prompts me to log into my outlook account. When I log into my account with the same gmail address as the one the link was shared to I do not see the folder that was shared to me. I tried logging into my gmail on outlook and clicking the link again, to the same result. Both times what I see is a web based outlook page with no emails, no documents shared on the “shared with me” tab of one drive and the only documents present are the cloud backup of my personal computer on one drive. I tried downloading the sharepoint app and logging in this way, but it says I need a school or work email and I can’t log in with a personal email address. It’s important I be able to view these documents. I would appreciate any help telling me how to access them.989Views1like2CommentsSPO Overwriting in a library .doc with .docx doesn't work
Hi, I got following remark: I have a word document with .doc extension. When uploading in that same library a word document with exact the same name but different extension .docx it will not overwrite the original document, it will create 2 different word documents with the exact same name. 1. Is this normal behaviour? 2. Is there a solution for this not happening? 3. If solution exists, will the Document ID change? 4. If solution exists, will the previous versions still exists? Thank you in advance for your help!Solved1KViews0likes4CommentsNew Document List '|0' does not exist at site with URL '|1'.
When trying to create a new document, from a custom content type (which has a template), starting from the Documents Webpart, Sharepoint opens the following link: https://tenant.sharepoint.com/sites/100000042/_layouts/15/CreateNewDocument.aspx?id=https%3A%2F%2Ftenant.sharepoint.com%2Fsites%2F100000042%2FSiteAssets%2FTemplate_ESC_Change_Request.dotx&Source=https%3A%2F%2Ftenant.sharepoint.com%2Fsites%2F100000042&RootFolder=%2Fsites%2F100000042%2FGedeelde%20documenten&ContentTypeId=0x01010076D558EFC4D9BE4383D7A605E7A59564020009E687B3C8518649A3695E9F903F7224 this throws an error: Error: List '|0' does not exist at site with URL '|1'. But the list does exist and the dotx is in this list. So why do we get this error? and how to fix this? If we try to do the same, but from within the document library, another link is generated by sharepoint: ms-word:nft|u|https://tenant.sharepoint.com/sites/100000042/SiteAssets/Template_ESC_Change_Request.dotx|s|https://tenant.sharepoint.com/sites/100000042/Gedeelde documenten and this works like a charm... So why the difference? and how to solve the error?7.9KViews0likes7CommentsSharePoint Online's "Move To" feature no longer showing my sites
Some point a few weeks ago the Move To function changed. Now when you want to move a file out of a Site and into another, it doesn't let you pick from your Followed Sites, it only lets you pick from your Recent document libraries. We have many Sites and it's making it difficult to move items efficiently (if the location you're moving something to doesn't show up, you have to click around in it in another tab for it to eventually show up in Recent). Previous, it just showed all of my sites that I am a member/followed. Any idea why this might have changed? These are all stand-alone sites, no O365 connection, but they are all part of the same hub-site network. Thank you!22KViews1like11Comments