Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

Monday, 7 October 2013

Customize Post.aspx Without Error

In order to customize SharePoint blog's Post.aspx page, you need to convert it into XSLT Data View using SharePoint designer. But, the problem is when you try to convert it, the below error occurs:

"Failed setting processor stylesheet: Expression expected. -->=<--@Author"


Solution:

  1. In your SharePoint blog site, go to Post.aspx.
  2. Click Site Actions >> Edit Page
  3. Delete Post webpart
  4. Add new Post webpart.
  5. Exit edit mode.
  6. Open Post.aspx using Sharepoint Designer
  7. Right-click Post webpart and then convert to XSLT Data View. (You should now be able to convert it without error)
  8. In Common Data View Tasks >> Parameters >> add new parameter ID (Parameter source = Query String; Query String Variable = ID)
  9. In Common Data View Tasks >> Filter >> add filter ID Equals [ID]. 

After that, you can now edit the default display page of a SharePoint blog site based on your requirements.




Tuesday, 1 October 2013

Error - The site collection could not be restored

I encountered this error while restoring a site collection in a separate content database in another server. The complete error message is:

"The site collection could not be restored. If this problem persists, please make sure the content database are available and have sufficient free space."

Below are the steps that I've done to debug and fix the issue:

  1. I checked the size of the hard disk drives and it has sufficient free space. 
  2. I tried to restore it in another PC / server and I have restored it successfully. (That's why I wondered why this error happens only in that particular server)
  3. I checked the design of dbo.Sites table in the newly created content db and found out that there are two missing columns, namely FullUrl and UserAccountDirectoryPath. So, I added manually these columns and after that I have successfully restored the site collection in that server.

FullUrl column


UserAccountDirectoryPath column