Page MenuHomePhabricator

API module wbmergeitems fails if exists label and description for a language in the source item
Closed, DeclinedPublic

Description

I wanted to merge https://www.wikidata.org/wiki/Q16425466 into https://www.wikidata.org/wiki/Q1884111 and I got <<API ERROR CODE: failed-save VALUE: Another item (Q16425466) already has label "Bughea de Jos" and description "comune della Romania nel distretto di Argeș" associated with language code it.>> after data removed from Q16425466.


Version: unspecified
Severity: major
Whiteboard: u=dev c=backend p=0
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=64309

Details

Reference
bz65215

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:21 AM
bzimport set Reference to bz65215.
bzimport added a subscriber: Unknown Object (MLST).

Is this the only time this happened or have you seen it several times?

(In reply to Lydia Pintscher from comment #1)

Is this the only time this happened or have you seen it several times?

I didn't try more times, but I've encountered this before and I can show other pairs which I think will give this error.

It'd be great to have another link or two, yes. Thanks!

Error changed to API ERROR CODE: failed-save VALUE: Item being merged to has conflicting terms: ( => it => Boțești => Q12724570) ( => it =>
comune della Romania nel distretto di Argeș => Q12724570)

merging https://www.wikidata.org/wiki/Q12724570 into https://www.wikidata.org/wiki/Q3396080

Source item is not changed, which is better.

I just had the same issue when I tried to merge https://www.wikidata.org/wiki/Q14538491 into https://www.wikidata.org/wiki/Q2877196.

My dirty workaround failed, so I had to fix it manually.

This is becoming a huge issue with Wikidata the Game.

Works for me locally on master. I wasn't able to reproduce this, no matter how hard I tried.
Next Wikidata deploy is on Tuesday the 27th, if this is still an issue after, that please reopen.

Hm... I recently touch that code. Poke me if this problem doesn't go away.