thanks for bringing this up. I had a look and the problem was that the demo database misses codes for most categories. Seems ADX requires codes to be present also for categories and category options which are associated with data elements in the data set.
The other problem was that the ADX code swallowed the exception instead of returning it through the API. I have done a fix now in trunk and 2.23 for this where 409 and a message is returned. I am now getting this:
{“httpStatus”:“Conflict”,“httpStatusCode”:409,“status”:“ERROR”,“message”:“Category code for Commodities is missing or invalid: null”}
So to fix this, I suggest you upgrade to latest 2.23 and make sure that codes are present also for categories and category options in you local system.
Thanks for reporting and for reproducing on the demo.
best regards,
Lars
···
On Wed, Apr 27, 2016 at 11:49 PM, Lorill Crees lcrees@2paths.com wrote:
Hi,
I’m playing around with retrieving data in ADX format. I’ve been looking at the documentation here:
On Thu, Apr 28, 2016 at 1:32 AM, Lars Helge Øverland lars@dhis2.org wrote:
Hi Lorill,
thanks for bringing this up. I had a look and the problem was that the demo database misses codes for most categories. Seems ADX requires codes to be present also for categories and category options which are associated with data elements in the data set.
The other problem was that the ADX code swallowed the exception instead of returning it through the API. I have done a fix now in trunk and 2.23 for this where 409 and a message is returned. I am now getting this:
{“httpStatus”:“Conflict”,“httpStatusCode”:409,“status”:“ERROR”,“message”:“Category code for Commodities is missing or invalid: null”}
So to fix this, I suggest you upgrade to latest 2.23 and make sure that codes are present also for categories and category options in you local system.
Thanks for reporting and for reproducing on the demo.
best regards,
Lars
On Wed, Apr 27, 2016 at 11:49 PM, Lorill Crees lcrees@2paths.com wrote:
Hi,
I’m playing around with retrieving data in ADX format. I’ve been looking at the documentation here: