Uploading Edits to Wikibase (commons) not working

Hi all,

I’ve been adding some structured data to existing Wikimedia files with a small test category, but am not able to upload the changes to Wikibase.

I was struggling with this issue so I installed the latest version of OpenRefine and the Wikimedia extension.

I made my edits, reconciled as needed and prepped the schema for upload.

The Issues and Preview tab are empty when I view them:

I have managed to log into my Wiki account, but when I click “Upload to Wikibase”, it loads for a millisecond and opens the schema page again. I’m stuck in this loop! Is there something I’m doing wrong?

Thank you!

Hi @izzzabel, and welcome to the forum! Is there anything from the logs in the terminal or browser console that you're able to share? Also, is it possible that the edits generated in OpenRefine are already represented in Wikibase? (I'm only a wiki novice so this may be a naive question)

Hi Rory :slight_smile: Thank you! I have checked and the edits are not in Wikibase.

In the terminal, every time I select anything “wikimedia commons” related (e.g. change scheme from “Wikidata” to “Wikimedia Commons”, “upload edits to wikibase” etc., it returns the following:

My apologies if this is obvious - I’m only a computer novice!

Thanks, this is helpful! This looks like a bug in OpenRefine so I'll take a look and create an issue if needed.

Hi there - I'm having what's looking to be a very similar issue, hoping that you may be able to help?

Trying to add depicts statements, testing it on 2 items. File is reconciled to Commons, depicts to Wikidata, but as soon as I drag "depicts" to the relevant box the preview tab appears as in izzabel's post above. Tried it yesterday and again today....

Logs showing as follows:

11:44:59.454 [ refine] POST /command/wikidata/preview-wikibase-schema (5965ms)
11:45:02.189 [ refine] POST /command/wikidata/preview-wikibase-schema (2735ms)
11:45:03.643 [ command] Exception caught (1454ms)
java.lang.NullPointerException
at org.openrefine.wikibase.qa.scrutinizers.FileNameScrutinizer.scrutinize(FileNameScrutinizer.java:73)
at org.openrefine.wikibase.qa.scrutinizers.EditScrutinizer.scrutinize(EditScrutinizer.java:118)
at org.openrefine.wikibase.qa.EditInspector.inspect(EditInspector.java:203)
at org.openrefine.wikibase.commands.PreviewWikibaseSchemaCommand.doPost(PreviewWikibaseSchemaCommand.java:126)
at com.google.refine.RefineServlet.service(RefineServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1410)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:529)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:598)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1580)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:790)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1553)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
at com.google.refine.ValidateHostHandler.handle(ValidateHostHandler.java:93)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
at org.eclipse.jetty.server.Server.handle(Server.java:563)
at org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:753)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:287)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)
at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

That definitely looks like the same stack trace. (Thank you for posting the textual version -- it's MUCH easier to work with.)

Would it be possible to get a copy of the project (or a subset that demonstrates the issue) to save us the work of recreating it when attempting to reproduce the problem?

Tom

Oops, never mind. I just realized that this is the same as #7808 which was recently fixed by @Devansh-18155. I'll see if we can include the fix in the next release (3.10.2).

Tom

oh amazing, thank you! If it helps at all, I'm working with this category on commons: https://commons.wikimedia.org/wiki/Category:ScotGov_Flickr\_-\_Ministerial_Team_2026 - import from Commons Category > create column based on reconciled values > trying to add depicts statements for the individuals, and copyright license, faceting by null/empty to find out where that info is missing.