'startIndex must be less than length of string' deploying workflow w/ Infopath form

  •  02-27-2008, 9:43 AM

    'startIndex must be less than length of string' deploying workflow w/ Infopath form

    I'm deploying a workflow with an Infopath form to a MOSS 2007 forms library. Previously this would deploy but give an error when using the form, but now it will not deploy at all. It fails during the build process with the following:

     Error 1 Property accessor 'Path' on object 'SourceCode.Workflow.Design.InfoPath.FormTemplateItem' threw the following exception:'startIndex must be less than length of string.
    Parameter name: startIndex'
       at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component)
       at SourceCode.Framework.PersistableObject.Validate()
       at SourceCode.Framework.PersistableContainerObject.Validate()
       at SourceCode.Framework.PersistableObject.SourceCode.Framework.IValidationContainer.Validate()
       at SourceCode.Framework.PersistableObject.Validate()
       at SourceCode.Framework.PersistableContainerObject.Validate()
       at SourceCode.Framework.PersistableObject.SourceCode.Framework.IValidationContainer.Validate()
       at SourceCode.Framework.PersistableContainerObject.Validate()
       at SourceCode.Framework.WizardDefinition.SourceCode.Framework.IValidationContainer.Validate()
       at SourceCode.Framework.PersistableObject.Validate()
       at SourceCode.Framework.PersistableContainerObject.Validate()
       at SourceCode.Workflow.Authoring.Process.Validate()
       at SourceCode.Framework.PersistableObject.SourceCode.Framework.IValidationContainer.Validate()
       at SourceCode.DeploymentTasks.Compiler.WorkflowCompiler.Execute() C:\Program Files\MSBuild\SourceCode\v1.0\ProjectSystem.targets 28 6 Expense2

    Does anyone know the cause of this?

View Complete Thread