Issues with SharePoint 2010 major versioning
There are a couple of issues with major versioning in SharePoint 2010 that prevent users saving files into document libraries. Things like this can be very frustrating for a client so it is worth being aware of these when designing SharePoint solutions in the hopes they are avoided. The issues are:
- Saving files from Office 2007 fails when a document library has major versioning enabled and contains a required field
- Copying files using Windows Explorer fails when a document library contains a required field and column default value settings for this field
I believe these are bugs with the product and both have been raised with Microsoft support so hopefully they are fixed in future updates. In the meantime this articles covers the details and some possible workarounds in case you run into the same issues.
Provisioning SharePoint 2010 Managed Metadata fields
The first part of this two part series discussed some of the problems with provisioning SharePoint 2010 managed metadata fields. This post will cover a robust method of deploying SharePoint 2010 managed metadata columns in a way that avoids common errors and enables the columns to automatically show up in the search refinement panel.
To recap on the previous post we are aiming to avoid the following problems when creating SharePoint 2010 taxonomy fields through features:
- If you create a list definition that uses this site column you get the error: Failed to get value of the “{0}” column from the “Managed Metadata” field type control. See details in log. Exception message: Invalid field name. {00000000-0000-0000-0000-000000000000}.
- The managed metadata column does not appear in
Issues provisioning SharePoint 2010 Managed Metadata fields
I’ve been working with the managed metadata functionality provided in SharePoint 2010 fairly extensively over the past few months. While it is a great feature and works well when used through the UI it has several rough edges that can cause problems when you are deploying features that use managed metadata fields. Some of these have been documented elsewhere but some of these haven’t so this will be the first of two posts covering (1) some of the potential problems using managed metadata (this post), and (2) a robust way of provisioning SharePoint 2010 managed metadata fields.
SharePoint 2010 column default values missing
Default Column Values
SharePoint 2010 has some great document management enhancements. One of these is the ability to set location based metadata defaults. This allows you to specify default metadata for documents based on the document library or folder they are uploaded to (i.e. a document could be automatically tagged with Subject=Legal when uploaded to one folder or Subject=Finance if uploaded to another). This is especially useful in situations where users are bulk adding documents that need to have the same metadata applied.
The Problem
I was showing a developer this feature recently when I noticed that on one particular library the column default settings were not applied. The settings were available and I could set the properties correctly using the default column values page but when we tried… Continue reading SharePoint 2010 column default values missing »
VS2010 list definition template missing file dialog view
When you use the Visual Studio 2010 SharePoint List Definition template the view that is rendered in file dialog boxes when opening and saving Office documents is blank. This causes a loss of functionality if you are creating custom document library definitions as you cannot navigate folders or use metadata sorting in the dialog window. Thankfully there is a relatively easy fix as described in the article.
Instant SharePoint Health Analysis
The SharePoint 2010 Health Analyzer provides a great way of identifying installation problems but it can take days or weeks before a full set of results appear. When installing a new environment it can be helpful to get instant feedback on any health issues so they can be resolved before users start using the environment. This post shows you how to run all the health analysis rules instantly using PowerShell so you get an instant health check.
Displaying files from a specific folder using SPDataSource
This is a short post to show how you can use the SPDataSource to display items from a specific folder in a SharePoint document library. While the other parameters are fairly well documented on MSDN this isn’t very clear. Generally I don’t recommend the use of folders to separate data, I prefer a metadata based approach. In some cases, however, it makes sense such as when you need to manage permissions or approval for a group of documents (especially in SharePoint 2007 where you don’t have document sets). Looking at the parameters we can use (as shown below) to identify and locate the data it would appear that passing the name of the folder to the RootFolder property would achieve this. Continue reading Displaying files from a specific folder using SPDataSource »
Creating custom parameters for a SPDataSource
The SPDataSource is a great control for retrieving data in SharePoint. You can query a single list, multiple lists/libraries or webs and bind the data to any ASP.NET data bound control such as a Repeater, ListView, GridView or DropDownList as well as the DataFormWebPart if you want to control the output using XSLT.
You can also pass in parameters for your query such as the ListName or WebUrl using the parameter classes provided by ASP.NET such as the QueryStringParameter and ControlParameter class. As these are all generic ASP.NET controls, however, there is no way of using SharePoint specific information such as properties of the current page, or information from User Profiles. For example it isn’t possible to use this on a SharePoint publishing page and use a metadata… Continue reading Creating custom parameters for a SPDataSource »
Study resources for SharePoint 2010 exams
Last month I took all four of the beta SharePoint 2010 exams and I’m pleased to announce I received notification this week that I passed the lot. With the new certifications this means as well as gathering two more Technology Specialist certifications I’m a Microsoft Certified Professional Developer in SharePoint 2010 as well as a Microsoft Certified IT Professional in SharePoint 2010.
The format has changed since 2007 where the exams were split by SKU/license type and now have a more Developer vs. IT Pro split, and within that a Technology Specialist (TS) and PRO exam. So there are no specific SharePoint Foundation exams – they all cover the full feature set but the PRO exams are targeted at a higher level than the TS e.g. PRO is aimed at dev team leads/senior administrators. The exams have now been fully released and are available for booking via Prometric but there still isn’t a huge amount of material out there so here are some pointers to get you started (with some tips from the Microsoft Learning exam webcasts). Continue reading Study resources for SharePoint 2010 exams »
SharePoint 2010 Web Parts by License Type
The official SharePoint site contains a comparison of the features in each SharePoint 2010 edition but does not include specific details on what web parts are available for each SKU/license type. This is useful to know when choosing between Foundation vs Standard vs Enterprise, as this additional functionality may be a good reason to upgrade (or turn on these features for specific users). It is also useful to know these as a developer or solution architect so you don’t custom develop something that has already been built and tested by Microsoft – something that I often see happen.