Having an issue with PutTask

  • 1
  • Question
  • Updated 1 month ago
  • Answered
I am attempting to create a task with the Replicon API using the following JSON. 
All the required fields are filled in, however i'm getting a Server Fault Error. Any help would be appreciated.
{
  "error": {
    "code": "InternalServiceFault",
    "correlationId": "a2583da06f7a4bfcb0898efd1fec9d2e",
    "reason": "The server was unable to process the request due to an internal error."
  }
}
{ "project": { "uri": "urn:replicon-tenant:test-tenant-g3new:project:21", "name": null, "parameterCorrelationId": null }, "task": { "target": null, "name": "Test", "code": null, "description": "Test", "timeEntryDateRange": null, "percentCompleted": "0", "isTimeEntryAllowed": null, "estimatedHours": null, "isClosed": null, "customFieldValues": [], "estimatedCost": null, "costTypeUri": null, "timeAndExpenseEntryTypeUri": "urn:replicon:time-and-expense-entry-type:billable", "assignedResources": [ { "uri": null, "resourcePlaceholderParameterCorrelationId": null, "user": { "uri": "urn:replicon-tenant:test-tenant-g3new:user:4",
          "loginName": null,
          "parameterCorrelationId": null
        },
        "department": null,
        "placeholder": null,
        "location": null,
        "division": null,
        "costCenter": null,
        "serviceCenter": null,
        "departmentGroup": null,
        "employeeTypeGroup": null
      }
    ]
  } 
}

Steve 
Photo of Steve Hallam

Steve Hallam

  • 1 Post
  • 0 Reply Likes

Posted 1 month ago

  • 1
Photo of Vinodh.V

Vinodh.V, Community Moderator

  • 86 Posts
  • 2 Reply Likes
Hello Steve,

Thank you for posting your query in Replicon Support.

I understand you are trying to create a task using Replicon API using JSON and getting an error message "The server was unable to process the request due to an internal error."

I am currently looking into this query and will update you.

Regards,

V. Vinodh
(Edited)
Photo of Vinodh.V

Vinodh.V, Community Moderator

  • 86 Posts
  • 2 Reply Likes
Hello Steve,

Thank you for your time.

The error message that you get is caused due to missing required fields.

We would request you to refer to the attached screenshot and ensure that all required fields have a value.



In the above screenshot, the task name that we are adding is Test3.

Please do make the changes accordingly and attempt to add and let us know if you have any further questions.

We have also made changes to your existing JSON and added it here:
{
"project": {
"uri": "urn:replicon-tenant:test-tenant-g3new:project:21",
"name": null,
"parameterCorrelationId": null
},
"task": {
"target": {
"uri": null,
"name": "Test",
"parent": null,
"parameterCorrelationId": null
},
"name": "Test",
"code": null,
"description": "Test",
"timeEntryDateRange": null,
"percentCompleted": "0",
"isTimeEntryAllowed": "1",
"estimatedHours": null,
"isClosed": "0",
"customFieldValues": [],
"estimatedCost": null,
"costTypeUri": null,
"timeAndExpenseEntryTypeUri": "urn:replicon:time-and-expense-entry-type:billable",
"assignedResources": [
{
"uri": null,
"resourcePlaceholderParameterCorrelationId": null,
"user": {
"uri": "urn:replicon-tenant:test-tenant-g3new:user:4",
"loginName": null,
"parameterCorrelationId": null
},
"department": null,
"placeholder": null,
"location": null,
"division": null,
"costCenter": null,
"serviceCenter": null,
"departmentGroup": null,
"employeeTypeGroup": null
}
]
}

Please do check that and feel free to revert for any further queries.

Regards,

Vinodh. V
(Edited)