Thursday, August 2, 2012

Workflow shows Due by 1/1/0001 12:00:00 AM

If you have configured a workflow in SharePoint 2010 and didn't provide a fixed due date (which is usually the case), the email that the workflow sends has a due date as below

Due by 1/1/0001 12:00:00 AM

Looks like a MS bug.

To fix it, follow the steps below:-

  1. Open the site in SharePoint Designer.

  2. On your left panel, click on Workflows

  3. Click on the specific workflow and click on Edit Workflow

  4. Click on the process name. Example below. In this case, click on "Approval".

  5. You will get the next screen. See below. Click on "Change the behavior of the overall task process".

  6. You will get the below screen


  7. The value that is configured in the workflow shows 1/1/1900 8:00:00 AM but in the email we get 1/1/0001 12:00:00 AM. A bug ??

  8. What I did to fix it is to change equals  to less than as shown below.


  9. Problem fixed :-).

  10. In your next email, you will see "Due by None" instead of "Due by 1/1/0001 12:00:00 AM"

1 comment:

  1. Agreed it's a good way to get rid of it (in a sense), but how is this a fix? If due date is displayed as 'None' you might as well take out the related IF statements.

    However, I need the emails to show the actual due date, unfortunately I can't seem to attach it properly as there is no drop down selection for current task.

    Do you have any other suggestions? I would agree with you that this is a MS Bug.

    ReplyDelete