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)

  • 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 :) – Dylan .. Mark Saunders Sep 6 '16 at 18:04

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

| improve this answer | |
  • 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, – Prasanna K Gollamudi Sep 21 '16 at 17:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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