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

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

Automatic Workflow start through Excel

Posted By:      Posted Date: August 26, 2010    Points: 0   Category :SharePoint

Dear all,

I have a SPD WF and I want to start it automatically by channging a value in a dropdown inside Excel.

Instead of going to Office button --> Workflows --> Start "Budget Approval", start the workflow by setting a value inside Excel (and maybe saving the file) to "Completed".



View Complete Post

More Related Resource Links

Attach Workflow to Task List, don't get option to manually start workflow via dropdown on task item



I am running WSS 3.0 with other workflows which are functioning correctly.  I created a new workflow in Visual Studio 2008 and was able to successfully run it in my dev environment.  I attached the workflow to a task list in my dev environment and was able to manually start the workflow by using the drop down workflow option and using the menus to manually start it.  I installed this workflow in our production environment and attached it to the task list (which had a SPD workflow attached to it which stopped working about a month ago).  I made sure that the option to manually start the workflow was checked.  When I tried to manually start the workflow, (hover mouse over title, drop down) there isn’t a workflow option.  The workflow also will not start automatically when a task is changed.


I attached this same workflow to a different task list in production and get the option to start it.


I have tried creating a small workflow in SPD 2007 and attaching it to the task list.  It shows that it is attached, when I look at the workflows that are attached to the task list, but I still don’t get the option to manually start it.


I have checked my security and I have fu

Workflow "Failed on Start (retrying)" when new item created by BizTalk SharePoint Adapter


We've been using the BizTalk SharePoint Adapter to load various different contents into a MOSS 2007 Document Library. The library has a Microsoft Office SharePoint Designer 2007 workflow (sequential workflow created in Designer) which starts automatically when a new item is added to the Document Library. Or, at least, it eventually starts automatically.


For some unknown reason--and this is what we're hoping some of you may have some ideas on--the workflow fails to start on the first try, producing the "Failed to Start (retrying)" message. When the timer job comes back the second time, the workflow starts successfully, but this causes us to loose five minutes of potential work time (not to mention making us look bad to the VPs and CTO because they see the failure message).


In checking the log, I find the following pair of error messages each time the "Failed to Start (retrying)" status occurs:


08/27/2007 13:49:43.24  w3wp.exe (0x0CA0)                        0x1438 Windows SharePoint Services    Workflow Infrastructure        72fs Unexpected RunWorkflow: Microsoft.SharePoint.SPException: <Error><CompilerError Line="1" Column="1" Text="The root activity type is invalid.&q

SharePoint 2010 Long Starting if start workflow programatically


In SharePoint 2010, I'm starting workflow #2 programatically from my workflow #1. See code below:

					SPList currentList = web.Lists[new Guid(ListId)];
					SPListItem currentListItem = currentList.GetItemById(ListItem);

					//resolve any lookup parameters
					string workflowId = base.ProcessStringField(WorkflowIdentifier);

					//find workflow association by name
					SPWorkflowAssociation workflowAssoc = currentList.WorkflowAssociations.GetAssociationByName(workflowId, Thread.CurrentThread.CurrentCulture);

					if (workflowAssoc != null)
						//start the workflow
						SPWorkflow workflow = site.WorkflowManager.StartWorkflow(currentListItem, workflowAssoc, workflowAssoc.AssociationData, SPWorkflowRunOptions.Synchronous);

And workflow #2  will hang with Starting status (1-10 minutes), Then the workflow #2 status would be modified  to Completed.

I couldn't find how to start the workflow # 2 immediately and complete immediately without several minutes delay

VS Studio WorkFlow Failed on Start in MOSS 2007 ON Windows Server 2008 64 Bit


I have created a sequential sharepoint workflow in WSP Builder in my Sharepoint Server and Deployed it.

But the workflows says Failed on start and retrying ans stops there forever says couldn't start the workflow.

I repaired .NET Framework 3.5sp1 installed

 tried this

 1. I tried again, in C Prompt:  Lodctr "c:\Windows\Microsoft.Net\Framework\v3.0\Windows Workflow Foundation\perfcounters.ini"  it says initiation file cannot be found

2   i again tried this C prompt Lodctr /R "c:\Windows\Microsoft.Net\Framework\v3.0\Windows Workflow Foundation\perfcounters.ini"

it says reloaded  from the system restored

i am still getting the same error.

When i manually go to my  C:\Windows\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation i can see a folder for SQL that's it nothing more than that..

I dont know what is happening i am trying it from 2 days and still no solution.

any ideas would be real great help for me.

My system is 64 bit , Window server 2008, MOSS SP2, Visual Studio 2008 Version 9.0.30729.

.Net Framework 3.5 sp1

and WSP builder the one from Codeplex for 64 bit machines

String Data missing start from "+" When Export Data To Excel Using Gridview

Hi,I am exporting data from gridview to excel file.My problem is that for all the string which contain "+", the rest of data begining from it is missing in excel file.For example: PWE-WER+78, when exported it will become PWE-WER.Below is my code.                Response.ClearContent() Response.Buffer = True Response.AddHeader("Content-Disposition", "attachment;filename=" & "ExportedExcel.xls") Response.ContentType = "application/vnd.ms-excel" Response.Charset = "" lobjStringWriter = New StringWriter lobjHtmlWriter = New HtmlTextWriter(lobjStringWriter) dgdResult.RenderControl(lobjHtmlWriter) Response.Write(lobjStringWriter.ToString()) Response.End() I  have search through online but no solution.Does anyone has idea on this?

WorkFlow will not start. Stuck on workflowRuntime.CreateWorkflow?

In Visual Studio 2008/C# using the wizard I created a 'Sequential WorkFlow Console Application'.  I have made no changes to the project genreated by Visual Studio 2008.  The code gets stuck on:   WorkflowInstance instance = workflowRuntime.CreateWorkflow(typeof(WorkflowConsoleApplication1.Workflow1));Application never timeouts or fails.Any ideas?twahl

Automatic Workflow execution

Hi folks, I have a task list which i have set to (require content approval for submitted items). I want to move the tasks which are APPROVED to another approved list. To accomplish it, i created a workflow in SPD. if Current Item:Approval Status equals 0;#Approved                 Email Current Item:Assigned To                 then Copy item in Current Item to Approved Tasks                 then Delete item in Current Item   I have set the workflow to automatically start when a new item is created or changed. When i approve a task; the workflow does not start. I have to manually start the workflow which then works fine as designed. Please advise what is missing for the automatic worklflow execution to work.You miss 100% of the shots you do not take!

How to start a workflow programmatically that was created in Sharepoint designer 2010?

Trying to start a workflow from code.  The workflow itself has been created in SPD 2010, which from what I understand, means that there is no assembly until the first time it's ran.  However, when I try to find the association record, that doesnt exist.  Is this becuase the 'code' hasnt been compiled yet?  If so, how can I have sharepoint start the just-in-time compiler for a declarative based workflow, so that can kick it off with in code? tia Rocky SandersRocky Sanders

WSS workflow will not start from remote network

I have a simple workflow that starts and completes (ticket number) from anyhost on the local subnet.  When creating a new item from a remote host (subnet) the item is created however the workflow does not start resulting with a new item created but no ticket number.  I am not seeing anything on the firewall and the event logs look good. Any help is greatly appreciated!  

Can i Start Workflow on Infopath form open?

HI, I Have a Scenario where when i open a Infopath 2010 form in Sharepoint 2010 as XML Form View Webpart, Custom workflow must be enabled, can i do this? If Yes, Please tell me steps to configure or code for starting a workflow. Thanks you all in Advance

Approval Workflow Failed to Start

they are the standard worflows in sharepoint we have suddenly starting getting the message Workflow Failed to Start retrying. the workflows it says not started we are the manually able to start them i tried deleting and recreating the workflows but still come up with this message there are 8 sites and they all have the same problems i had a look in the log and have this error 8e2r    Medium      Possible mismatch between the reported error with code = 0x81070504 and message: "There is no Web named "/Claims/default.aspx"." and the returned error with code 0x80070002.      01/29/2010 09:46:06.62     w3wp.exe (0x16C8)                           0x0288    Windows SharePoint Services       General                           8e2s    Medium      Unknown SPRequest error occurred. More information: 0x80070001   

Start a workflow from timerjob on custom list

I have built a working custom workflow which works fine. I need to start this same workflow from timerjob on a custom list. The timerjob catches following error. Value does not fall within the expected range.Microsoft.SharePoint   at Microsoft.SharePoint.SPFieldMap.GetColumnNumber(String strFieldName)    at Microsoft.SharePoint.SPListItemCollection.GetRawValue(String fieldname, Int32 iIndex)    at Microsoft.SharePoint.SPListItem.GetValue(SPField fld, Int32 columnNumber, Boolean bRaw)    at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowException)    at Microsoft.SharePoint.SPListItem.GetValue(String strName)    at Microsoft.SharePoint.SPListItem.get_EffectiveBasePermissions()    at Microsoft.SharePoint.SPListItem.DoesUserHavePermissions(SPBasePermissions permissionMask)    at Microsoft.SharePoint.Workflow.SPWorkflowManager.StartWorkflow(SPListItem item, SPWorkflowAssociation association, String eventData, Boolean isAutoStart) Any help on this will be appriciated. Thanks,    

How do I gather user input at the start of a workflow?

I'm a complete sharepoint newbie, so please forgive me :) I have developed a Sharepoint 2007 Sequential workflow in Visual Studio 2010. I have 'bound' it to a particular contact list, and set it such that it will be activated when a contact is edited. (I did this so that I had an easy way of starting the workflow (I just go in and edit a contact)). The workflow itself, on the designer just shows: onWorkflowActivated1 -> codeActivity1 -> logHistoryListActivity1 The workflow works and does the work in the codeActivity1 part. My problem now is how to ask the user for input. At present the code has some hard-coded values in it, for example: Dim emailTemplatePath = "http://en-ecm-jplender/Shared%20Documents/FATF%20Documents/EmailTemplate01.htm" Dim emailTemplate = (New System.Net.WebClient() With {.UseDefaultCredentials = True, .Encoding = System.Text.Encoding.UTF8}).DownloadString(emailTemplatePath) Dim attachmentFilePath = "http://en-ecm-jplender/Shared%20Documents/FATF%20Documents/People.pdf" Dim attachmentData = (New System.Net.WebClient() With {.UseDefaultCredentials = True, .Encoding = System.Text.Encoding.UTF8}).DownloadData(attachmentFilePath) However, I'd like for the user to be able to choose the PDF attachment, and the EmailTemplate document from Sharepoint. I tried fiddling with InfoPath, but it didn't seem to bind to t

Start workflow on database update

HiIs there a way to start a workflow when something in a database has changed (e.g. a row was added)? I am looking for something similar to a Receive activity, but which monitors parts of a database.Could that be achieved by having a "master" workflow that spins off sub-workflows?ThanksAlex

Cannot Start Workflow - Frozen SharePoint



I started a Publishing portal site (with workflow), and took all the default settings.  After editing the default page (/Pages/Default.aspx), I tried to submit the changes for approval.


This starts the "Parallel Approval" workflow.  When I hit "OK" to start the workflow a status box pops up with "Sending Data to the Server..." and freezes.  Out of curiosity I let it run while I went to lunch and it was still stuck when I got back.


I've tried creating another publishing site, a new web application, a new publishing Site Collection with a publishing subsite, creating a new workflow for approval; anything else I could possibly think of.  However, it still freezes.


It will also freeze if I try to add a name to CC the task to.  I know this isn't an Active Directory issue, since at all other places in the site (as with authenication) it has no trouble using AD.


Does anyone know what the issue is?




custom workflow does not start


For some reason i can not start any of custom workflows created in SharePoint Designer 2010.

Those are very simple workflows updating just one field. I have checked in the admin console and user definded workflows are enabled.

Do I need to do anything else to get them working?

Also to be more precise i'm able to start those workflows manually - only automatic starts are issue when item is created or updated.

SharePoint Workflow : Failed to Start when a document is added to library from server-side object mo


When I add a document using my server-side object model code, I get an exception "The type or namespace name 'Office' does not exist in the namespace 'Microsoft'" in the server logs and in the library I can see the Workflow status as "Failed to Start".





Interestingly, when I add a document to the same library from sharepoint site portal, it works just fine, the workflow kicks off with the state : in-progress.

Also, I modified the task form for the Approval workflow template from SharePoint Designer using infopath.(Not sure if that be a problem as adding from portal works fine.)

What am I missing out here??

 Details of the exception:

09/29/2010 18:11:19.15  w3wp.exe (0x2508)                        0x2710 SharePoint Foundation          Workflow Infrastructure        98d8 Unexpected Microsoft.SharePoint.SPException: <Error><CompilerError Line="0" Column="20" Text="The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (a

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