Archive for October, 2010

17
Oct
10

Due to heavy load, the latest workflow operation has been queued. It will attempt to resume at a later time.

I’ve been doing some deep diving into globally reusable workflow creation with SPD 2010 and am beginning to hit a number of errors and "notes."

In this case, I have been attempting to copy and modify the OOTB Publishing Approval workflow.  I’ve added a pair of parallel approval tasks prior to the standard approval task and have modified the start-up form to display my country approval groups in several country drop-downs. 

image

Whenever I start the workflow I tend to get this "note." 

Due to heavy load, the latest workflow operation has been queued. It will attempt to resume at a later time.

image

I can only assume this means it has been serialized in the database and is now subject to the timer jobs.  My biggest problem at the moment is that I’ve been unable to approve either of the tasks that were assigned in parallel.  If I use the task email that was sent, I get this nice error.

An error occurred while retrieving the workflow task details.  This may be caused by:

  • Not having connectivity to the server
  • The task no longer exists
  • You do not have permission to access the task.

I don’t think contacting my system administrator is going to make this any better, so I’ll go directly to the task list.

image

UPDATE:  Found that the SharePoint site needs to be in the Local intranet sites in order for this to work.

image

 

Oops!  That’s an error.  Not really sure what to do about it and I don’t have the time to mess with it at the moment.

image

16
Oct
10

Deleting a Globally Reusable Workflow that was Created by Copy and Paste

Here’s a good thing NOT to do.

  • Open SPD 2010 at the site collection level and go into the workflow assets.
  • Make a copy of the Publishing Approval workflow using copy/paste.
  • Decide that you really didn’t want to do it that way and delete your copy of the workflow.
  • Amazingly, all the Publishing Approval workflows are deleted.
  • Close SPD, thinking that this must be a user interface glitch.
  • Open SPD and verify that the workflows have indeed been deleted.
  • Start working on a way to get the Publishing Approval workflow back.
  • If you don’t have a lot of customized WFs yet, deactivate and reactivate the Publishing Approval workflow.
  • Use "Copy and Modify" in the future.

 

image

 

image

image

15
Oct
10

Let’s Make a Clickable Image Map Using SharePoint Designer 2010

…and I do mean Map!

Get your base image and copy it to the clipboard.  I’m going to use a map of the world.

image

On the asset-based navigation in SPD 2010, you’ll need to navigate to an object that will allow you to create an HTML file in it.  Here I’m using Site Pages, but you could also select All Files.  You probably want to save it somewhere so you can modify it later, if need be.

image

Open the file (Untitled_1.html) for editing.

image

Delete the HTML that came with the new page.

image

Paste your image into the page.

image

Click on the map image and then select Format under Picture Tools.  You’ll now have access to the Hotspot tool.  Select either the Polygonal, Rectangular or Circular Hotspot drawing tool.

image

Using your coloring skills you learned in Kindergarten, trace each of the areas you want to hotspot.

image

When you close the polygon, you’ll get a dialog where you can enter the address that the hotspot is linked to.

image

Copy all the source to the clipboard…

image

…and paste it into the HTML view of a content editor web part.

image

You should see it displayed with the regions visible.

image

The finished product.  Hovering over an area will give you "the hand" and clicking will take you to your hyperlink.

image

15
Oct
10

Can’t Edit Page Layout in SharePoint Designer 2010

Are you having issues opening a page layout in SPD 2010 for editing?  Is everything highlighted in yellow?  John White has a good explanation of what your problem probably is.  You need to edit the file in Advanced Mode.  What’s Advanced Mode?  It’s opening the file so you can really edit it instead of opening it in a mode where you can’t edit it…even though you clicked on Edit File.  Perhaps it should be called "Really Edit the FIle"  (That was supposed to be tongue-in-cheek humor).

What’s interesting is sometimes you’ll be asked if you want to open the file in Advanced Mode and other times the file will open in "read only" (yellow) mode.  Call me old fashioned, but when I click Edit File, I intend to edit the file.

image

Right-click the file and select "Edit File in Advanced Mode."

image

Or, with the File Information screen displayed, select the Edit File drop-down and click on "Edit File in Advanced Mode." 

image

Either way, you’ll be able to edit the file, as you probably intended to do in the first place.

 

Search Keywords:

Can’t edit file in SharePoint Designer 2010

Can’t edit page layout in SharePoint Designer 2010

Page is locked for editing in SharePoint Designer 2010

After copying and pasting a page layout it can’t be edited

Edit File in Normal Mode vs. Edit File in Advanced Mode

05
Oct
10

Getting failed emails to send in SharePoint 2007 custom workflow

We experienced a very frustrating issue with sending emails in SharePoint 2007 custom workflows.  The error we received was

The e-mail message cannot be sent.  Make sure the outgoing e-mail settings for the server are configured correctly.

First, a little background…

We had assigned a number of tasks upon employee  termination, such as “Collect badge”, “Revoke UNIX access”, etc.  There were about a dozen of these tasks assigned when the termination was entered.  When each task was assigned, a separate workflow was initiated to send the email to the person responsible for completing the task.  For example, someone in the Facilities group was responsible for collecting the employee’s badge.  The majority of the time, the email was sent and the logging indicated success.

image

… but sometimes, we received the error and could not determine why.  The issue was sporadic.  Sometimes all 12 emails would be sent successfully.  Other times, maybe 2 or 3 emails would fail – never consistently the same workflow processes.   

clip_image002

Is it possible that with this many emails we had a conflict issue of some sort?  Maybe… but 12 concurrent emails doesn’t seem to be an unreasonable number!

A quick look at the SharePoint logs during the time of the issue did not point us to an obvious problem with the workflow logic or the email settings. 

We stumbled upon a work-around quite by accident…

One of our workflows worked a little differently.  We had it set up to pause for some time after the initial email attempt.  It was in this process where we found that if the email was not sent properly, then within 30 minutes or so after the pause, the SharePoint timer job kicked in and took action. The timer job determined there had been an issue and restarted the workflow from the top, rerunning the logic to send the email.  With the delay built in, that workflow never had an issue sending the email.

This prompted us to add a 2 hour delay at the end of all of our email workflows to ensure we had plenty time to get the email sent appropriately.

image

The 2 hours is probably overkill, as it seems to consistently require only 30 minutes or so to eventually send the email (the timer job gets kicked off in our shop every 30 minutes).  Since there is no additional processing after the pause, it doesn’t hurt to include it in the logic.

A simple delay fixed our issue!  Since we have added the delay, all emails have been sent.

image




Asif Rehmani’s SharePoint Videos

SharePoint-Videos

Click to access a wealth of SharePoint videos

SharePoint Rx

SharePoint Rx Home

Categories

Posts by Date

October 2010
M T W T F S S
« Sep   Nov »
 123
45678910
11121314151617
18192021222324
25262728293031
Support Wikipedia