.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Custom VS2008 Workflow "An error has occured in Workflow" - Error Occured

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :SharePoint

The problem: a custom workflow associated with InfoPath form in a document library on SharePoint 2007 fails to fire on the new server. We get "Error Occurred" as workflow status every time.  History Logs are not informative, here's one example:


Travel Workflow

View Complete Post

More Related Resource Links

An error has occured in Workflow name ?

My library setting- Workflow settings - "Cancellation & Error Report" : Description shows An error has occured in Workflow name. My question is : 1. What is the meaning of the above error? 2. how can i see the detail description of this error? 3. Why this message is coming? Thank in advance for your reply, Justin  

Error Occured during workflow

Hi, i have created a workflow using VS2010 and deployed in SP2010 but while running the workflow its giving me a status message " ERROR OCCURED" my scenario is :  once we upload a document in library it should be copy to another site's or sub site's document library.  can i create a workflow using SPD2010 for this requirement? let me know if anybody have answer.   thanks share2010        

Custom Workflow Error: The Workflow files were saved but cannot be run


Hi all,

I'm wondering if someone would have any suggestions on how I can troubleshoot this custom workflow issue.

Recently we can't attach any SharePoint Designer workflow to any list in a farm. We get this error message:

"Errors were found when compiling the workflow. The workflow files were saved but cannot be run. Unexpected error on server associating the workflow"

The standard workflows from UI seems to be working fine. Also user defined workflow is enabled. In the past I was able to fix similar issue with another farm following this post (remvoing SP designer custom workflow activities entries)- but does not look like this is the case this time.

Nothing in the logs regarding this error. Any suggestions would be greatly appreciated.

Many thanks!


how to create a custom task content type for VS2008 workflow



i want to create a WorkFlow by VS2008 and i want to use custom content type for the tasks, and i want to build this cutome content type by Aspx form but i don't know how, any ideas ??


Thanks for all.

Error in my custom Workflow


Hi All,

I am getting the following error in my custom workflow, and work flow history list displays Workflow name failed to run

Please help me on this.

05/16/2008 10:29:54.70 w3wp.exe (0x1EC4)                       0x1AD4 Windows SharePoint Services   General                                0                Unexpected       ERROR: request not found in the TrackedRequests. We might be creating and closing webs on different threads. ThreadId = 1, Free call stack =    at Microsoft.SharePoint.SPRequestManager.Release(SPRequest request)     at Microsoft.SharePoint.SPSite.Close()     at Microsoft.SharePoint.SPSite.Dispose()     at Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventReceiver.AutoStartWorkflow(SPItemEventProperties properties, Boolean bCreate, Boolean bChange, AssocType atyp)     at Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventReceiver.AutoStartWorkflow(SPItemEventProperties properties, Boolean bCreate, Boolean bChange)     at Microsoft.SharePoint.Workflow.

Literal Error when trying to pass custom types to my workflow



I have a simple procedural workflow that determines how to assign a real estate lead to an agent. It takes three input parameters, and 1 output parameter. The only unusual aspect of this activity, (if you call it unusual), is that I'm passing in complex objects rather than types. I've created a lead and agent objects like this:

    public class LeadProxy
        public int PK { get; set; }
        public int Amount { get; set; }


    public class AgentProxy
        public int PK { get; set; }
        public int Senority { get; set; }
        public int CurrentLeadCount { get; set; }

My current input arguments are:

    <x:Property Name="Agents" Type="InArgument(scg:List(local:AgentProxy))" />
    <x:Property Name="Lead" Type="InArgument(local:LeadProxy)" />
    <x:Property Name="AssignToAgent" Type="OutArgument(local:AgentProxy)" />

Error retrieving Workflow Properties in a Custom State Machine Workflow WSS 3.0

Using Visual Studio 2008 and the Office 2008 State Machine workflow template, I created a VERY SIMPLE workflow with ONE state. In the state initialization, I create a simple task. This works fine when I hard code the title, etc for the task. But, when I need to get some properties out of the list where the workflow was started, I get an exception  I've done this in a sequential workflow and it works fine. Error is: "Value cannot be null. Parameter name: uriString. Code snippet is:

using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Workflow;
using Microsoft.SharePoint.WorkflowActions;

namespace SOPProjectWorkflow
    public sealed partial class Workflow1 : StateMachineWorkflowActivity
        public Workflow1()

        public SPWorkflowActivationProperties workflowProperties = new SPWorkflowActivationProperties();
        public Guid

Error Occured - Three state workflow



I faced this issue and was able to resolve it. I am hoping this will
be helpful to someone who might get into trouble using the default
three state workflow.

I created a list and tried to use the default Three state workflow.
The workflow was enabled to start as soon as a new list item was
created. It started and the status was "Error Occurred". Being a Java
guy I didn't know where to look for this error. I checked the Event
Viewer but not much help. Is there a log file for Project Server

Here is the reason why this happened. I had to go through most of my
fields in the custom list to understand what was causing this problem.

I had a field called Owner and I had enabled this option "Allow
multiple selections: ". This caused something to break in the
workflow. I am assuming it cannot handle a Person/Group field that
allows multiple selections even though none of the list items actually
had multiple persons selected.

Hopefully this will help someone in the future if they enable any
Person/Group field to have multiple selections.

Creating a custom Workflow + Custom workflow task + complete = error


Hi everyone,

I am using a custom workflow in SharePoint 2010, with one task in it using a Custom Content type deriving from the "Workflow Task" type, with a custom Edit form.

From this point everything is fine, I can create my Task, open it from the task list with my custom webpage as form, but when I want to update my task to complete it, i get a very weird message that I didn't find any help about: "The workflow's parent item associated with this task is currently in the recycle bin, which prevents the task from being completed".

I Just have my Custom workflow using a Custom Workflow task, I don't see where this should come from... I even looked in the Recycle Bin, but it was empty as I was thinking it would be...

Any chances someone got a solution on this?

Cheers, Ben

Access Denied error when attaching VS2008 workflow debugger to 64-bit IIS if VS2008 user differs fro

I am trying to attach VS2008 to debug a workflow hosted in IIS (using the workflow debugger option so I can step through the visual workflow designer breakpoints, not the managed code debugger).  It is actually a WF 3.5 WCF workflow service hosted in IIS but I don't think that is the issue.  When I attach from VS2008 I always get the error "Unable to attach to process.  Access is denied."

I can attach for managed code debugging no problem.  Also, if I configure the IIS worker process app pool to use the same account as the account I am running VS2008 under I can attach not problem and debug using the workflow debugger.

So my remaining problem is that I would like to be able to attach while running VS2008 as my normal user account and leave the w3wp.exe app pool running as the usual networkservice account so that my debugging represents how the w3wp.exe will act in production.  I'm on Vista SP1 64-bit with .Net 3.5 SP1 and VS2008 SP1. 

Q: Is there a special privilege I can grant the worker process account so that I can debug while using a different user account?

I saw a very old post here http://blogs.msdn.com/sonalic/archive/2006/05/10/594703.aspx that hinted there is something special for 64-bit.  Does anyone know if there is something special about 64-bi

Error: Workflow Custom Activity



I have a custom activity, which is available under Designer Actions.
I can see and set parameters. However on the Finish step, I encounter following error:

Errors were found when compiling the workflow. The workflow files were saved but cannot be run.

On clicking Advanced, I get this:
(14, 47) The type name 'SendMailWithAttachmentActivity' does not exist in the type 'SendMailWithAttachmentActivity.SendMailWithAttachmentActivity')

Here is Action tag:

   <Action Name="Send Attachments"
      Assembly="SendMailWithAttachmentActivity, Version=, Culture=neutral, PublicKeyToken=ff5f77ebcbc6469d"
      Category="Email Actions">
      <RuleDesigner Sentence="Send Attachs to %1 besides %2">
        <FieldBind Field="EmailID" Text="people field" Id="1" DesignerType="TextArea"/>
        <FieldBind Field="Junk" Text="enter jun

Custom Workflow deployed:Feature activation error:The file or folder name contains characters that a



I am migrating custom workflow which was running in moss 2007 to SharePoint 2010.The approach was i created a new Sequential workflow project in VS 2010 under sharepoint . then i copied my Workflow files.Removed old refernces to 12 hive and updated to 14 root.

I could successfully buid this project.Then i have added Module project item called 'Forms' where i placed my Intiation form which is a infopath published form to nework location.

I could package and deploy the solution.But facing an error while Activating the feature.the error is The file or folder name contains characters that are not permitted.  Please use a different name.


Any help will be highly appritiated



Ram kiran


Custom WorkFlow using VS 2010:Error while deploying workflow from VS 2010



I am migrating custom workflow which was running in moss 2007 to SharePoint 2010.The approach was i created a new Sequential workflow project in VS 2010 under sharepoint . then i copied my Workflow files.Removed old refernces to 12 hive and updated to 14 root.

I could successfully buid this project.Then i have added Module project item called 'Forms' where i placed my Intiation form which is a infopath published form to nework location.

I could package and deploy the solution.But facing an error while Activating the feature.


Any help will be highly appritiated



Ram kiran



Access Denied error on custom workflow task list item


We have created a two level custom approval workflow on (an InfoPath) form library using SharePoint Designer (SPD) with first and second approver. The workflow works fine as long as the approver is in the Site Collection Administrators group. The approvers who are not in the admin group can get to the custom Task form for approve/reject, but they can only view the form. When they click on the “Edit Item” button of the task list item, they receive “Access Denied” error. We have given these approvers “Approve”, “Contribute” permissions on the Form library and even Full Control on the task form list (all items). Note: The users use their domain account and the error they are getting is: Access Denied, You are currently signed as DomainName\LoginName, Sign in as a different user.

We have read through several forums and have found people having the same issue. We tried all of the suggestions described in the following links - but no success so far.

SharePoint Designer Workflows, Tasks, and the Annoying “Access Denied” Error

Inconsistent error message on Custom Workflow.


Recently on custom workflows I've been getting this error message when trying to navigate to you a custom task form on a workflow.  I had to enable logging to see it instead of "Unkown Error." 

Only Content controls are allowed directly in a content page that contains Content controls.   at System.Web.UI.FileLevelPageControlBuilder.AppendLiteralString(String text)
   at System.Web.UI.TemplateParser.ProcessLiteral()

This message only occurs randomly and if I hit refresh a few times the task form will display.  This message occurs in two custom workflows. I'll start testing the out of box workflows and see if this message comes up.

Activation error occured while trying to get instance of type Database, key "DBName"


Im using Enterprise library 5.0
I have a scenario, where I have to access two different databases in my application.

Basically this application is a webservice,delployed on my local for testing purpose.
I'm trying to access this web method from diffent windows application, default connection works fine but the other database throw's exception.

Problem is only my defaultDatabase is works fine, if I change defaultDatabase="MYCON1" with "MYCON2" it works fine, if I try to access the other database which is not default, throws exception.

<dataConfiguration defaultDatabase="MYCON1" />
<add name="MYCON1" connectionString="Data Source=server1;Initial Catalog=dbName1;User Id=Username1;Password=password1;"

" />
<add name="MYCON2" connectionString="Data Source=Server2;Initial Catalog=dbName2;User Id=Username2;Password=password2;"
providerName="System.Data.SqlClient" />

Database myDB=EnterpriseLibraryContainer.Current.GetInstance<Database>(); --> works fine for the default database (MYCON1)

Database myDB=EnterpriseLibraryCo

Custom Control Design-Time SiteMap Provider Error


Greetings - I was referred here by MSDN forums hope this is the right place -  

I have a custom control (:WebControl) that renders web.sitemap in a specific way. While it runs error free and produces the expected result, at Design-Time it complains

Error Creating Control - MyControl  The provider 'AspNetXmlSiteMapProvider' specified for the defaultProvider does not exist in the providers collection.

I have discovered that the error is cause by this line of code:

string div = string.Format("<div class='{0}' id='{1}'>{2}</div>", this.CssClass, this.ID.ToString(), EnumerateNodesRecursive(SiteMap.RootNode, level));

or more specifically, by the reference to SiteMap.RootNode - I am not clear what is missing thoough because I have configured the SiteMapProvider in web.config as this:

        <add name="AspNetXmlSiteMapProvider" 
             type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend