Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Unable to create a build



  • Hi,

    I'm getting the following error when creating a new build:

    System.ArgumentException: String was not recognized as a valid DateTime.Couldn't store <2012/10/15 10:36:10:AM> in DATE Column. Expected type is DateTime. ---> System.FormatException: String was not recognized as a valid DateTime.

    My deployment plan has one action which is to execute database change scripts. The change script executed without errors in the change script window.

    Call stack info:
    at System.Environment.get_StackTrace()
    at Inedo.BuildMaster.Diagnostics.Logger.DatabaseErrorMessenger.Inedo.BuildMaster.Diagnostics.IMessenger.Message(MessageLevels messageLevel, String messageOrFormat, Object[] args)
    at Inedo.BuildMaster.Diagnostics.Logger.Message(MessageLevels messageLevel, String messageOrFormat, Object[] args)
    at Inedo.BuildMaster.Windows.ServiceApplication.PlanExecuter.executionThread_Execute(Object execIdObj)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart(Object obj)

    Message:
    System.ArgumentException: String was not recognized as a valid DateTime.Couldn't store <2012/10/15 10:36:10:AM> in DATE Column. Expected type is DateTime. ---> System.FormatException: String was not recognized as a valid DateTime.
    at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
    at System.String.System.IConvertible.ToDateTime(IFormatProvider provider)
    at System.Data.Common.DateTimeStorage.Set(Int32 record, Object value)
    at System.Data.DataColumn.set_Item(Int32 record, Object value)
    --- End of inner exception stack trace ---
    at System.Data.DataColumn.set_Item(Int32 record, Object value)
    at System.Data.DataRow.set_Item(DataColumn column, Object value)
    at Inedo.BuildMaster.Templating.ActionPropertiesVariableReplacer.ToDataContext()
    at Inedo.BuildMaster.Templating.ActionPropertiesVariableReplacer.ApplyVariableReplacementsToActionProperties(ActionBase action)
    at Inedo.BuildMaster.Windows.ServiceApplication.PlanActionExecuter..ctor(DataRow buildExecActionExRow, ExecutionContext execContext)
    at Inedo.BuildMaster.Windows.ServiceApplication.PlanExecuter.executionThread_Execute(Object execIdObj)

    Please help as I cannot see what I'm doing wrong.

    Thanks!



  • What region is your server set to?



  • Server locale was set to South Africa. I have changed to US and now it works. Do you plan to support regions other than US?



  • Yes we do support other regions, we will file this as a bug targeted for the next release. Thank you for the report.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation