Skip to content


Unable to remove Cc person from SharePoint 2007 Workflow in SP 2010

Wow I haven’t posted anything all year. It’s about time by now.

I have been doing a large migration (2007 -> 2010) for a global company for a while. Some workflows were migrated and we have had some problems with them.
This problem appears if you migrate a site from 2007 to 2010 and also if you upgrade. 

One of the problems is that once adding someone to the cc field (notify others section) you are unable to remove everyone again.

I get this error if I try:

The form cannot be submitted because it contains validation errors. Errors are marked with either a red asterisk (required fields) or a red, dashed border (invalid values). Field or group: my:CC Error: One or more names entered could not be resolved.

According to Microsoft the reason is that the 2007 WF uses a data validation rule that is not supported in SharePoint 2010.

Microsoft has 2 solutions.

Solution 1:
To work around this problem, you must cancel the Start Workflow form and then restart the workflow, and you must leave the CC field blank. Then, you can start the workflow.

Solution 2:
To work around this problem, you must delete the workflow from the list or library and create a new one with the CC field left blank. Then, you can start the new workflow. 

 To be honest I don’t understand what Microsoft means in solution 1. Seems like the workflows are meant to be restarted.

 

In my case any kind of restart of workflows or deletion of them was a big no no.

The forms libraries and their workflows had given us way to much trouble already because of the lack of options for migrating running workflows (Metalogix can only do it if allowed to write directly to database, and Quest appears to not be able to at all).

Our solution was to add an account to cc (notify others section) that did not have an e-mail address. 

No errors so far.

 

 

DeliciousDiggTwitterFacebookLinkedInStumbleUponNewsVineTechnorati FavoritesSlashdotShare

Posted in SharePoint 2010.


Insert Picture From SharePoint Button Disabled /Greyed Out – SharePoint 2010

I recently did a small post on how to troubleshoot when the Multiple Items upload button was disabled / greyed out.

Today I got a question about why the Insert Picture From SharePoint button was disabled.

Turns out this is a much simpler task to fix.

Basically the Insert Picture button is only active when you are editing Publishing Pages and Enterprise Wikis.

The button also only works if you have activated SharePoint Server Publishing feature and the SharePoint Server Publishing Infrastructure feature.

 

 

DeliciousDiggTwitterFacebookLinkedInStumbleUponNewsVineTechnorati FavoritesSlashdotShare

Posted in SharePoint 2010.


3 Ways To Reorder Views in SharePoint 2010

A customer had created a huge amount of list views for a large custom list. That’s a good thing. It means they didn’t just created folders :-) .

They created the views in a random order, but prefixed a number to the view in order for the views to control the order the views are shown by default in SharePoint 2007. 

This is all good so far, but after the migration I had a facepalm moment: SharePoint 2010 does not order the views alphabetically like in SharePoint 2007. 

In 2010 the views are ordered by the creation timestamp.

There is no apparent way to just reorder them, which i find to be a mistake.

There’s only really two things you can do and that is recreate the views in the order you want them represented or change the timestamp in the Content Database.

The 3 approaches

There’s 3 approaches that I know of:

1: Update the creation date in the Content Database.

Oh noes, you shouldn’t do this. Directly editing the SharePoint databases is a no no.

2: Use PowerShell to clone the views, and then delete the originals.

Techie and fast, but needs us to do it for the users.

3: Use the GUI to copy the views, and then delete the originals.

Users can do this themselves. Not that I am lazy, but if it’s only a couple of views, there’s point in having other people do the work for you.

Personally I would prefer the last solution, since that one lets the content owners do it themselves. It would depend upon how many views there is of course. Asking the content owners to re-create 100 views is a bit much, but 5-10 views should be no problem at all.

I will point you in the right direction with all 3 approaches.

1: Update the creation date in the Content Database

I got this solution here and will only list it in summarized form. To view it in details head for the blog post.

A: Find the List ID for the list that contains the views

You can do this by opening up any view in the list, and then copy the GUID which you can find in the mobile view text right above the bottom OK and Cancel buttons.
Copy the text between the List= and &View= snippets. It should look something like this:
5ed04d31%2D9eb6%2D4dae%2D9f12%2D6f41bfb4871a. Replace the %2D’s with a dash (-) like this:   5ed04d31-9eb6-4dae-9f12-6f41bfb4871a

B: Start up your SQL Management Studio. Go to the correct content database and open up the AllWebParts table. 

Create a new query and use this SQL Query snippet:

SELECT *
FROM [WSS_Content].[dbo].[AllWebParts] 
WHERE tp_ListId = 'Your List ID'
AND tp_Deleted = 0
ORDER BY tp_CreationTime

This will output table rows with views in the exact same order as the views are shown in SharePoint 2010.

You can then alter the creation date to change how they are sorted. 

This isn’t exactly the most risky operation around, but I would prefer other solutions anyway. Maybe because I have no SQL mojo.

2: Use PowerShell to clone the views, and then delete the originals.

The previous blog post also has a PowerShell code to do this and you can also see a MS employee list a script here.  Basically it clones views and deletes the old ones.

To be honest, I haven’t tested these solutions yet, but it will work given the right PowerShell code.

Feel free to test the scripts.

3: Use the GUI to copy the views, and then delete the originals.

This is the one I prefer for most situations, since it’s fast, not error prone, and everyone can do it, so you can even send the solution to end users.

For each view in the list do the following, and please remember to do it in the order you wish to create them.

A: Rename the view – maybe just append a character.

B: Click Create View in the View Selector drop down list.

C: Look at the Start from an existing view for the view you wish to rename and click it. This is the real timesaver, and only reason this is a plausible solution.

D: Name the view the original name. This is important in case any users have links directly to the view page.

That’s it.

If you have a better solution, or feedback, don’t hold back! 

DeliciousDiggTwitterFacebookLinkedInStumbleUponNewsVineTechnorati FavoritesSlashdotShare

Posted in SharePoint 2010, Uncategorized.


SharePoint 2010: How To Move All Web Parts Out Of The Page Contents Zone

I am migrating a lot of sites using the Metalogix SharePoint Site Migration Manager 2010 and there’s always something to clean up after a migration.

Some of the issues are due to the code that provisions the empty sites on SharePoint 2010, and some of it is the migration tool.

One of the issues I have encountered was that in the current build (can’t remember version right now), then all web parts are moved into the Page Contents zone when the publishing pages are migrated. That was a huge time sink for the front end guy who cleans up the pages after the migration.

The problem is that you can’t just drag web parts out of the Page Contents and vice versa and you are forced to add all the web parts again, and configure them.

In the last build of the Metalogix tool it always placed the web parts in the right most Web Part Zone. That was perfectly acceptable.

Since I already made a tool to clean up some of the mess caused by the provisioning code and the migration tool, I might as well add a step to move the web parts out of the Page Contents zone.

Continued…

DeliciousDiggTwitterFacebookLinkedInStumbleUponNewsVineTechnorati FavoritesSlashdotShare

Posted in SharePoint 2010.


How to redirect lists and other content using a Content Editor Web Part (CEWP)

I was asked to make a quick and dirty redirect from a list in SharePoint 2007 to the lists new place in SharePoint 2010.

Redirecting to another page can be easily achieved by using a content editor web part, and a little snippet of html and perhaps a bit of javascript.

Our redirects are normally done by using a httphandler that looks through a master list of sites and then it will look for a redirect date and redirect if there’s both a old and new address. This httphandler only handles site collection level redirect and everything  in it. This means it can’t handle a redirect for just a list.

The simples way to redirect a list or some other page is to simply add a Content Editor Web Part to the page in question.

For Lists you need to add it to all the views of the page. It’s certainly not perfect, since users can still access items by a direct url and also using office applications etc.

Here’s how to do it:

Continued…

DeliciousDiggTwitterFacebookLinkedInStumbleUponNewsVineTechnorati FavoritesSlashdotShare

Posted in MOSS 2007, SharePoint 2007, SharePoint 2010, WSS 3.0.


Can’t Change Page Layout: This Control Is Currently Disabled

A couple of days ago a colleague had trouble changing Page Layout on some newly migrated pages for some reason.
The control was disabled and had the awfully familiar error message as seen in the title.

This usually happens if the user does not have enough permissions to change the Page Layout, but it only required read permissions to the master page library, and off-course contribute rights to the page you are editing.
My colleage had the right permissions so a bit of experimenting was in place.

It turned out that sometimes the page just needs to “refresh” a bit.
Try the steps below which worked just fine for me.

1: Make sure the page is checked out and you are editing it.

2: Click the Save & Close dropdown arrow to show more options.

3: Click Save and Keep Editing

The page will now refresh, and it seems to work most of the time for me.

 

DeliciousDiggTwitterFacebookLinkedInStumbleUponNewsVineTechnorati FavoritesSlashdotShare

Posted in SharePoint 2010.


How to enable paging on the User Information List views

I have been on a large migration project for the last few months, and the way it is done is a little bit complex at times.
Several companies have contributed to the process. I mainly do migration with Metalogix Migration Manager, bug fixes and whatever else is needed.

The migration is done by having a large custom list, with the urls, template info, owner info etc on all sites to be migrated, and then a workflow is run for each listitem.
This provisions sites from site templates and runs some custom code, to add default groups etc.
This custom code is done by an external company, and it has been problematic and buggy. 

Somehow, somewhere something goes wrong with the views for the User Information List. The views loose their paging and instead limits listitems shown in the views to 30 items. This is not a general SharePoint problem, but caused by the workflow code being run. Since I am already making some cleanup code to be run on all sites after the migration, I might as well do the view fixes too.
The problem occurs on all 3 views of the User Information List, and 1 of them is hidden as well.

Continued…

DeliciousDiggTwitterFacebookLinkedInStumbleUponNewsVineTechnorati FavoritesSlashdotShare

Posted in SharePoint 2010.


Hide List Column Headers / Titles In List View Web Parts

Often times clients ask how to remove the column headers of lists. I will show how to do this using CSS, Javascript, JQuery and SharePoint Designer 2010.

Do however keep in mind that the different aproaches will affect the result somewhat.

If you add CSS, Javascript or JQuery to the page with the list view, you will loose the view selector drop down list in the bread crumb trail.
If you edit it with SharePoint designer, you will end up with a customized page (unghosted).

I will show both approaches and then you can decide for yourself.

Below you can see the list with the list column headers showing.

Hide List Column Headers - Column Headers Showing

Continued…

DeliciousDiggTwitterFacebookLinkedInStumbleUponNewsVineTechnorati FavoritesSlashdotShare

Posted in SharePoint 2010.


Upload Multiple items disabled – SharePoint 2007 and 2010

I have had quite a few customers with this pesky Multi file upload button being deactivated, so there should be a lot of SharePointers out there scratching their heads.

I will explain a few of the common reasons.
Basically the only thing that is wrong is that an ActiveX component is missing or prevented from working.
The ActiveX component is called Microsoft Office List 12.0 (when using Office 2007), Microsoft Office List 14.0 (Office 2010) or STSLIST.DLL.

Main reasons for missing or blocked upload multiple files component:
1: Office Professional not installed. Regular version does not contain the component.
2: Office Professional installed, but not Microsoft SharePoint Services Support.
3: The ActiveX component is blocked in the browser.
4: You have remnants of an old office installation, and the computer is not sure what to do.

Try the steps below to fix it.

Continued…

DeliciousDiggTwitterFacebookLinkedInStumbleUponNewsVineTechnorati FavoritesSlashdotShare

Posted in SharePoint 2007, SharePoint 2010.


Open links in a new window – Sharepoint 2007 and 2010

Today I was asked how come you can’t just decide which links open in a new window.

In their company someone has made some calculated columns to overcome it. It turned out it wasn’t easy to use in normal web parts since it just spat out the html to the screen instead.

It’s by design but there is a simple way around it if you have publishing features enabled.

Normal Hyperlink / Picture field can’t be used.

1: Create a site column
Go to Site Settings -> Galleries -> Site Columns and create a new site column. Name it whatever you like and make it a “Hyperlink with formatting and constraints for publising”.

2: Add the column to a list
Go to list settings of the list you want the column.
Click “Add from existing site column” and choose the newly created column.

That’s it. When you add an url to this column you can choose to open it in a new window, and also you can let it show an icon if it links to an item.

DeliciousDiggTwitterFacebookLinkedInStumbleUponNewsVineTechnorati FavoritesSlashdotShare

Posted in SharePoint 2007, SharePoint 2010.




Page optimized by WP Minify WordPress Plugin