← Back to team overview

dhis2-users team mailing list archive

Re: API-Response from api/setDataValues

 

Hi Uwe,

currently there is no such parameter.

You will still get those validation warnings in the response (such as data
elements not allowing future dates, etc).

When a record is ignored without violating any validation checks that
usually means it was considered a new value but had a null or missing value.

regards,

Lars





On Thu, Feb 11, 2016 at 9:58 AM, Uwe Wahser <uwe@xxxxxxxxx> wrote:

> Dear all,
>
> when importing dataValues into DHIS2 via api/setDataValues I get a certain
> number of values that are being ignored. Is there a api-parameter that can
> give
> me a more detailed feedback in the response than just the number of ignored
> values?
>
> I remember that I always got an error-message with a list of rejected
> dates in
> the api response before I allowed future-dates (json-field 'conflicts':
> "conflicts":[{"object":"20460411","value":"Data element does not allow for
> future periods through data sets: X9etg5beTot"}]). It would help a lot for
> debugging, if I got this kind of information for the remaining conflicts.
>
> Currently running on 2.22 (standard Ubuntu 14.04 & Oracle 8), not sure
> though,
> whether the conflicts field was still under 2.21.
>
> Thanks a lot,
>
> Uwe
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>



-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org <https://www.dhis2.org/>

References