The URL Library Name/File Name is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.


 Scenario:

When you try to upload or check in a document in the document Library in newly migrated document library you get this error message.

The URL Library Name/File Name is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.

Reasons:

  1. When an item is added in a document library a stored procedure is called in SQL Server 2000 or 2005 this procedure requires some parameter which are send many times (may be twice or thrice), which can be checked in the log file, the entry is like this….

     Additional error information from SQL Server is included below. "Parameter ‘@nvarchar12’ was supplied multiple times." Query text (if available): "DECLARE @@S uniqueidentifier; DECLARE @@W uniqueidentifier; ……………………. 

     2.     Same Column Name might be given to two or more columns in Schema.XML file of your custom feature.

Solution:

  • Simply open the Schema.XML file in your favorite XML Editor (in my case it will be VS 2005)
  • Delete the tag ColName="nvarcharX" where X is an integer value
  • Save the Schema.XML file
  • Re-install feature by using command line (stsadm –o installfeature –name FEATURENAME -force)
  • Restart IIS
  • Revert the site
  • Redo migration and you are done with it

 Looking forward,

Ahmed Muneeb

Advertisements

1 Comment

  1. Rox

    Thanks for the solution, but which schema.xml file am i suppose to look for? which location?Cheers, Rox

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: