Groupshare API - changeassignment response error 500

Hello,

i am receiving error 500 while accessing projectserver/api/1.0/projects/{projectId}/changeassignment. Please find the created json content underneath.

note: the assigned users field contains the user guids. The documentation just sets here the string "test". Do you have further Information what should be set here?

"{
 \"Comment\":\"Test\",
 \"Files\":[
  { 
   \"LanguageFileId\":\"07cbae8e-500f-46a0-8a41-0a0e94fc5160\",
   \"DueDate\":\"2015/09/30\",
   \"PhaseId\":\"1497\",
   \"AssignedUsers\":[\"ab651f46-41dd-4b47-9933-04b645be8ad4\"]
  },
  { 
   \"LanguageFileId\":\"4aa9539e-7aac-4879-8930-26c7988f8018\",
   \"DueDate\":\"2015/09/30\",
   \"PhaseId\":\"1497\",
   \"AssignedUsers\":[\"ab651f46-41dd-4b47-9933-04b645be8ad4\"]
  },
 ]
}"

Kind regards,

Fabian

Parents
  • Hi Fabian,

    Sorry for the late answer. You're assumption that the AssignedUsers value is the cause of the error is right. The AssignedUsers expects an array of usernames, instead of user guids.

    I tested the change assignment call and it works (given that all parameters are correct). As a general note though, if something goes wrong, the first thing to check is the Application Service log, located under C:\%programdata%\SDL\Service\Logs\Sdl.Application.log. In this case you should have an error similar to:
    2015-10-02 13:53:28.759#Sdl.StudioServer.Services.ProjectServer.RestApi.ExceptionLoggerFilter#web service error
    System.InvalidOperationException: User 'ab651f46-41dd-4b47-9933-04b645be8ad4' does not exist.
    at Sdl.StudioServer.Services.ProjectServer.ProjectServerManager.CheckIfUserIsValid(String username)

    I will make sure that we revise the documentation and improve on it for the upcoming releases. We will try to add more details on the expected parameters and more meaningful examples.

    Thanks.

Reply
  • Hi Fabian,

    Sorry for the late answer. You're assumption that the AssignedUsers value is the cause of the error is right. The AssignedUsers expects an array of usernames, instead of user guids.

    I tested the change assignment call and it works (given that all parameters are correct). As a general note though, if something goes wrong, the first thing to check is the Application Service log, located under C:\%programdata%\SDL\Service\Logs\Sdl.Application.log. In this case you should have an error similar to:
    2015-10-02 13:53:28.759#Sdl.StudioServer.Services.ProjectServer.RestApi.ExceptionLoggerFilter#web service error
    System.InvalidOperationException: User 'ab651f46-41dd-4b47-9933-04b645be8ad4' does not exist.
    at Sdl.StudioServer.Services.ProjectServer.ProjectServerManager.CheckIfUserIsValid(String username)

    I will make sure that we revise the documentation and improve on it for the upcoming releases. We will try to add more details on the expected parameters and more meaningful examples.

    Thanks.

Children
No Data