• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 720
  • Last Modified:

custom workflows in sharepoint

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
Rodom0001
Asked:
Rodom0001
  • 9
  • 7
1 Solution
 
chapmanjwCommented:
Can you provide a screenshot and/or more details of the workflow steps and conditions?
0
 
Rodom0001Author Commented:
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
 
chapmanjwCommented:
Click on the "Variable: create1" link and post the screenshot.
0
Industry Leaders: 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!

 
Rodom0001Author Commented:
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
 
chapmanjwCommented:
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
 
Rodom0001Author Commented:
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
 
chapmanjwCommented:
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
 
Rodom0001Author Commented:
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
 
chapmanjwCommented:
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
 
Rodom0001Author Commented:
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
 
Rodom0001Author Commented:
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
 
chapmanjwCommented:
Is C:/Inetpub/wwwroot/wss/VirtualDirectories/80/bin/shared.DLL a file you added?
0
 
Rodom0001Author Commented:
no it is not
0
 
chapmanjwCommented:
Do you have and Citrix or Nintex Workflow software installed on the server?
0
 
chapmanjwCommented:
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
 
chapmanjwCommented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 9
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now