Workflow Soluiton

 View Only
  • 1.  Auto start project not running correctly.

    Posted Apr 27, 2011 01:34 PM

    I've created an auto start workflow that is scheduled to run every hour on the hour. It starts with a "configurable auto start component" to determine if the process should run since i only want the actual process to run once a day.

    When published to IIS, The embedded model within the Configurable auto start component completes with no issue, and goes to the end component with the StartWorkflowFlag = true, but the rest of the worflow does not run. This project works fine in Debug, but of course it craps out when I publish. I have made sure the directory security has integrated and anonymous authentication checked, and once it was published, the server extensions were restarted.

    I checked the log and got the following...

    Error,Wednesday, April 27, 2011 1:01:01 PM,System.ArgumentException: The parameter 'addresses' cannot be an empty string.
    Parameter name: addresses
       at System.Net.Mail.MailAddressCollection.Add(String addresses)
       at LogicBase.Components.Default.Communication.SendEmailComponent.Run(IData data)
       at LogicBase.Core.ExecutionEngine.SinglePathProcessComponentExecutionDelegate.Execute(IData data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context)
       at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.DoRunComp(IOrchestrationComponent comp, IData data, TLExecutionContext context)
    Error,Wednesday, April 27, 2011 1:01:02 PM,current component Will not run(SendEmailComponent)
    Error,Wednesday, April 27, 2011 1:01:02 PM,last component Is it 1:00pm?(MatchesRule)
    Error,Wednesday, April 27, 2011 1:01:02 PM,resulting exception from execution
    System.ArgumentException: The parameter 'addresses' cannot be an empty string.
    Parameter name: addresses
       at System.Net.Mail.MailAddressCollection.Add(String addresses)
       at LogicBase.Components.Default.Communication.SendEmailComponent.Run(IData data)
       at LogicBase.Core.ExecutionEngine.SinglePathProcessComponentExecutionDelegate.Execute(IData data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context)
       at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.DoRunComp(IOrchestrationComponent comp, IData data, TLExecutionContext context)
    Error,Wednesday, April 27, 2011 1:01:02 PM,System.Exception: Execution Exception ---> System.ArgumentException: The parameter 'addresses' cannot be an empty string.
    Parameter name: addresses
       at System.Net.Mail.MailAddressCollection.Add(String addresses)
       at LogicBase.Components.Default.Communication.SendEmailComponent.Run(IData data)
       at LogicBase.Core.ExecutionEngine.SinglePathProcessComponentExecutionDelegate.Execute(IData data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context)
       at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.DoRunComp(IOrchestrationComponent comp, IData data, TLExecutionContext context)
       --- End of inner exception stack trace ---
       at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.RunEngine()
    Error,Wednesday, April 27, 2011 1:02:02 PM,System.ArgumentException: The parameter 'addresses' cannot be an empty string.
    Parameter name: addresses
       at System.Net.Mail.MailAddressCollection.Add(String addresses)
       at LogicBase.Components.Default.Communication.SendEmailComponent.Run(IData data)
       at LogicBase.Core.ExecutionEngine.SinglePathProcessComponentExecutionDelegate.Execute(IData data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context)
       at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.DoRunComp(IOrchestrationComponent comp, IData data, TLExecutionContext context)
    Error,Wednesday, April 27, 2011 1:02:02 PM,current component Will not run(SendEmailComponent)
    Error,Wednesday, April 27, 2011 1:02:02 PM,last component Is it 1:00pm?(MatchesRule)
    Error,Wednesday, April 27, 2011 1:02:02 PM,resulting exception from execution
    System.ArgumentException: The parameter 'addresses' cannot be an empty string.
    Parameter name: addresses
       at System.Net.Mail.MailAddressCollection.Add(String addresses)
       at LogicBase.Components.Default.Communication.SendEmailComponent.Run(IData data)
       at LogicBase.Core.ExecutionEngine.SinglePathProcessComponentExecutionDelegate.Execute(IData data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context)
       at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.DoRunComp(IOrchestrationComponent comp, IData data, TLExecutionContext context)
    Error,Wednesday, April 27, 2011 1:02:02 PM,System.Exception: Execution Exception ---> System.ArgumentException: The parameter 'addresses' cannot be an empty string.
    Parameter name: addresses
       at System.Net.Mail.MailAddressCollection.Add(String addresses)
       at LogicBase.Components.Default.Communication.SendEmailComponent.Run(IData data)
       at LogicBase.Core.ExecutionEngine.SinglePathProcessComponentExecutionDelegate.Execute(IData data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context)
       at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.DoRunComp(IOrchestrationComponent comp, IData data, TLExecutionContext context)
       --- End of inner exception stack trace ---
       at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.RunEngine(
    )

     

    Not exactly sure what its referencing with the "Parameter 'addresses' cannot be an empty string" messages. I do have send email components in my project, but they are configured completely.



  • 2.  RE: Auto start project not running correctly.

    Posted Apr 27, 2011 01:53 PM

    I'd add a bunch of Create Log Entry comps to your project, and specifically output the value of "addresses" for the log text. Just to verify if in fact it's populated



  • 3.  RE: Auto start project not running correctly.

    Posted Apr 27, 2011 01:53 PM

    Are the "To" (or CC or BCC) recipients for the Send Email component a Dynamic Model or a process variable? I would guess you may have a custom integration component to fetch a string of email recipients that is not returning the data correctly when published. Or if you're using a dynamic model, a variable in the model is not being fetched or evaluated correctly. The error shows the last component before the SendEmail component is a Matches Rule called "Is it 1:00pm?". Where is that located and is the process mapping out of that component correctly for each possible branch (IE: mapping a valid email string)?