All About SharePoint

Liedong(Ken) Zheng,SharePoint Leader at SIMPLOT

Archive for November, 2011

Error HRESULT E_FAIL has been returned from a call to a COM component.

Posted by ken zheng on November 29, 2011

I got this error when start a full crawl in 2010 server.

Work Arround :

Open the web.config for the website 80. Find the line : identity impersonate="true"

If the identity impersonate is set to "false" (which create the error during the crawl), set up to "true".

Then run the crawl again. It completes now sucessfully.

 

NB: If you have more than one WFE, make sure you updated the all servers

Posted in Sharepoint | Tagged: | Leave a Comment »

Document Information Panel: Value’ is in nil content, Metadata won’t apply to one library item, remove the Document Properties with the Document Inspector

Posted by ken zheng on November 25, 2011

Sometime when a metadata type changed, the DIP will do funny things.

Solution: remove the Document Properties with the Document Inspector

Probably, the Word document you are trying to upload is a Word document downloaded from another SharePoint document library. The source, originaldocument library has probably other metadata (columns) than the document library to which you are trying to upload the Word document.

To fix this, remove these hidden metadata with the Document Inspector:

  1. Open the Word 2007 document and click the Office 2007 button, located on the top-left of the window.
  2. Choose Prepare –> Inspect Document, which will start the Document Inspector.
  3. Check the box Document Properties and Personal Information, which will inspect hidden metadata saved with the document.
    image
  4. Choose Inspect.
  5. Choose Remove All. This will remove all Document server properties and Content type information saved with the Word document.
    image

Aferwards, you’ll be able to upload the Word document to your own SharePoint document libary.

Posted in Sharepoint | Tagged: | Leave a Comment »

Default Column Values in SharePoint 2010 Missing from Document Information Panel

Posted by ken zheng on November 23, 2011

If you developed a word template in a content type, later on by setting the default values. You will find the default values are not shown in the Document Information panel.

After doing some testing I figured out that the Document Information Panel seems to get out of sync with a content type when changes are made to the content type schema (including its underlying fields, one of which I changed to set a default value). A lot of the information I found on the web says this only happens with custom (InfoPath-based) Document Information Panel forms or with custom document templates, but it appears to happen in pretty much all cases, not just custom DIP forms or custom document templates.

The fix: You need to “refresh” the DIP form associated with your content type. One way to do this is using InfoPath as Microsoft suggests here:
http://msdn.microsoft.com/en-us/library/ms494347.aspx
.

But I still can’t get the default value even it shown in the InfoPath template. the workaround I am using is to modify the word template, just open a new document from the library and select the default value from the Information Panel then saved it as word template. Upload to your content type. It works!

Posted in Sharepoint | Tagged: | Leave a Comment »

401: “You do not have permission to view this directory or page.”

Posted by ken zheng on November 23, 2011

Most time the error indicates the app pool identity account in IIS may not have permission.

Posted in Tools | Tagged: | Leave a Comment »

SharePoint 2010 InfoPath Attachments Only Have Download No Open Option

Posted by ken zheng on November 21, 2011

I have users report that InfoPath Attachments must be saved and open. There is no open option.

clip_image001

After a few search, and it actually SharePoint 2010 block the file.

SharePoint 2010 utilizes this enhanced security feature in IE 8 to block the opening of file types it considers vulnerable to scripting or other attacks, such as PDFs.   You can modify SharePoint’s behaviour by changing the Browser File Handling option in the Web Application General Settings of SharePoint 2010.   Your options are permissive and strict, with strict being the default.

image

Posted in InfoPath, Sharepoint | Tagged: | 2 Comments »

The ‘Microsoft.Jet.OLEDB.4.0′ provider is not registered on the local machine.

Posted by ken zheng on November 21, 2011

I am using Win 7 X64 bit operation system, when I run the PowerShell script, I got the error. In Fact, the OLEDB dll has been installed and if you search “Msjet40.dll”. Here is the link for how to determine the Jet 4.0.

Because Jet 4.0 only have 32 bit version, so to use the object. You need to run your program on X86 bit.

image

Posted in PowerShell | Tagged: | 1 Comment »

MOSS 2007 and WSS 3.0 Service Pack 3 has been released

Posted by ken zheng on November 18, 2011

This service pack contains all the Cumulative Updates and Public Updates for Office 2007 that have shipped since SP2 for both the Office client suites and applications, and the SharePoint server applications. The Project Server updates are included along with the SharePoint updates in the Office Servers SP3 updates. SP3 also contains additional new fixes which are described here. For a list of changes for each product, please refer to their individual KBs. The KB Articles referenced below will be updated throughout the day to include the live links to the published articles.

 

For your convenience here are the direct download links to the service packs:

As usual you have to install as well the service pack for the core product and for all installed language packs.

MOSS 2007 / WSS 3.0, Hotfix Info

Posted in Sharepoint | Tagged: | 2 Comments »

Windows PowerShell for SharePoint Server 2010

Posted by ken zheng on November 18, 2011

I found this very useful Silverlight application for 2010 Powershell.

Click to open the Windows PowerShell Command Builder in a new browser window

The Windows PowerShell Command Builder for SharePoint 2010 Products and Office 365 is a Silverlight application that enables IT pros and power users to visually assemble commands in the browser and then take those commands to their respective products.

Click to open the Windows PowerShell Command Builder in a new browser window.

For additional information, see the Getting Started Guide.

Posted in PowerShell, Sharepoint | Tagged: | Leave a Comment »

Pageview WebPart Scroll Bar

Posted by ken zheng on November 18, 2011

I have a Silverlight web part  that would like to be included in 2007 environment. I used pageview web part to have the 2010 page address.

All work well except there was scroll bar. After a few hours finding, you need to add a css in your 2010 page to remove the default “#s4-workspace” overflow settings.

 

Below is the css file I used to hid the ribbon and left menus that will only display the Silverlight web part.

<style type="text/css">
/*--Hide Quick Launch --*/
#s4-leftpanel{
display:none
}

#s4-ribbonrow,#s4-titlerow
{
display:none
}
.s4-ca{
margin-left:0px
}

#s4-workspace {
   overflow-y: hidden !important;
   overflow-x: hidden !important;
}
</style>

				

Posted in Sharepoint | Tagged: , , | Leave a Comment »

Retrieve Managed Metadata Field Value Using Code

Posted by ken zheng on November 16, 2011

I have a managed metadata field that I need to retrieve the value.

image

Below is the code I used to get the value from Managed Metadata column

                var objVals = (object[])listItem["Product"];   

                foreach (object val in objVals)
                {
                    var temp = val.ToString();
                    temp = temp.Remove(temp.IndexOf('|'));
                    Product += temp + ";";
                }

                Product = Product.TrimEnd(';');

Posted in Sharepoint | Tagged: | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.

Join 28 other followers