[Dhis2-devs] Error while creating a new user.

2016-12-29 Thread Sourabh Bhardwaj
Hi all, I am getting an error while creating a new user through web api(using 2.25 Build revision: edc697d) Following is the error: *attempted to assign id from null one-to-one property [org.hisp.dhis.user.UserCredentials.userInfo]"* Following is the payload i am referring to: { "firstName"

Re: [Dhis2-devs] Error while creating a new user.

2016-12-29 Thread Morten Olav Hansen
Hi Our user model is a bit weird at times (will try to fix for 226). As a workaround you should be able to get this working if you use /api/system/id to get a new uid, then add that to the main user model "id": "your-uid", then inside the userCredentials you would put "userInfo": {"id": "your-id"

Re: [Dhis2-devs] Error while creating a new user.

2016-12-29 Thread Sourabh Bhardwaj
Hi Morten, Thanks for the reply. I have tried as per your suggestion and now getting following error: Internal server error: 500 Can not deserialize instance of java.lang.String out of START_ARRAY token↵ at [Source: org.apache.catalina.connector.CoyoteInputStream@3b6c6ca3; line: 1, column: 22] (t

Re: [Dhis2-devs] Error while creating a new user.

2016-12-29 Thread Morten Olav Hansen
Hm that means something is wrong with your payload. Could you give the full payload again? -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Dec 29, 2016 at 1:04 PM, Sourabh Bhardwaj wrote: > Hi Morten, > > Thanks for the reply. I have tried as per y

Re: [Dhis2-devs] Error while creating a new user.

2016-12-29 Thread Sourabh Bhardwaj
I have recheck the payload again and now its working fine. Thanks for your time. On Thu, Dec 29, 2016 at 6:06 PM, Morten Olav Hansen wrote: > Hm that means something is wrong with your payload. Could you give the > full payload again? > > -- > Morten Olav Hansen > Senior Engineer, DHIS 2 > Unive

[Dhis2-devs] DHIS2 Live - problems generating resource tables

2016-12-29 Thread David Siang Fong Oh
Hi team, We are encountering problems generating resource tables and analytics tables using the DHIS2 Live version downloadable at: https://www.dhis2.org/download/live/dhis2-live.zip Here is the errors that we see in the DHIS2 app: 2016-12-29 13:48:52 Process failed: StatementCallback; bad SQL