[Dhis2-devs] Fwd: User Creation failing via Metadata API.

2014-06-17 Thread Jason Pickering
Forwarding to the list for everyone's benefit. Better if you respond to the list, so that it is more clear to everyone else what the underlying cause might be. Best regards, Jason -- Forwarded message -- From: Kiran Prakash kprak...@thoughtworks.com Date: Tue, Jun 17, 2014 at

Re: [Dhis2-devs] Fwd: User Creation failing via Metadata API.

2014-06-17 Thread Kiran Prakash
We think the issue is because UserCredentialsStore is not a type of GenericIdentifiableObjectStore. Ids are a non issue. We've local changes on our branch that allows for this kind of Id. To be sure, I tested with this payload. Same error. { users: [ {

Re: [Dhis2-devs] Fwd: User Creation failing via Metadata API.

2014-06-17 Thread Kiran Prakash
please ignore that* id: 0* line. I tested it without that. On Tue, Jun 17, 2014 at 4:14 PM, Kiran Prakash kprak...@thoughtworks.com wrote: We think the issue is because UserCredentialsStore is not a type of GenericIdentifiableObjectStore. Ids are a non issue. We've local changes on our

Re: [Dhis2-devs] Fwd: User Creation failing via Metadata API.

2014-06-17 Thread Morten Olav Hansen
There have been no changes to UserCredentials, and it doesn't require an idStore since it's handled differently in the importer. I will have a look at it -- Morten On Tue, Jun 17, 2014 at 12:46 PM, Kiran Prakash kprak...@thoughtworks.com wrote: please ignore that* id: 0* line. I tested it

Re: [Dhis2-devs] Fwd: User Creation failing via Metadata API.

2014-06-17 Thread Morten Olav Hansen
Can you give some more details about the error you get? is it just not updating, or is it giving you an exception? some kind of conflict report? -- Morten On Tue, Jun 17, 2014 at 12:48 PM, Morten Olav Hansen morte...@gmail.com wrote: There have been no changes to UserCredentials, and it

Re: [Dhis2-devs] Fwd: User Creation failing via Metadata API.

2014-06-17 Thread Kiran Prakash
yes. getting the following conflict report. importTypeSummaries: [ { status: SUCCESS, importCount: { imported: 0, updated: 1, ignored: 0, deleted: 0 }, type: User,

Re: [Dhis2-devs] Fwd: User Creation failing via Metadata API.

2014-06-17 Thread Morten Olav Hansen
Hm, ok. So you are creating a new user, right? I see it says, updated: 1, which means it selected the wrong strategy. -- Morten On Tue, Jun 17, 2014 at 12:56 PM, Kiran Prakash kprak...@thoughtworks.com wrote: yes. getting the following conflict report. importTypeSummaries: [ {

Re: [Dhis2-devs] Fwd: User Creation failing via Metadata API.

2014-06-17 Thread Kiran Prakash
yes, it's a new user create call. On Tue, Jun 17, 2014 at 4:47 PM, Morten Olav Hansen morte...@gmail.com wrote: Hm, ok. So you are creating a new user, right? I see it says, updated: 1, which means it selected the wrong strategy. -- Morten On Tue, Jun 17, 2014 at 12:56 PM, Kiran Prakash

Re: [Dhis2-devs] Fwd: User Creation failing via Metadata API.

2014-06-17 Thread Morten Olav Hansen
Hi, I was able to create a new user, and also update it as usual.. the conflict you are seeing means nothing and can be ignored. Are you staying nothing gets saved to the db? -- Morten On Tue, Jun 17, 2014 at 1:27 PM, Kiran Prakash kprak...@thoughtworks.com wrote: yes, it's a new user create