Tag Archives: SPD

Microsoft SharePoint is not supported with version 4.0.30319.296 of the Microsoft .Net Runtime.

Problem

You try to configure SharePoint Diagnostic Studio for SharePoint 2010 and get the following error:

Microsoft SharePoint is not supported with version 4.0.30319.296 of the Microsoft .Net Runtime.

Solution

This occurs when you have Microsoft Windows Management Framework 3.0 (KB2506143) installed on your SharePoint server.

Note that if you installed this update, SharePoint 2010 Management Shell will also fail to work correctly unless you add the PowerShell.exe -version 2.0 parameter to your shortcut.

The best thing to do at this point is NOT to install Windows Management Framework 3.0

To uninstall it,

  • Go to Start -> Run -> appwiz.cpl
  • View Installed Updates
  • Under the group ‘Microsoft Windows’, locate the Microsoft Windows Management Framework 3.0 update
  • Uninstall

You will have to restart your server after uninstallation.

Re-run the SharePoint Diagnostic Studio configuration again and the error should no longer appear.

Comments ( 0 )

InfoPath 2013 incompatible with SharePoint Designer 2010

Problem

You have InfoPath 2013 running on your computer. When you try to customize an InfoPath form template from a workflow in SharePoint Designer 2010, nothing happens. The form does not open in InfoPath.

Work-around

Install InfoPath 2010 along-side your Office 2013 installation and restart SharePoint Designer. Your form should now open in InfoPath 2010.

Comments ( 0 )

Get notified whenever a SharePoint workflow fails

Requirement

Get SharePoint to notify you whenever a workflow fails to start.

Solution

Configure a SPD notification workflow for the Workflow History list so that it sends you an e-mail every time a workflow fails to start. This is relatively simple to do and all you need is full control permissions to the site. Your SharePoint admin will also need to enable the use of SharePoint designer.

Open SharePoint designer and browse to the site.

Go to All Files -> Lists -> Select your workflow history list, by default this is “Workflow History”.

Right click on Workflow History and click Properties.

On the top ribbon, select List Workflow

Type a name for the workflow, e.g. ‘Failure Notification’.

Set up the SPD workflow like how it is in the following screenshot and set it to run on item creation only.

SPD Workflow

Configure your e-mail template so that it includes the “Primary item ID”, “Date Occurred” and “Description” field. This will help you identify which workflow failed so you can manually restart it again. It would be helpful to include the url to the workflow history list as well in your e-mail template. The URL should look something like:

http://site/Lists/Workflow%20History/AllItems.aspx

Click on Publish

Now whenever a workflow fails to start, you should receive an e-mail.

 

 

Comments ( 0 )

Re-assign a workflow task that is not assigned to you

Requirement

Allow certain users to re-assign workflow tasks in SharePoint.

Challenge

SharePoint by default only allows the assignee to re-assign the task. If you try to re-assign a task that is not assigned to you, you get the following message:

Task update was not accepted. To edit a task associated with a workflow task process, you must be the person to whom the task is currently assigned.

Solution

To overwrite this behaviour:

  1. Open SharePoint Designer
  2. Open the Workflow you wish to modify.
  3. On the step where you start the workflow task ‘Start <workflow task name> process on Current Item with…’, right click on the task name.
  4. Select Properties and look for the attribute TaskProcessOwner.
  5. Click on the ‘‘ button to select a group or specific user.
  6. You may wish to create a SharePoint group specifically for this purpose. All members of this group will have permissions to re-assign tasks that are assigned to other people.

Comments ( 2 )

Open link in SP Dialog from Global Navigation / Quick launch

Requirement

Building on my previous post about opening a link in a SP dialog window (similar to lightbox), we decided to make it so that clicking on the link under the quick launch or top navigational bar would open the page immediately in a SP dialog box. This is not possible out of the box, as SharePoint does not allow javascript in the links under the top navigation / quick launch. Here is our work around using Jquery/javascript.

The benefit of this for us is that users can now open the staff directory from anywhere on the site collection without leaving their current page as long as they have access to the top navigational bar.

Solution

This solution uses Jquery. Change the bits in bold to meet your requirements. If you want this to work on every page in the site collection, you will need to add this script to the master page. This script will:

  1. Load the Jquery library from your SharePoint site collection.
  2. Check if the link being clicked leads to a page called ‘staffdir.aspx’.
  3. Open the link to the page (http://path/to/staffdir.aspx) specified under in a SP Modal Dialog.

<script type=”text/javascript” src=”http://path/to/jquerylibrary/jquery-1.4.4.min.js”></script> <script type=”text/javascript”> $(document).ready(function(){ $(“a[href$=’staffdir.aspx‘]”).click(function() { SP.UI.ModalDialog.showModalDialog({ url: “http://path/to/staffdir.aspx“, title: “Staff Directory“, allowMaximize: true, showClose: true, width: 1200, height: 768, dialogReturnValueCallback: function (dialogResult, returnValue) {}});   return false; }); }); </script>

 

Comments ( 0 )