List of useful SharePoint redirect rules for URL Rewrite

Note: This article is in draft yet and I’m still working on it.

Sometimes after moving SharePoint content (files, lists, sites, etc.) to a new place, you need to keep old links working. Sometimes you need to force users to use HTTPS instead of HTTP by redirecting them automatically. In these kinds of situation you can use the power of IIS URL Rewrite extension to achieve your goal.

If you have never worked with this extension, you can have a look at my post about it: Walkthrough: How to keep old SharePoint links working after a migration.

This post contains list of URL Rewrite rules which can be useful for SharePointers.

Continue reading

  

Walkthrough: How to keep old SharePoint links working after a migration

In this walkthrough I’ll show you a way how you can keep old links to SharePoint content working after a migration of a site or part of its content to a new place. This solution can help you in different scenarios when you change the content URL, but don’t want to ask your users to update their links.

In my case, I used this approach when I did a migration of inherited SharePoint 2010 to a new server. During the migration there was an upgrade to SharePoint 2013 and total revision and reorganization of the content structure. A lot of files were moved to new libraries and folders, some department sites were split up, while others were combined. The main challenge in this migration was the strong requirement that all the old links should keep working. The requirement was fulfilled and by now it has already been working in production for about a year without any issues.

Continue reading

  

The SharePoint Community

SharePointCommunitymember

Hi colleagues!

Probably, some of you have already known about SharePoint Community and are already its members. Those of you who don’t know about it yet, should definitely at least take a look at it. It is a very fast growing community and it already has more than 3000 members. It has really nice articles, features and benefits.

One of the cool features I have been looking for since I started working on SharePoint was online chat with other SharePoint administrators and developers. This community has it! It is pretty active so you can talk with other SharePoint guys in real time!

Also it has a lot of benefits for members. Today, I was one of the lucky people and have won a prize. It is a book which was donated and written in part by Jasper Oosterveld. The book is called The SharePoint 2013 Handbook: An insight by the SharePoint community. I have not started to read it yet, but will definitely do that in a few days.

So, I invite you to join this awesome community, because it is really worth it!

You can feel free to add me as friend. This is a link to my profile.

Regards, Michael


  

Solution: error while opening a workflow in SharePoint Designer (Failed to load the workflow definition for the workflow)

Hi,

I have experienced this issue several times on different farms. After some manipulations with the workflow using SharePoint Designer or a web browser, occasionally, it started to be impossible to open published workflow. The others workflows continued to work as expected, whereas when I tried to open the one that started to misbehave it showed the following error message “Failed to load the workflow definition for the workflow”.

130620_01

 

Continue reading

  

My blog has been moved to the new domain sp2013.pro

Hi friends!

Several days ago I finally moved my blog to a new domain. Now its main location is  http://sp2013.pro. Old domain (http://sp2013-blog.com) and old direct links will be either accessible for about a year, but it is better to update bookmarks even now.

I have prepared quite a few interesting posts, but for a while they are only in my mind and in some pieces of code. :-) I hope I’ll find some time to publish them soon. So, stay tuned!

Regards, Michael.

  

Solution: SharePoint 2013 workflow. Custom task outcome always sets to default value.

Hi,
Yesterday I stumbled into an issue. My custom task outcome of SPD 2013 workflow stopped to function properly. It set to default value regardless of the Task Outcome I set programmaticaly in my custom ASP.NET task form.

My task settings looked as follows:

130604_02

But when I pressed “Reject” or “Approve” button in my form, my ApprovalOutcome variable set to “Approved”. When I changed Default Outcome to “Rejected” this variable set to “Rejected” regardless of pressed button.

Continue reading

  

Solution: The workflow contains errors, but they are not visible in the current view

Hi,

Sometimes when you work on workflows in SharePoint Designer you can not publish it, because the Check for Errors fails with the following mesage: “The workflow contains errors, but they are not visible in the current view”

130420_02

Usually in this case you really can’t see the place where the error is and it seems like everything is OK.

I spent some time to understand where the error is when I saw this error the first time. Most likely it is an issue in SPD; however, it is rather simple to overcome it and force SPD to show the place the error is.

The solution: you just have to save your workflow (by pressing Save button in the ribbon), close it and open it again (by selecting it in the Navigation\Workflows and pressing the “Edit workflow” link).

After that you should be able to see what fields are set incorrectly:

130420_03

You can press Check for Errors button to highlight all the errors with the red color:

130420_04

I stumbled into this moment several times after copying-pasting my workflow. It seems like this new feature works well in the most parts of the workflow, except the Transition to stage part. At least, in my cases after pasting I had to repair fields in the Transition to stage part only.

Regards, Michael.

  

Solution: Workflow cancels (System.ArgumentException: ContentTypeId)

Hi,

Yesterday I copied and pasted one of my 2013 SPD workflows to a new one. All passed well, but my workflow failed on the start with the following error:

130419_05

RequestorId: 1a9862c8-3314-4e2a-a3e8-85d79f2cd7c9. Details: System.ArgumentException: ContentTypeId 
at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) 
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) 
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

The words about ContentTypeId helped me to identify the cause of the issue quickly. In my new workflow task list defered from the one in the old. Hence, it didn’t have my custom task content types and WF failed when tried to create a task.

So, the solution is pretty simple: Make sure whether your task list contains your custom task content types. If you remeber that you have added them, check whether your WF uses that list (maybe your WF uses another one).

Hope it saves somebody some time.

Regards, Michael.