Skip to main content
Planview Customer Success Center

Error -1 when creating objects via API (2012)

SYMPTOMS

When creating objects, e.g. expenses, through the API, there is an error -1. The object is created in Changepoint but the UDF data is incomplete.

ERROR

In ws log file:

Source: Changepoint.CPWebService.Expense.SaveUDF

Error: Number= -1

In com log file:

Error: Number= -1 Message= Operation failed (system error).
6:32:31 AM Level2: StackTrace:    at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)

 


RESOLUTION

The error in the com API log indicates a problem with a date custom field. Please check all date custom fields that are configured for the object to create and make sure that valid date values are passed into the API.