← Back to team overview

dhis2-devs team mailing list archive

Re: TrackedEntityAttribute - uniqueness of name field

 

Hi Romain

Yes, looks like it's the shortname that is the issue....we need to prepend
to the beginning of the TEA as we have multiple copies of these across
programs.

We have the same issue with DataElements too.

Thanks for the response.

Regards

Alan



On Thu, Jun 18, 2015 at 3:36 PM, romain@xxxxxxxxxxx <rtohouri@xxxxxxxxx>
wrote:

> Hi Alan,
> maybe a problem with the shortnames? I notice that the beginning of your
> DE names are the same. Try to specify different shortness or modify the
> beginning of the DE names.
>
> Thx,
>
> Romain
>
> > On Jun 18, 2015, at 21:48, Alan Hill <ahill@xxxxxxxxxx> wrote:
> >
> > Hi there
> >
> > I have two TrackedEntityAttributes with names as follows:
> >
> > HH owns a treated mosquito net
> > HH owns a treated mosquito net/IRS previous 12m
> >
> >
> > Which I am trying to create through the web API.
> >
> > However, only  the first can be created and the second gets rejected due
> to an uniqueness constraint ( duplicate key value violates unique
> constraint "uk_gg9gc0pyaqjuxi8mr4y93i03w )
> >
> > UI gives me "Name in use" error when it has been typed in.
> >
> > Is there a workaround for this or is it a quick fix?
> >
> > Thanks
> >
> > Alan
> >
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~dhis2-devs
> > Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~dhis2-devs
> > More help   : https://help.launchpad.net/ListHelp
>
>

References