0

Workflow is failing with below error,can you please help me

System.ArgumentException: String cannot be of zero length. Parameter name: oldValue at System.String.ReplaceInternal(String oldValue, String newValue) at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at Abbott.Workflow.ProductWorkflow.MasterWorkflow.PublishToStaging.Execute() at Tridion.ContentManager.CoreService.Workflow.ExternalActivity.ExecuteInternal(String activityInstanceId, String processInstanceXml, Action action) at Tridion.ContentManager.CoreService.Workflow.ExternalActivity.Tridion.ContentManager.Workflow.IExternalActivity.Execute(String activityInstanceId, String processInstanceXml) at Tridion.ContentManager.Workflow.ExternalActivityExecutor.ExecuteScript(String script, String currentActivityInstanceId, String processInstanceXml) at Tridion.ContentManager.Workflow.WorkflowAgentEngine.<>c__DisplayClass7.b__1() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Tridion.ContentManager.Workflow.WorkflowAgentEngine.ProcessActivity(TcmUri activityInstanceId, Boolean isExpirationExecution)

1
  • Can you provide more context as to when your code is running - what is the intention; what's the pre-condition to this step? Just pasting code like this doesn't help anyone to help you :) Commented Sep 6, 2016 at 18:04

1 Answer 1

3

The error occurs in implementation code: Abbott.Workflow.ProductWorkflow.MasterWorkflow.PublishToStaging.Execute

1
  • I found the issue by adding logs in the above method.The error is due to missing entries from configuration file, once updated correct configuration labels issue resolved, Commented Sep 21, 2016 at 17:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.