API-Response from api/setDataValues

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

I just saw that Bob already filed a very useful Blueprint for something like
this in 2014
(https://blueprints.launchpad.net/dhis2/+spec/detailed-import-summary) Has there
any work been done on this so far, as the check for future dates obviously does
something like this?

···

Uwe Wahser <uwe@wahser.de> hat am 11. Februar 2016 um 11:58 geschrieben:

Dear all,

when importing dataValues into DHIS2 via api/dataValueSets 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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp

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@wahser.de 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@lists.launchpad.net

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