Docicon.xml (those pdf icons… wait a sec… no icons!)

Deploy SharePoint and chances are you will get asked to set up icons for PDF files every time. Do it twice and you build a batch file, add it to your "Deployment Kit" and call it a day.

I had an issue at a client site where on one development server there were no icons showing up in the Search results. Not for Word, Excel or PDF. Nothing. It turned out that a second (duplicate) entry had been made in the DocIcon.xml file for PDF’s – so while this was not affecting the icons associated with files in Document Libraries, the search results screen didn’t like the duplicate information – and so stopped showing icons for all results (in the HTML, it showed an image tag with an empty src attribute).

Removing the duplicate tag solved the problem, but it took a little while to work out what it was so hopefully this will be useful to someone. There’s a bit more about Search Results PDF Icons not appearing in this KB Article as well (although it does not mention this specific problem) – http://support.microsoft.com/kb/832809/en-us?spid=11373&sid=global

Advertisements

About Brad Saide

I'm a SharePoint consultant. I'm also slowly going bald, seem to have a permanent spare tyre around my waist and enjoy socialising with friends over a beer or 10. The last 2 may possibly be related. Started working with SharePoint when the first version was in limited beta release (participated in the Technology Adoption Program while at Woolworths) and have been committed to the adoption of the technology as a business enabler ever since.
This entry was posted in Uncategorized. Bookmark the permalink.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s