Monday, August 31, 2009

The parameter is incorrect.

This error: "The parameter is incorrect.", is displayed in the crawl log of a content source. The result is of the error is the problematic site collection is not indexed. After researching the problem on the internet, it became evident that the site collection has an ACL list exceeding ~1000 users. See this blog .

Our problematic site had a lot of broken inheritance and a lot of SharePoint Groups. But I still wasn't sure that the ACLs exceeded 1000 users. So I wrote this little program to get the exact size of the ACL in the site collection:


try
{
using (SPSite _site = new SPSite(url))
{
try
{
IDictionary AllReusableAcls;
AllReusableAcls = _site.GetAllReusableAcls();
System.Console.WriteLine("Count of Values in ACL: {0}", AllReusableAcls.Values.Count);

foreach (KeyValuePair kvp in AllReusableAcls)
{
SPReusableAcl spRACL = kvp.Value;
SPBasePermissions spBase = _site.GetEffectiveRightsForAcl(spRACL);

System.Console.WriteLine(kvp.Key + ": " + spBase.ToString());
}
}
catch (Exception ex)
{
System.Console.WriteLine("Error: " + ex.Message);
}
}
}
catch (Exception ex)
{
System.Console.WriteLine("Error: " + ex.Message);
}



This confirmed my suspicion. There were 2383 keys in the ACL.

As the above mentioned blog propose, we had to reduce the number of keys in the ACL.

While reducing the number of keys in the ACL, as reported by the program, did not solve the problem, it could have compounded the problem.

Further investigation revealed a SharePoint user group with more than 6000 users. When a SharePoint user group exceeds 1000 users, then use an AD Group.

Monday, July 27, 2009

Upload Multiple Documents - Not shown on menu

This could be due to a corrupt Office 2007 installation on the client machine. Repair or reinstall Office 2007 on the client machine.

Or it could be due to ActiveX Security settings in the browser. Check the security settings for the applicable Zone. I.E. Check that ActiveX is allowed.

Or check in Central Admin/Application Management/Authentication Providers, select the correct Web Application and click on default. Ensure that "Enable Client integration" is set to "yes".

Friday, July 24, 2009

Top Link Bar

Not an error exactly, but the Top Link Bar doesn't highlight correctly, i.e. when you click on a subsite, the button is not highlighted.

Rather annoying, but simple to fix.

1. Site Settings
2. Top Link Bar
3. Edit the Link properties

Make sure the link is in relative URL format and includes the page, i.e. /sites/sitename/default.aspx, or /someurl/somesite/mypage.aspx

If you can't edit the link, then delete the button, and recreate it.

Thats it!