(copied from https://www.wikidata.org/wiki/Wikidata:Contact_the_development_team#internal_api_error_MWException_on_test.wikidata.org)
I tried to add quantity to a property with bot but I have error: <error code="internal_api_error_MWException" info="Exception Caught: Internal error in ApiFormatXml::recXmlPrint: (P10, ...) has integer keys without _element value. Use ApiResult::setIndexedTagName()." xml:space="preserve" />. This is the claim that I want add:
{
"claims" : [{ "mainsnak" : { "snaktype" : "value", "property" : "P69", "datavalue" : { "value" : { "amount" : "+1000", "unit" : "1", "upperBound" : "+1001", "lowerBound" : "+999" }, "type" : "quantity" } }, "type" : "statement", "rank" : "normal" } ]
}
My error or some problem in API? --ValterVB (talk) 10:41, 23 November 2013 (UTC)
However the claim is recorded in database. --ValterVB (talk) 09:31, 24 November 2013 (UTC)
Version: master
Severity: blocker