Hi
Please be aware that there are differences from JSON to XML here. An empty
collection in JSON is set to empty, but an empty collection in xml is set
to -null-, so please never include an empty collection if you are using XML.
--
Morten
On Wed, Jul 1, 2015 at 2:22 AM, Halvdan Grelland
wrote:
Ok. It would be good to know the typo in question. Doesn't seem like a
reasonable response for a misspelled url.
2015-06-30 21:15 GMT+02:00 Dan Cocos :
> To follow up I just discovered why it wasn’t working I had a typo in the
> URL, though the error was a bit misleading.
>
>
> On Jun 30, 2015, a
To follow up I just discovered why it wasn’t working I had a typo in the URL,
though the error was a bit misleading.
> On Jun 30, 2015, at 1:44 PM, Dan Cocos wrote:
>
>
> I still get an error when I try with the following, I’ve attached a copy of
> the complete stack trace.
>
> xmlns="http
I am unable to reproduce the issue on the 2.19 demo server. What version
are you on?
The stack trace you've provided is unfortunately pretty sparse. Could you
have a look in the tomcat log and see if there's some more? There's nothing
pointing at the actual root cause in this one.
2015-06-30 19:4
I still get an error when I try with the following, I’ve attached a copy of the complete stack trace.http://dhis2.org/schema/dxf/2.0"> false 2015-05-20T23:00:00.000+ BAO Test or this http://dhis2.org/schema/dxf/2.0"> false 2015-05-20T23:00:00.000+ BAO Test Title: Apache Tomcat/7.0.54 -
I'm assuming you meant a 405 (method not supported)? A 504 is a gateway
timeout, which doesn't seem applicable.
You should be able to delete orgunits through the same endpoint. Example:
curl -v -X DELETE "https://server/api/organisationUnits/" -u
user:password
(I tried it on the one i created on
Thank you!
I’ve also found that trying to delete OUs via the API causes a 504 Request
method 'DELETE' not supported
Are we not able to delete OUs via the API?
> On Jun 30, 2015, at 1:15 PM, Halvdan Grelland wrote:
>
> Hi Dan,
>
> I was able to reproduce the issue on our demo server. It seems
Hi Dan,
I was able to reproduce the issue on our demo server. It seems to be due to
the empty attributevalues-element. Removing it caused the import to work as
expected. Why this is, however, I do not know. We are currently looking
into a separate AttributeValue-related issue with the importer, wh
Hi All,
I’m trying to post a simple XML file to create an OU the following is curl call
and the contents of the file (ou.xml)
curl -d @ou.xml "https://example.com/api/organistaionUnits"; -X POST -H
"Content-Type: application/xml" -u admin:district
http://dhis2.org/schema/dxf/2.0";>
fa
9 matches
Mail list logo