Internal error while using TimeEntryService3.svc/PutTimeEntry

  • 1
  • Question
  • Updated 3 months ago
  • Acknowledged
  • (Edited)
Hello!

I am currently working on an integration and need to add time and a comment to an arbitrary user's timesheet for a provided day. After some research, it looks like TimeEntryService3.svc/PutTimeEntry is our best bet. 

I have a trial instance set up and gave a user full permissions on everything to circumvent any permissions issues.

With the request body we are sending, I am receiving the following response:
{
"error": {
"code": "InternalServiceFault",
"correlationId": [correlation id],
"reason": "The server was unable to process the request due to an internal error."
} }



This is the request body we are sending:

{
"timeEntry": {
"target": {
"uri": "urn:replicon-tenant:e9a2152f010f4147a93a22b1290d314e:timesheet:95cfc31f-d46c-4d7d-827c-828128868bc3",
"parameterCorrelationId": null
},
"user": {
"uri": "urn:replicon-tenant:e9a2152f010f4147a93a22b1290d314e:user:9",
"loginName": null,
"parameterCorrelationId": null
},
"entryDate": {
"year": 2020,
"month": 6,
"day": 17
},
"timeAllocationTypeUris": [
"urn:replicon:time-allocation-type:project"
],
"interval": {
"hours": {
"hours": "7",
"minutes": "7",
"seconds": null,
"milliseconds": null,
"microseconds": null
},
"timePair": null
},
"customMetadata": [
{
"keyUri": "urn:replicon:time-entry-metadata-key:task",
"value": {
"uri": "urn:replicon-tenant:e9a2152f010f4147a93a22b1290d314e:task:141",
"slug": null,
"bool": null,
"date": null,
"number": null,
"text": null,
"time": null,
"calendarDayDurationValue": null,
"workdayDurationValue": null,
"dateRange": null,
"collection": []
}
},
{
"keyUri": "urn:replicon:time-entry-metadata-key:comments",
"value": {
"uri": null,
"slug": null,
"bool": null,
"date": null,
"number": null,
"text": "api comment",
"time": null,
"calendarDayDurationValue": null,
"workdayDurationValue": null,
"dateRange": null,
"collection": []
}
}
],
"extensionFieldValues": []
},
"unitOfWorkId": "bfyhrudevbfr"
}
I'm not entirely sure where to go from here. The error message is too vague to figure out what the issue is. Any help is appreciated
Photo of Bell, Diana

Bell, Diana

  • 1 Post
  • 0 Reply Likes

Posted 3 months ago

  • 1
Photo of Vinodh.V

Vinodh.V, Community Moderator

  • 341 Posts
  • 9 Reply Likes
Hello Diana,

Thank you for posting your query in Replicon Community.

I understand, that you are trying to add time entry using "TimeEntryService3.svc, using the "PutTimeEntry"

I will ask one of our support team members to reach out to you and assist you further with this.

We would require more details in order to assist you with this query.

Regards,

Vinodh.V