[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

custom workflows in sharepoint

Posted on 2010-09-08
16
Medium Priority
?
719 Views
Last Modified: 2012-05-10
when i create a costume workflow with a condition on a step, i get failed on start up (retrying) but this only happen when i have a condition any condition.  i am using SPD 2007.
0
Comment
Question by:Rodom0001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 7
16 Comments
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33627422
Can you provide a screenshot and/or more details of the workflow steps and conditions?
0
 

Author Comment

by:Rodom0001
ID: 33627849
here is the screen shoot.  OKed is a YES/NO option on a list.
this work flow starts when the item is created.  i have tried other workflows the start when the item is changes or just manual starting.


CWF-1.bmp
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33628071
Click on the "Variable: create1" link and post the screenshot.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Rodom0001
ID: 33628172
here it is.  this work flow ran fine until I addend the condition. if i remove the condition it is fine again.  if i recreate it i get the same problem until i remove the condition.
CWF-2.bmp
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33628231
I have had some issues in the past when using checkbox (Yes/No) columns in custom workflows.  Try creating a Choice column with two options (Yes and No) and using that column as the condition.
0
 

Author Comment

by:Rodom0001
ID: 33628759
I have tried this on other types and other columns.  including the created by.  i set that one to e-mail me in it was created my be and another e-mail address if not. 2 branches on step one. both paths fail.
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33628807
Does it work if you remove the Workflow Variables? (And set the value of the newly created item to the value of a column rather than the variable)
0
 

Author Comment

by:Rodom0001
ID: 33629958
I have updated the workflow to send in e-mail to a specific account.  the work flow fail if it meet the condition or not.

enclosed it the workflow step and the result.
CWF-3.bmp
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33630786
Ok, the next thing we need to do is troubleshoot the workflow services on the SharePoint server.  First, check the Windows Event Log on the server to see if any errors occurred around the time of the workflow.

Secondly, lets enable the SharePoint logging for the workflows so that we can see if any details appear there (for instructions: http://technet.microsoft.com/en-us/library/cc288649(office.12).aspx).

Report back with any errors you find in either location in regards to the workflow services.
0
 

Author Comment

by:Rodom0001
ID: 33631685
I cleared the event log

1 min before i got this


Event Type:      Warning
Event Source:      Office Server Search
Event Category:      Search service
Event ID:      10039
Date:            9/8/2010
Time:            3:56:25 PM
User:            N/A
Computer:      USISHAREPT
Description:
Retry of query machine 'USISHAREPT' has failed with error: The content index is corrupt.   0xc0041800.  It will be retried again in 900 seconds. Component: f0a9d611-f349-426d-b6be-93dac5123ae4


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.



__________
In the logging for share point


Engine RunWorkflow: System.Security.SecurityException: Request failed.     at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)     at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)     at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException)     at System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action)     at System.RuntimeMethodHandle._CheckLinktimeDemands(Void* module, Int32 metadataToken)     at System.RuntimeMethodHandle.CheckLinktimeDemands(Module module, Int32 metadataToken)     at System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)     at System.Reflection.CustomAttribute.GetCustomAttributes(Assembly assembly, RuntimeType caType)     at System.Reflection.Assembly.GetCustomAttributes(Boolean inherit)     at System.Workflow.Activities.Rules.RuleValidation.<LoadExtensionAttributeType>b__0(Assembly a)     at System.Array.ForEach[T](T[] array, Action`1 action)     at System.Workflow.Activities.Rules.RuleValidation.LoadExtensionAttributeType(Boolean loadAttributes)     at System.Workflow.Activities.Rules.RuleValidation..ctor(Activity activity, ITypeProvider typeProvider, Boolean checkStaticType)     at System.Workflow.Activities.Rules.RuleConditionReferenceValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.ValidationHelpers.ValidateObject(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.DependencyObjectValidator.ValidateDependencyProperty(DependencyObject dependencyObject, DependencyProperty dependencyProperty, ValidationManager manager)     at System.Workflow.ComponentModel.Compiler.DependencyObjectValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.ActivityValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.CompositeActivityValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.Activities.IfElseBranchValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.ValidationHelpers.ValidateObject(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.ValidationHelpers.ValidateActivity(ValidationManager manager, Activity activity)     at System.Workflow.ComponentModel.Compiler.CompositeActivityValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.Activities.IfElseValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.ValidationHelpers.ValidateObject(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.ValidationHelpers.ValidateActivity(ValidationManager manager, Activity activity)     at System.Workflow.ComponentModel.Compiler.CompositeActivityValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.Runtime.WorkflowDefinitionDispenser.ValidateDefinition(Activity root, Boolean isNewType, ITypeProvider typeProvider)     at System.Workflow.Runtime.WorkflowDefinitionDispenser.LoadRootActivity(Type workflowType, Boolean createDefinition, Boolean initForRuntime)     at System.Workflow.Runtime.WorkflowDefinitionDispenser.GetRootActivity(Type workflowType, Boolean createNew, Boolean initForRuntime)     at System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId, CreationContext context, WorkflowExecutor executor, WorkflowInstance workflowInstance)     at System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext context, WorkflowInstance workflowInstance)     at System.Workflow.Runtime.WorkflowRuntime.GetWorkflowExecutor(Guid instanceId, CreationContext context)     at System.Workflow.Runtime.WorkflowRuntime.InternalCreateWorkflow(CreationContext context, Guid instanceId)     at System.Workflow.Runtime.WorkflowRuntime.CreateWorkflow(Type workflowType, Dictionary`2 namedArgumentValues, Guid instanceId)     at Microsoft.SharePoint.Workflow.SPWinOeHostServices.Send(SPWinOeWorkflow winoeworkflow, SPWorkflowEvent e)     at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(Guid trackingId, SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)  The action that failed was:  LinkDemand  The type of the first permission that failed was:  System.Security.PermissionSet  The demand was for:  <PermissionSet class="System.Security.PermissionSet"  version="1"  Unrestricted="true"/>    The granted set of the failing assembly was:  <PermissionSet class="System.Security.PermissionSet"  version="1">  <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Flags="Execution"/>  <IPermission class="System.Security.Permissions.UrlIdentityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Url="file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/80/bin/shared.DLL"/>  <IPermission class="System.Security.Permissions.ZoneIdentityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Zone="MyComputer"/>  <IPermission class="System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Level="Minimal"/>  <IPermission class="Microsoft.SharePoint.Security.WebPartPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"  version="1"  Connections="True"/>  </PermissionSet>    The assembly or AppDomain that failed was...:  shared, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null  The Zone of the assembly that failed was:  MyComputer  The Url of the assembly that failed was:  file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/80/bin/shared.DLL

Open in new window

0
 

Author Comment

by:Rodom0001
ID: 33631689
Engine RunWorkflow: System.Security.SecurityException: Request failed.     at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)     at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)     at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException)     at System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action)     at System.RuntimeMethodHandle._CheckLinktimeDemands(Void* module, Int32 metadataToken)     at System.RuntimeMethodHandle.CheckLinktimeDemands(Module module, Int32 metadataToken)     at System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)     at System.Reflection.CustomAttribute.GetCustomAttributes(Assembly assembly, RuntimeType caType)     at System.Reflection.Assembly.GetCustomAttributes(Boolean inherit)     at System.Workflow.Activities.Rules.RuleValidation.<LoadExtensionAttributeType>b__0(Assembly a)     at System.Array.ForEach[T](T[] array, Action`1 action)     at System.Workflow.Activities.Rules.RuleValidation.LoadExtensionAttributeType(Boolean loadAttributes)     at System.Workflow.Activities.Rules.RuleValidation..ctor(Activity activity, ITypeProvider typeProvider, Boolean checkStaticType)     at System.Workflow.Activities.Rules.RuleConditionReferenceValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.ValidationHelpers.ValidateObject(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.DependencyObjectValidator.ValidateDependencyProperty(DependencyObject dependencyObject, DependencyProperty dependencyProperty, ValidationManager manager)     at System.Workflow.ComponentModel.Compiler.DependencyObjectValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.ActivityValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.CompositeActivityValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.Activities.IfElseBranchValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.ValidationHelpers.ValidateObject(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.ValidationHelpers.ValidateActivity(ValidationManager manager, Activity activity)     at System.Workflow.ComponentModel.Compiler.CompositeActivityValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.Activities.IfElseValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.ValidationHelpers.ValidateObject(ValidationManager manager, Object obj)     at System.Workflow.ComponentModel.Compiler.ValidationHelpers.ValidateActivity(ValidationManager manager, Activity activity)     at System.Workflow.ComponentModel.Compiler.CompositeActivityValidator.Validate(ValidationManager manager, Object obj)     at System.Workflow.Runtime.WorkflowDefinitionDispenser.ValidateDefinition(Activity root, Boolean isNewType, ITypeProvider typeProvider)     at System.Workflow.Runtime.WorkflowDefinitionDispenser.LoadRootActivity(Type workflowType, Boolean createDefinition, Boolean initForRuntime)     at System.Workflow.Runtime.WorkflowDefinitionDispenser.GetRootActivity(Type workflowType, Boolean createNew, Boolean initForRuntime)     at System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId, CreationContext context, WorkflowExecutor executor, WorkflowInstance workflowInstance)     at System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext context, WorkflowInstance workflowInstance)     at System.Workflow.Runtime.WorkflowRuntime.GetWorkflowExecutor(Guid instanceId, CreationContext context)     at System.Workflow.Runtime.WorkflowRuntime.InternalCreateWorkflow(CreationContext context, Guid instanceId)     at System.Workflow.Runtime.WorkflowRuntime.CreateWorkflow(Type workflowType, Dictionary`2 namedArgumentValues, Guid instanceId)     at Microsoft.SharePoint.Workflow.SPWinOeHostServices.Send(SPWinOeWorkflow winoeworkflow, SPWorkflowEvent e)     at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(Guid trackingId, SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)  The action that failed was:  LinkDemand  The type of the first permission that failed was:  System.Security.PermissionSet  The demand was for:  <PermissionSet class="System.Security.PermissionSet"  version="1"  Unrestricted="true"/>    The granted set of the failing assembly was:  <PermissionSet class="System.Security.PermissionSet"  version="1">  <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Flags="Execution"/>  <IPermission class="System.Security.Permissions.UrlIdentityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Url="file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/80/bin/shared.DLL"/>  <IPermission class="System.Security.Permissions.ZoneIdentityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Zone="MyComputer"/>  <IPermission class="System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  version="1"  Level="Minimal"/>  <IPermission class="Microsoft.SharePoint.Security.WebPartPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"  version="1"  Connections="True"/>  </PermissionSet>    The assembly or AppDomain that failed was...:  shared, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null  The Zone of the assembly that failed was:  MyComputer  The Url of the assembly that failed was:  file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/80/bin/shared.DLL
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33631739
Is C:/Inetpub/wwwroot/wss/VirtualDirectories/80/bin/shared.DLL a file you added?
0
 

Author Comment

by:Rodom0001
ID: 33631853
no it is not
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33631897
Do you have and Citrix or Nintex Workflow software installed on the server?
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33631933
This threat on the Citrix forums seems to be describing your exact issue: http://forums.citrix.com/thread.jspa?messageID=751748

As a workaround you could try using their workaround, that is setting the web.config of the SharePoint site to Full trust.  (Info on web.config trust from MSDN: http://msdn.microsoft.com/en-us/library/tkscy493.aspx)
0
 
LVL 21

Accepted Solution

by:
chapmanjw earned 2000 total points
ID: 33631949
They also seemed to have success by removing the shared.dll file from the SharePoint folder:

"Unfortunately it has recently come to our attention that the file shared.dll is being deployed erroneously to the following location:
C:\Inetpub\wwwroot\wss\VirtualDirectories\\bin

The work around is very simple, just delete the dll from this location and your workflows will function as intended."
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
Cancel future meetings from user mailboxes in Office 365 using Remove-CalendarEvents
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question