I am trying to update a FieldValueCollection with a date value to a data type of date. I am getting the following error.
Multistatus response. (9039)
Bad field value. (9017)
Another operation on which this operation depends failed. (9054)
Another operation on which this operation depends failed. (9054)
here is the code;
' ********** format date values ********** 4-2-14 If mArray(z, 0) = "Date" Then Dim s As Integer = InStr(IndexArray(z + 1).ToString, " ") Dim curDate As Date = CDate(IndexArray(z + 1)) 'Left(IndexArray(z + 1), s - 1) IndexArray(z + 1) = curDate End If Console.WriteLine(mArray(z, 0) & " = " & IndexArray(z + 1)) FVC.Add(mArray(z, 0).ToString, IndexArray(z + 1).ToString) EI.SetFieldValues(FVC) EI.Save() Next z
the error occurs at the EI.Save
if I change the field data type to text it works fine. I have formatted the string to a date, and still no luck. any ideas?
Phil Joyce