Posts

Showing posts with the label documents

SharePoint | Value cannot be null, parameter name: g

Image
Problem: Moving documents in SharePoint can be a difficult task at times. One of the biggest challenges is keeping previous document versions. In some cases, it works if you simply move the documents from one place to the other, while using explorer views (nb: only works for MOVE operation, not for COPY). In other cases, explorer view, site content and structure and even 3rd party tools will fail to accomplish this. One of the reasons - and the one explained in this post - is a problematic field schema. More specifically, the lack of a certain attribute on a certain type of field, that will prevent the operation from running successfully, resulting in screens such as the ones below.             http://.../Demo Document 001.docx: Value cannot be null. Parameter name: g     Solution: In this case, it appears that we have a field with type "User", which does NOT have the attribute "List" set to "UserInfo...

SharePoint | Grab previous document versions

Image
Problem: In a SharePoint document library, we want to be able to retrieve, open or download a previous document version, without reverting back that version as main (restore). Solution: If we go to version history, we can right-click the version number and click " open in new tab ". This action will cause the browser to atually open the document directly. If we look at the URL, we can also understand that we can manually go there , in case the browser's display form is failing for some reason, using _vti_history and 512 increments. e.g. http://website/sites/sitecol/_vti_history/512/doclib/sample.docx - version 1.0 http://website/sites/sitecol/_vti_history/1024/doclib/sample.docx - vesion 2.0 http://website/sites/sitecol/_vti_history/1536/doclib/sample.docx - version 3.0