.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

Problem with custom workflow action (SP2010, SPD2010)

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :SharePoint
We have created an assembly containing 3 custom actions to be used in SPD. Everything works correctly; however every Change and Publish cycle requires me to recreate the lines (steps) containing the custom actions. It is simple mechanical replacement but still is a pain and i would like to figure this out. I've spent considerable time on this already with no solution in sight. Tried clearing out proxy cache (http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/34632798-6e45-4eb3-ad3d-2f941c706cda ) Also checked web.config for non-referenced assemblies.  

View Complete Post

More Related Resource Links

Custom Ribbon action using quick step for workflow

I created custom button using the quick step in ribbon, and configured to invoke a workflow. It shows start and stop page of workflow where I have to click start. How to start workflow directly from the ribbon without this redirection to page.  

Problem while creating task with custom content type in sharepoint workflow


Hi all,

I am trying to create task with custom content type in sharepoint statemachine workflow. But it is showing "Error Occured" after task creation code is excecuted. can anyone tell me what is the problem.

Task Content type


  <ContentType  ID="0x01080100A707C0079E8547c0A87515457DB90629"
      Description="Workflow Task"
      <FieldRef ID="{9da97a8a-1da5-4a77-98d3-4bc10456e700}" Name="MyComments" DisplayName="MyComments"  />
      <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
        <FormUrls xmlns="

Custom workflow action - send an email with blind carbon copy

Question: Is there any way that we can send an email with blind carbon copy (BCC) option? I know this feature is unavailable in the custom workflow action (in SPD-2007) but there is a requirement where I need to send an email without revealing other ids of other recipients. 

Problem validating StringBuilder fields in SharePoint 2010 Custom Workflow Validators


One of our custom SharePoint Designer workflow activities, which have always worked fine in SharePoint 2007, fails to validate.

This appears to happen when a Workflow Activity that contains a StringBuilder field also contains a lookup variable.

<FieldBind Field="CustomCode" Text="this code" Id="1" DesignerType="StringBuilder" />

For example when we store the following in this StringBuilder field

"Today's date = [%Current Item:Transaction Date%]"

This field returns 'null' in the ActivityValidator. As a result we cannot validate its contents.


Unable to create task using Custom task Process Action in Sharepoint Designer 2010 workflow

Problem : In Sharepoint Designer 2010, we are working on creating reusable workflow.
In workflow we are using "Start Custom task process" action. It has been observed that,all of the sudden it behaves weirdly. It creates task but without any number appending to taskform.for eg. when we create task it generally shows "Start Task(1) process on Current Item with these users" However now it does not provide any number with Task. It shows "Start Task process on Current Item with These users"
In task form , it does not allows to add task forms fields from existing fields nor allows to create outcomes.
Thus we are unable to create any new workflows or edit and enhance exisitng workflows in the site.This is showstoper for project. Client wants to use sharepoint designer exclusively to develop workflow.
When we tried to create workflow (Sharepoint designer) in a new site with new list it allows us to create custom tasks process. 
Resoultions approaches done so far.
1) Took backup of site on local box from Server and tried to create custom process task but not able to do it.
2) On Server removed all unwanted workflow status columns from the tasks list but still not able to create custom process task 
3) Took backup and t

Windows Workflow: Build Custom Activities To Extend The Reach Of Your Workflows


This article covers the core components required for building custom activities in Windows Workflow Foundation.

Matt Milner

MSDN Magazine December 2006

Sharepoint Wiki Custom Workflow


Has anyone done custom workflows for a sharepoint Wiki page? 

The workflow I'm trying to do is, whenever a new wiki page is created I want a new Discussion page  to be created for that wiki page?

Any Help?

Proper setup using Infopath and Custom Workflow using VS 2008



I have been struggling for a couple of days, trying to set up a decent
structure for an Infopath project using a custom workflow using Visual Studio 2008.

I had a solution with two projects:

1) Sharepoint 2007 Workflow

2) Infopath 2007 form w/code-behind.

I included the xsn, in the VS solution, but after a day or two,
something went wrong, and I lost some work. I still do not know what
happened, but I could not get my changes to persist afterthat  Doing research I have read that this
stucture, using Infopath xsn, within VS does not work correctly with Source
Control. I am using VSS.

So I since made a change to the set-up so that the .xsn (form template) is separate from
Visual Studio. However, I need to leave the code-behind in VS, since I need to debug

This is my latest problem. I have been unable to attach to the correct
process, as VS generates cachse files, and who knows what else.

My question is simple. What is the supported method for debugging InfoPath
code/behind, which uses a Sharepiont Workflow?

I just also want to say that one should not have
to spend a few days just trying to setup a working development environment.

This should be trouble-free, but it is far from being so. I

Infopath button click event in custom workflow code.


Hi All,

I have designed the infopath form(Init) and integrated with my state machine workflow. i want to access button click event (designed in Infopath form) in my workflow code.

Can you help me.




sharepoint workflow Problem


How to retrieve current User's Manager from the Sharepoint Profile. Acually i ve to create a approval workflow,wen the workflow initiate the request of approval should be go to the currnet user's manager.Ex- if You are the current user then Request should be go to Ur manager. and if i m the current user then request should be go to my manager?

Thanks in Advance

Problem with SharePoint Designer 2007 and Custom List Forms


I created several forms (Create/Edit/View) for a SharePoint list, using Custom List Forms.  I'm using Content Types in the list to ensure that each item only has the necessary fields.  When I created the ASPX forms, and inserted the Custom List Forms, I selected the correct Content Type, and I got the right fields inserted in the form.

Now, for some reason I can't identify, every time I create a new form, and insert a Custom List Form, SPD is bringing ALL fields from the list, instead of just bringing the fields included in the selected Content Type.

I have tried many different things to solve the problem, including creating new lists/content types/forms, etc. but SPD is doing the same thing all the time.

Can somebody tell me what may have gone wrong in SPD or MOSS?


Problem in Custom Control Unable to find Control To Validate Property


I make a custome control by taking a TextBox and A Regular Expression Validator.When i Use this on a .aspx page it works fine.But when i use this on .ascx page and dynamically load user control on a place holder in .aspx page it through an Error

Unable to find control id '_ctl0:txtEmail' referenced by the 'ControlToValidate' property of '_ctl0:txtEmailRequired'


My Custome control Code is this"--

public class EmailValidator:System.Web.UI.Control, INamingContainer{

private System.Web.UI.WebControls.TextBox textBox;

private System.Web.UI.WebControls.RegularExpressionValidator regularExpressionValidator;

public EmailValidator(){

textBox = new TextBox();

regularExpressionValidator = new RegularExpressionValidator();

IsErrorTextBelow = true;

IsRequired = false;

Problem passing custom object returned by the same webservice among two separate projects

I am running into casting issue with this scenario: 1. I made a custom object lets call it EmployeeObject.  2. The Employee object is wrapped in the EmployeeWebservice.  3. I have a client application project lets call it EmployeeClientApplication and a class library called DoSomeWorkClassLibrary.  Both EmployeeClientApplication and DoSomeWorkClassLibrary reference the EmployeeWebService and need to be able to pass the EmployeeObject back and forth.  4. The EmployeeClientApplication also references the DoSomeWorkClassLibrary. 5. The employeeObject in the EmployeeClientApplication becomes EmployeeClientApplication.EmployeeWebService.EmployeeObject. 6. The employeeObject in the DoSomeWorkClassLibrary becomes DoSomeWorkClassLibrary.EmployeeWebService.EmployeeObject. 7. The DoSomeWorkClassLibrary has a method called DoSomeWork that takes an EmployeeObject. When I try to pass employeeObject from EmployeeClientApplication to DoSomeWorkClassLibrary by doing something like this: DoSomeWorkClassLibrary.DoSomeWork(EmployeeClientApplication.EmployeeWebService.EmployeeObject), I am getting Unable to convert EmployeeClientApplication.EmployeeWebService.EmployeeObject to DoSomeWorkClassLibrary.EmployeeWebService.EmployeeObject.  I have searched high and low to fix this issue, I have tried changing the namespace of the reference.cs file of the webservice in

Custom sequence activity deriving from System.Workflow.Activities.SequenceActivity

Hi, I try to create custom sequence activity. I found some sample (http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/thread/f54e8eb2-29d9-46f6-ad96-766fe6fad333/). But this custom activity looks ugly (to separate nested activity using ellipses instead of arrows). My question is - how to create custom sequence activity, which will look like sequence activity. I also found this sample - <ContentPresenter x:Uid="ContentPresenter_1" Content="{Binding}" Style="{x:Static sacdt:DesignerStylesDictionary.SequenceStyle}"/> When I used this ContentPresenter my custom activity looks like System.Workflow.Activities.SequenceActivity, but I couldn't put on it another activity. I also created class, which derives from System.Workflow.Activities.SequenceActivity, but I couldn't see it in toolbox. My question is - how to create class, which derives from System.Workflow.Activities.SequenceActivity and is visible in toolbox or how to use ContentPresenter for sequence activity, which allows put on itself another activity.

Problem using an action to link to a report in another site

Hi ! I'm using SSRS 2008 with WSS 3.0 (integrated mode) and I want, from a report in a site A, to link to a report in a site B. I'm using the full path to the report and when I paste it in a browser, it correctly shows the report. When I click on the link of the action in the report from site A, a report (having the same name) from site A is displayed instead... Any help would be appreciated Thanks Paul

Problem with Global Navigation Excludes in VS workflow

Hi All I need help for WSS Global Navigation problem. I have one Visual Studio Workflow. In that I written following code. string globalNavExcludes = String.Empty; SPWeb webSite = MSDNSiteCollection.RootWeb; // _GlobalNavigationExcludes property contains a delimited string of  // GUIDs identifying the Id of each site to be excluded from global // navigation   if (webSite.AllProperties.ContainsKey("__GlobalNavigationExcludes")) {   globalNavExcludes =      webSite.AllProperties["__GlobalNavigationExcludes"].ToString(); }   SPWeb newsSite = MSDNSiteCollection.AllWebs["News"]; // string is delimited "{GUID};{GUID};", // use format code B to convert to string globalNavExcludes += String.Concat(ParentWeb.ID.ToString("B"), ";");   webSite.AllProperties["__GlobalNavigationExcludes"] = globalNavExcludes; webSite.Update(); After run this code workflow, I loss my Home from Navigation. Now I was unable to open my application. It is giving "Error" on the top Navigation in place of Home. Error is: "An error occured while rendering navigation for requested URL: .........url of my workflow site.......Exception Message: An Item with the same Key has already been added. Stack Trace : at System.Throwhelper.ThrowArgumentException(ExceptionResour

Unable to load workflow actions from the server - problem!

Hi, I have problem on Sharepoint 2010 RTM (new installation). I use workflows from the begining and I had no problem since yesterday. I tried to make custom workflow and the SP designer has frozen when saving it. Since than I get message "unable to load workflow actions from server. Please contact your server administrator." every time I want to customize or make new workflow. Need fast solution, Please help. Regards, Luka
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