This blog covers SharePoint topics and issues that I have come across with SharePoint 2007 and 2010 - hopefully to help others !
Wednesday, January 30, 2013
SharePoint 2007 - stsadm error
After trying to restore a site collection from another environment I received the following error :
No content databases are available for this operation. Create a content database, and then try the operation again. To create a content database, click "Content databases" on the Application Management page, select the Web application to use, and then click "Add a content database".
Check CA and all was as expected, content DB's online.
I realised that the site collection had actually been restored before, even though it has a new name it had the same GUID within SharePoint and therefore needed to be on a new contentDB.
Wednesday, October 31, 2012
SharePoint 2007 "Code blocks are not allowed in this file" after saving a file from Word
Received the error after trying to save to a SharePoint document library via Word.
The method I used to resolve was to
Go to Site Actions -> Site Settings.Click the "Reset to site definition" link.
The type in the link that is not working "Latest Documents/Forms/AllItems.aspx" and just reset this library
This was fine for me as I didn't have any customizations as they will be reset.
The method I used to resolve was to
Go to Site Actions -> Site Settings.Click the "Reset to site definition" link.
The type in the link that is not working "Latest Documents/Forms/AllItems.aspx" and just reset this library
This was fine for me as I didn't have any customizations as they will be reset.
Tuesday, August 28, 2012
SharePoint 2010 - Exception: Invalid object name 'Webs'.
After running SP 2010 Cumulative update package and attempting Wizard I ran into the following error on a development box
Exception: Invalid object name 'Webs'.
Not very clear error .... but after looking in the Upgrade.log I found the following error pointing to a ContentDB
Exception: Invalid object name 'Webs'.
Not very clear error .... but after looking in the Upgrade.log I found the following error pointing to a ContentDB
[DEBUG] [8/24/2012 7:01:02 PM]: Retrieving site definition for
language 1033...
[OWSTIMER] [SPUpgradeSession] [ERROR] [8/24/2012 7:01:02 PM]:
Upgrade [SPContentDatabase Name=WSS_Content] failed.
[OWSTIMER] [SPUpgradeSession] [ERROR] [8/24/2012 7:01:02 PM]: Exception:
Invalid object name 'Webs'.
[OWSTIMER] [SPUpgradeSession] [ERROR] [8/24/2012 7:01:02
PM]: at
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean
breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior
runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream,
BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at
System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
Armed with this information I checked the content DB in question using SQL loads of tables/stored procedures were missing - see pictures below
Other
Tables contained many more as below
As this was a development box I was able to remove the web application and content DB - re-ran the upgrade wizard and all was good.
Subscribe to:
Posts (Atom)

