Skip to main content
Planview Customer Success Center

Error Number -7 when adding a task using COM API

Symptoms

The Web Service log has the following information : 

11:39:38 AM Level2: Error: Number= -7 11:39:38 AM Level2: StackTrace: at Changepoint.ChangepointAPI2.ApiException.CopyError(ApiException ex, Boolean throwException) at Changepoint.ChangepointAPI2.ApiException.CopyError(Exception ex, Boolean throwException) at Changepoint.ChangepointAPI2.ApiTask.Add(String& sId) at Changepoint.CPWebService.Task.Add(String& sId, ApiTask oTask)

The COM log :

11:39:37 AM Level1: Source: Changepoint.ChangepointAPI2.ApiTask.Add 11:39:37 AM Level3: sId: 11:39:38 AM Level2: Error: Number= -7 Message= Parameters are missing or not correct. Get Project Customer/Engagement info failed. 11:39:38 AM Level1: Log for this source is end.


Resolution

Check if the ProjectId/EngagementId exists in the Project/Engagement tables, before adding the task.