Error: "No User Found For Given Role" Occurs When Trying To Create Resource Assignment Using API (Doc ID 2208872.1)

Last updated on NOVEMBER 30, 2016

Applies to:

Instantis EnterpriseTrack - Version 16.1.2.1 and later
Instantis EnterpriseTrack Cloud Service - Version 16.1.2.1 and later
Information in this document applies to any platform.

Symptoms

When attempting to create resource assignment to an activity using the API, the following error occurs.

ERROR
-----------------------
No user found for given role.

STEPS
-----------------------
The issue can be reproduced at will with the following steps.

1. Call API to create resource assignment to an activity.

Example:

{"global_properties":{"char_set":"UTF-8","date_format":"MMM/dd/yyyy","language":"en","api_version":"16.1"},"request_data":{"request_type":"create","entity_type":"assignment","output_format":"json","value_delimiter":"|"},"app_data":{"assignment":[{"project_number":{"display_name":"Project ID","value":"<value>"},"project_name":{"display_name":"Project Name","value":""},"activity_path":{"display_name":"Fully qualified path. e.g. root/parent/child","value":"New Build/Build Activities"},"role":{"display_name":"Role","value":"Team Member"},"assignment_type_mv":{"display_name":"Assignment Types. Possible values : 'R', 'A', 'C'.","value":"R"},"resource_descriptor":{"login_id":{"display_name":"Login ID","value":"<value>"}},"plan_descriptor":{"plan_percent_allocation":{"display_name":"Planned Percent Allocation","value":"100"},"plan_ovt_effort":{"display_name":"Planned Overtime Effort.","value":""},"plan_total_effort":{"display_name":"Planned Total Effort. Applicable only if effort type is 'Effort At Resource (Summary)'","value":""},"plan_ovt_cost":{"display_name":"Planned Overtime Cost","value":""},"plan_total_cost":{"display_name":"Planned Total Cost","value":""}},"actual_descriptor":{"actual_percent_allocation":{"display_name":"Actual Percent Allocation","value":"100"},"actual_ovt_effort":{"display_name":"Actual Overtime Effort","value":""},"actual_total_effort":{"display_name":"Actual Total Effort. Applicable only if actual effort type is 'Effort At Resource (Summary)'","value":"5"},"actual_ovt_cost":{"display_name":"Actual Overtime Cost. Applicable if actual effort type is other than 'Effort From finances' and 'Effort from timesheet'.","value":""},"actual_total_cost":{"display_name":"Actual Total Cost","value":""},"est_time_to_complete":{"display_name":"Estimated Time To Complete","value":""},"est_time_to_complete_as_of_date":{"display_name":"Estimated Time To Complete As Of Date","value":""}}}]}}

2. Check the API response.

Example:

{
 "global_properties": {
   "char_set": "UTF-8",
   "date_format": "MMM/dd/yyyy",
   "language": "en",
   "api_version": "16.1"
 },
 "response_data": {
   "request_type": "create",
   "entity_type": "assignment",
   "response_code": "9999",
   "response_desc": "No user found for given role."
 },
 "app_data": {}
}

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms