Showing posts with label Workflow. Show all posts
Showing posts with label Workflow. Show all posts

Tuesday, March 20, 2012

Error Compiling SharePoint Workflow in Dev Server.

If any one of have problem compiling the SharePoint 2010 Workflow (Sequential and State Machine) in you Dev Server. And if the Error is this


Even for the empty workflow its giving this error.
Error 1 The "CompileWorkflowTask" task failed unexpectedly.
System.NotSupportedException: The given path's format is not supported.
   at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
   at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
   at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
   at System.IO.Path.GetFullPath(String path)
   at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()
   at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension, Boolean keepFile)
   at System.Workflow.ComponentModel.Compiler.CompileWorkflowTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) stateWorkflow1

Check this Thread in MSDN Forum.


http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/74975cb4-20f9-4a3f-bb41-74382eecc5bb/#dd666781-46fb-4bb2-b8e8-cf49a4ebfa4b 

Friday, April 29, 2011

Copying and Moving SharePoint Designer (2007) Workflows....

Hi,

        This is a common challenge for every one who works on SharePoint Designer Workflows.

       In the working environment, after developing a workflow on a list using SharePoint Designer. There is no Out-of the -Box option to assign that workflow to other List in same server or in other server.

Here is the a simple work around for that

NOTE:- You should have the same column names in both lists. Atleast you should have the columns that you used in rules or actions of the workflow. However, the workflow can be moved eventhough if you dont have the common columns. But the problem is after moving the workflow, the columns that are not present in new list will be listed as blank in workflow. Don't worry you will understand after starting working on it.


Here are the steps.

1) open the WorkFlows folder in SharePoint Designer
2) Expand the workflow that you want to move
3) open <your workflow name> .xoml.wfconfig.xml file.
4) In the Association tag replace the listid with your new list id *.
5) save and close that file.
6) open you workflow xoml file and click finish.
 Thats it you are done.

* In order to find the List ID of your New List open the list setting. In url you can find the list id.
( Replace %7B with {, %7D with }, %2D with -).

Post Comments if you have any trouble doing this.


Please leave a comment if this post is helpful to you.

Monday, April 18, 2011

Hotfix for Time-Based SPD07 Actions (Pause for, Pause till)

Hi,

If you are using Sharepoint 2007. You will face the problem with Time Based actions in SharePoint Designer Workflow. They are

1) Even if the timer is done the next action will not be processed
2) The cooments field of workflow doesnt update the time remaining to go for next action
3) The workflow will be freezed at pause action forever.

Here is the Hotfix for that problem


http://www.microsoft.com/downloads/en/details.aspx?FamilyID=6096ce0f-d21e-47ac-afe2-d4e1c2fce670&displaylang=en