Nintex Connect

The Official Community Site for Nintex Software Products, including Nintex Workflow 2007, 2010 and 2013; Nintex Workflow for Project Server 2010; Nintex Reporting 2008 and Nintex Analytics 2010; Nintex Forms 2010; Nintex Live and Nintex SmartLibrary.
Welcome to Nintex Connect Sign in | Join | Help

Re: DateTime Parse Error in Schedule Workflow Action

  •  03-19-2012, 5:36 PM

    Re: DateTime Parse Error in Schedule Workflow Action

    Hi James, I'm encountering the exact same issue. I have 2 errors in the event long.

     FIRST ERROR:

    ____________________________________________________________________________________

    Description:
    Nintex Workflow; Build: 10904
    Invalid workflow schedule xml used:
    <Schedule><MaximumRepeats>0</MaximumRepeats><WorkdaysOnly>false</WorkdaysOnly><RepeatInterval><Type>Hourly</Type><CountBetweenIntervals>1</CountBetweenIntervals></RepeatInterval><EndOn>RepeatCount</EndOn><StartTime>{WorkflowVariable:Date ISO8601 format}</StartTime><EndTime>0001-01-01T00:00:00</EndTime></Schedule>

    _____________________________________________________________________________________

    SECOND ERROR:

    _____________________________________________________________________________________

    Failed to start workflow.
    System.Exception: Failed to parse schedule details. ---> System.InvalidOperationException: There is an error in XML document (1, 267). ---> System.FormatException: The string '{WorkflowVariable:Date ISO8601 format}' is not a valid AllXsd value.
       at System.Xml.Schema.XsdDateTime..ctor(String text, XsdDateTimeFlags kinds)
       at System.Xml.XmlConvert.ToDateTime(String s, XmlDateTimeSerializationMode dateTimeOption)
       at System.Xml.Serialization.XmlCustomFormatter.ToDateTime(String value)
       at System.Xml.Serialization.XmlSerializationReader.ToDateTime(String value)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSchedule.Read5_Schedule(Boolean isNullable, Boolean checkType)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSchedule.Read6_Schedule()
       --- End of inner exception stack trace ---
       at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
       at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
       at Nintex.Workflow.Scheduling.Schedule.Deserialize(String serialized)
       at Nintex.Workflow.Activities.StartWorkflowActivity.CreateSchedule(SPListItem item, NWContext ctx, Guid workflowId, String startData)
       --- End of inner exception stack trace ---
       at Nintex.Workflow.Activities.StartWorkflowActivity.CreateSchedule(SPListItem item, NWContext ctx, Guid workflowId, String startData)
       at Nintex.Workflow.Activities.StartWorkflowActivity.Execute(ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
       at System.Workflow.Runtime.Scheduler.Run()

    _______________________________________________________________

    This is what I'm passing if i click on the "Schedule XML builder":

    <Schedule>
        <MaximumRepeats>0</MaximumRepeats>
        <WorkdaysOnly>false</WorkdaysOnly>
        <RepeatInterval>
            <Type>Hourly</Type>
            <CountBetweenIntervals>1</CountBetweenIntervals>
        </RepeatInterval>
        <EndOn>RepeatCount</EndOn>
        <StartTime>{WorkflowVariable:Date ISO8601 format}</StartTime>
        <EndTime>0001-01-01T00:00:00</EndTime>
    </Schedule>

    ______________________________

    The Workflow Variable that I'm using is basically from the "Calculate Date" action which stores the date as an ISO 8601 Date String.

    If I can have an answer it would be most appreciated as I really need to use the Start Workflow with scheduling. Thanks

View Complete Thread
Powered by Community Server, by Telligent Systems