PutProject - No URI Provided

  • 1
  • Problem
  • Updated 2 years ago
  • Solved
I'm attempting to create a project from the testing UI Replicon provides (https://na3.replicon.com/services/ImportService1.svc/help/test/PutProject) with the PutProject method and am receiving the following error:
{
"error": { "code": "Sender", "correlationId": "28947bb90ee94de0aec16728a638defd", "reason": "URI not found : No URI Provided : ", "details": { "displayText": "No URI Provided", "uri": null }, "type": "UriError1" } }
Request Body (minus a few custom fields for brevity)
{
"project": {
"target": {
"uri": null,
"name": "SFDC Test Project",
"parameterCorrelationId": null
},
"projectInfo": {
"name": "SFDC Test Project",
"code": "TP",
"description": "Test project description.",
"timeEntryDateRange": null,
"projectStatusLabel": null,
"percentCompleted": "23",
"client": null,
"program": null,
"projectLeader": null,
"customFieldValues": [],
"isTimeEntryAllowed": "true",
"costTypeUri": null,
"estimatedHours": null,
"estimatedCost": null,
"estimatedExpenses": null,
"budget": null,
"isProjectLeaderApprovalRequired": "true",
"estimationModeUri": null,
"billingTypeUri": null,
"timeAndMaterials": null,
"defaultBillingCurrency": null
},
"tasks": [],
"team": null,
"expenses": null,
"timeAndMaterials": null,
"fixedBid": null
}
}


I'm a little confused as the description for this method states:
This operation is for putting entire projects, including tasks, team, expenses + billing (note that allocations are not updated) - if a ImportProjectParameter1.target.projectName is specified and not found, it will create that project

Why am I unable to create a project? What am I missing?
Photo of Broquist, Jonathan

Broquist, Jonathan

  • 2 Posts
  • 1 Reply Like

Posted 2 years ago

  • 1
Photo of Shenoy Sukumaran

Shenoy Sukumaran

  • 7 Posts
  • 0 Reply Likes
Hi Broquist,

Please pass correct billingTypeUri also (e.g. urn:replicon:billing-type:non-billable, fixed-bit, time-and-meterials). I know its giving a indication as optional filed. :(

Also it recommend to use PutProject4 instead of PutProject

Thanks
(Edited)
Photo of Aashnee Kamboj

Aashnee Kamboj, Community Moderator

  • 1560 Posts
  • 108 Reply Likes
HI Jonathan,

Please try as suggested by Shenoy and let us know if the issue persists.

Thanks,
Aashnee Kamboj
Photo of Broquist, Jonathan

Broquist, Jonathan

  • 2 Posts
  • 1 Reply Like
That worked! Thank you!

Might be a useful to update the documentation to mark those fields as required to help developers avoid this issue in the future.
(Edited)