.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

Three State Workflow Emails have invalid links

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

I've attached a standard three-state workflow to a document library.  When the emails arrive in users' inboxes, the links back to the document don't work if the document file name includes spaces.  It appears the workflow is not encoding the spaces, correctly.  If the message is opened in Lotus Notes, the spaces are completely stripped out (e.g. "My File Name" is "MyFileName").  If the message is opened in Gmail, the spaces are replaced with + signs.  (e.g. "My File Name" becomes "My+File+Name"). 

I've searched the forums and elsewhere, and I can't find any resolution for this.  To the best of my knowledge, no other emails, either from workflows or alerts, have this problem. Any suggestions?  This is on MOSS 2007, by the way.



View Complete Post

More Related Resource Links

WF How-To: Building State Machines with Windows Workflow Foundation


State Machine workflows represent a different way of visualizing program logic. Rather than flowing from activity to activity like sequential workflows, State Machines transition from state to state. Learn about uses for State machines and see how to design and build a State Machine workflow with Windows Workflow Foundation.

Keith Pijanowski

MSDN Magazine February 2008

SPD workflow, emails sent for one user, not for the other


Good day,

I have a SPD workflow (WSS/2007) that take a date field from a document list and when that date occurs it sends an email.  If the date is in the past, it will send the email out right away.  It is working fine for one user, not for another.  Both users have the same permissions.  The workflow goes as follows:

ACTION: Set Variable: vTermdate to DocumentsNotificationDate
       then log Documents:Email Date to the workflow history list

CONDITION: if Variable: vTermdate is not Empty
ACTION: Log term not empty to the workflow history list

CONDITION: if Variable: vTermdate is Empty
ACTION: Set Variable: vTermdate to N/A

ACTION: Add 0 minutes to Documents:Email Date (out to

Set State of workflow in code

Hi, i have instance of StateMachineWorkflowActivity and i cannot figure out how to change its State in code. Is there any way to do this?   Thank you in advance for your help!

Create Content Type in State Machine Workflow

Hi, I created a state machine workflow in share point 2007 with default associated task list. This is working fine. Now I want to add a custom content type to task in which I want to show 3 fields on task form : Title, Description, status And also I want to set some default values in these fields. How can I create and add this custom content type in state machine workflow ? G. Goyal

state machine workflow project creation error

Hi,   I have a dev environment which i had sharepoint 2007 and now i upgraded it to sharepoint 2010. Now when i try to create a state machine workflow project it gives me an error Object Reference not set to an object. I uninstalled Sharepoint extensions 1.3 (as i 64bit win2008 vm) and when i am trying to install it. In one of the installation screens where it asks for the port no  and the select the app pool it only shows the sharepoint central v3 app pool . i was expecting to have sharepoint 2010 product app pool in the drop down. I know that there should be a app pool on port 80. Since i upgraded sharepoint to 2010. I want sharepoint visual studio extensions 1.3 to point to sharepoint 80 app pool . Please can you tell me how i can do it.    

How to create custom task form in state machine workflow?

Hi, I want to create custom task form in state machine workflow. How can I create & install?  G. Goyal

can't debug anymore a state machine workFlow in Visual Studio

Hi, I have an issue with debuging a workFlow with visual studio when it should start the workFlow when I create an item nothing happen and sharepoint stay stuck : I can't refresh any lists, visual studio rich 40% of the CPU, no exception on log. At the same time if i deploy without debugging it works. Please help me. Thanks, Patrice  

Three state workflow is possible?

Can I use Three state work flow for this scenario? ·        When the user submits a request email needs to be generated to notify help team that there is a request that requires action ·        After a request for new access is completed by team, the requestor needs to receive a notification email with the details. ·        After a request to change access is completed by   team, the requestor needs to receive a notification email informing them the request is completed ·        After a request to terminate access is completed by   team, the requestor and HR department needs to receive a notification email.   Any help isppareciated. Thanks

The state information is invalid for this page and might be corrupted.

Dear All,     I got the following error today. But yesterday this application is running fine.     Even today i try to move this project to another server. The same symptom I got.     Does anyone know what's happened for this case?     Thanks, Best Regards, Benny Ng       Server Error in '/LGOldServices' Application.-------------------------------------------------------------------------------- The state information is invalid for this page and might be corrupted.Description: An unhandled exception occurred during the execution of thecurrent web request. Please review the stack trace for more informationabout the error and where it originated in the code. Exception Details: System.Web.HttpException: The state information isinvalid for this page and might be corrupted. Source Error: [No relevant source lines] Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NETFiles\lgoldservices\10b99f4d\fe7b353e\App_Web_jlz_zk70.4.cs    Line: 0 Stack Trace: [FormatException: Invalid character in a Base-64 string.]   System.Convert.FromBase64String(String s) +0   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +67   System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(StringserializedState) +4   System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter,String serializedState) +37   System.Web.UI.HiddenFieldPageState

workflow 4 state machine load

Hi, I'm using StateMachine for WF4 from codeplex. I can save it to file very well, but when I load it again I see only the states not the connectors also. Same behavior can be reproduced by double clicking a state and then coming back to whole state machine. Could you please help me? Thank you very much

Delay Activity is not working with SharePoint state machine workflow

Hello,   I have a problem with Delay Activity in Sharepoint state machine workflow. This issue is kind of common to many people but so far I haven't come accross any working solution. In one of the workflow states, I want to add a delay activity to send email notification if no action is taken after certain time. Below is what I have done:   In the targeted state: 1) add one eventDriven activity to handle the normal process (approve the item) 2) add another eventDriven activity to send the reminder email. In this eventDriven activity, I first add a delayActivity, set it to 2 minutes for test purpose. Then I add a Sharepoint SentEmail activity.   With my test, the Dealy Activity is never invoked after timeout period. What should I do to make the delay activity work in the SharePoint state machine workflow? Is there any work around if the delay activity is simply not working there?   Any suggestions are appreciated.

SharePoint Three-state workflow messages

I want to assign tasks to users without notifying them the task is assigned. But I DO want to notify them when the state changes (I am changing it behind the scenes based on their due dates and the current date. It looks like  have two choices - don't send emails, or send emails with all three state changes. If my interpretation above is correct, then does anyone have a suggestion how to contrive system to trigger SharePoint to send people a message when a date in a list is within one week? Without sending three additional messages, that is!

State Machine Workflow XOML issue

"Please help me out this problem" "Its too urgent" I have modified State Machine Workflow XOML file and upload again with my application. Now i am getting error while calling CreateWorkflow(). I am getting the following error. "Wokflow Validation Failed" "Activity 'handleExternalEventActivity1' validation failed: Property 'InterfaceType' is not set." If i am uploading the existing XOML file then it is working fine without any error. What i have to do and where i did mistake?

Strange notification emails from workflow tasks

Pardon if this is a dumb question, but I can't figure it out. I am setting up a purchase request workflow and it works, but for some reason extra emails are being created and sent to a different address. I didn't put this address into the workflow so I am unsure why it is doing it.   My work flow consists of a simple start approval process to a set email address. Then an if and else to send emails (hardcoded) based on the approval status. The email address is mine and I don't have any diversions on it. An example of the emails: ---------------------------------------------- Approval has completed on 4444444. Approval on 4444444 has successfully completed. All participants have completed their tasks.   Approval started by ######\intranet on 9/16/2010 12:45 PM Comment: Rejected by ########P\intranet on 9/16/2010 12:48 PM Comment:  ---------------------------------------- I only have myself in the approving group. And I have gone through all my settings (well I think I have) and I can't find where this email address or setting is. Thanks in advance. Again, sorry if this is a dumb question.

State Machine Workflow timer

Hi all,

I am wondering what the best way is to map the following scenario with a state machine workflow.

A customer books a seat online. The seat enters the "Reserved" state. The customer has up to one minute to confirm the reservation, and when he does, the state would change to "Sold".

If, however, he does not do that within that minute, the system would automatically cancel the reservation.

I am stuck on implementing the one minute timer. I would imagine that it would involve a DelayActivity, but I won't know where it fits in the workflow.

The state information is invalid for this page and might be corrupted.


I am getting the "The state information is invalid for this page and might be corrupted." error while creating tabs using jquery. I am loading pages to the dynamically created div using jquery and when i click any of the buttons in the page i get this error. The created tabs are working fine.  Only thing is if i click any buttons that cause postback resulting in the above error. Help me please regarding this.

Terminating state machine workflow



I am creating a state machine workflow with 20 states.

My requirement is, irrespective of which state the workflow is in currently, when a user changes an item in the source list as "complete" , the workflow should be terminated.

What would be the best way to achieve this? Should I handle this item change event in all the 20 states? or is there a better way of achieving this?

Please advice.





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