Hi there,
We have multiple sub-sites that contain lot of references to documents that are placed in Library or workspace.
Over the period of time, many of the documents have been moved or replaced but links are not updated in the site leaving them as broken link.
we would need to fix such broken links. We dont have access to powerscripts or Central admin as of now to execute anything.
Kindly suggest possible solutions.
Thanks,
Chetan
The reason is SharePoint operates on a GUID system rather than a file system. So simply replacing the broken file with a backup file won’t work since SharePoint will look for a file with the proper GUID, not just the proper file name. Follow these simple steps.
1) Open the broken form and also another form in the same site which is working properly in the SharePoint designer.
2) Find the <WebPartPages:ListFormWebPart … to </WebPartPages:ListFormWebPart> in the broken form.
3) Replace that code from the form which is working fine.
4) The below code shows the lines that you have to change in the copied code.
<WebPartPages:ListFormWebPart runat="server" __MarkupType="xmlmarkup" WebPart="true" __WebPartId="{[Form GUID]}" ><Title>TITLE HERE</Title><ID>g_[Form GUID]</ID><ListName xmlns="http://schemas.microsoft.com/WebPart/v2/ListForm">{[LIST GUID]}</ListName><ControlMode xmlns="http://schemas.microsoft.com/WebPart/v2/ListForm">New</ControlMode><FormType xmlns="http://schemas.microsoft.com/WebPart/v2/ListForm">8</FormType></WebPartPages:ListFormWebPart>
5) Create a new GUID or copy a GUID from some other form in the site which is working fine and replace it in the code. [In above code it shows as Form GUID.
You have to give this value at two places. First for __WebPartId and second for the <ID>g_[Form GUID]</ID>
Note that this is not the GUID of the list. You can create this GUID from Visual studio or many online tools are available to create one.
6) Provide the GUID of the list in the tag >ListName xmlns=”http://schemas.microsoft.com/WebPart/v2/ListForm”>{[LIST GUID]}</ListName>
7) Now you have to fill the Control Mode and Form type in the following tabs.
<ControlMode xmlns=”http://schemas.microsoft.com/WebPart/v2/ListForm”>%5BControlMode%5D</ControlMode><FormType xmlns=”http://schemas.microsoft.com/WebPart/v2/ListForm”>{FormType]</FormType>
Control mode and Form type differs for each form.