Home
Blog
Overview of all products
SalesData
LibraryData
CataList
Loan Stars
BiblioShare
Webform
EDI
Products for publishers
Products for retailers
Products for libraries
Information for authors
BNC Research
Canadian literary awards
SalesData & LibraryData Research Portal
Events
Tech Forum
Webinars & Training
Code of Conduct
Standards
EDI standards
Product identifiers
Classification schemes
ONIX standards
About
Contact us
Media
Bestseller lists
Newsletters
Podcast
Jobs
SalesData
LibraryData
CataList
BiblioShare
Webform
EDI

BookNet Canada

Home
Blog
Overview of all products
SalesData
LibraryData
CataList
Loan Stars
BiblioShare
Webform
EDI
Products for publishers
Products for retailers
Products for libraries
Information for authors
BNC Research
Canadian literary awards
SalesData & LibraryData Research Portal
Events
Tech Forum
Webinars & Training
Code of Conduct
Standards
EDI standards
Product identifiers
Classification schemes
ONIX standards
About
Contact us
Media
Bestseller lists
Newsletters
Podcast
Jobs
SalesData
LibraryData
CataList
BiblioShare
Webform
EDI
Elizabeth Barker
May 15, 2020
BiblioShare, ONIX, Standards & Metadata

What invalidates an ONIX file?

Elizabeth Barker
May 15, 2020
BiblioShare, ONIX, Standards & Metadata
Darkwing Duck is standing and below there's a caption that says: let's get technical.

Let’s get technical.

One of the perks of using BiblioShare as your data aggregation system is that you send us your file and we run it against the standard Schema and then tell you whether or not it’s valid.

And if you’re at all confused by the words I just threw at you, don't fret because you’re not the only one.

Schema, according to EDItEUR, is the formal definition of the structure, content, and, to some extent, the semantics (or meaning) of data in an XML file — in this case, an ONIX XML message.

If your ONIX file is valid, it means that everything is where it should be and all pertinent information is logically linked, and therefore, a data end-user can make use of it. Whether or not the information provided makes sense doesn’t strictly depend on passing the validation, we recommend always checking up on your data to see how your intended end user is displaying it — or if it’s even there.

@BookNet_Canada shares common errors that invalidate ONIX files and how to fix them.
CLICK TO TWEET

But what if you receive an email from BookNet that says your file has failed validation? What does that mean?

Well, first of all it means that your file did not make it in to BiblioShare and so can’t inform anyone of anything because it’s not available. And while the good little elves of BNC do sometimes go in and fix the errors that caused your file to fail validation, it also means that there’s going to be a delay between the time you sent it and the time it finally gets in to BiblioShare. While that may not seem like a big deal, think of your deadlines. Have a sales conference coming up? If you’re trying to get updated or fresh title information into CataList, did you know it can take up to three days for the data to display based on volume received that day? And that's if your file makes it in to BiblioShare.

Here are the most common (but easily-fixable) errors we see in metadata that lead to failed validation.

1. The wrong codelist version

ONIX 3.0 has some pretty nifty values that can make it possible to share specific things like whether or not your book has a table of contents for illustrations, or lets you add in some key place names for indexing and search usage. But if you add value 30 “Table of Contents” from List 25 “Illustration and Other Content Type” and/or B5 “Key Place Names” from List 27 “Subject Scheme Identifier” in your ONIX 2.1 and send it off to retailers, do you know what they learn about your books?

Nothing. Because the file invalidated and didn’t distribute.

The fix: ONIX 2.1 uses the codelists associated with Issue 36. Anything that was added to the codelists after that (Issue 37 and beyond) is meant only for your ONIX 3.0 and cannot be used in 2.1. While there are some values that appear in Issue 36 and are still in use today, you need to make sure your system or your ONIX editing software provider are using the proper codelist versions.

2. Bad links

There are many opportunities within ONIX (especially ONIX 3.0) that allow you to send end users outside your metadata. You can include links to full reviews on third party sites, sites where your images are hosted, or even an author’s website. But using invalid links will cause your entire file to become invalid.

The fix: An extremely common cause of this is copying and pasting the link to a PDF or image that’s appearing in your browser but is actually hosted on your own hard drive. It doesn’t hurt to always test out the link before adding it to your ONIX editor. And as a general best practice, make sure that if you change where you host your files, you update your ONIX. This can often be easily overlooked with backlist titles as they’ve been around for so long you can forget who is pulling what from where.

Speaking of backlist books, it’s also good to check those third-party links every few years — especially if you’re pointing to reviews and have not otherwise included them in your ONIX.

3. Blanks

Invalid files are sometimes caused simply by forgetting to close a tag, ONIX is at its heart an XML document, which means that if you open one tag, you must close it. For most, an ONIX editor ensures this doesn’t occur. But it means a related problem can pop up, the one where there are tags, but no values.

Some ONIX composites are mandatory. You can’t have a valid ONIX file if you don’t include an identifier. Without an identifier all you have is a really boring (and kind of confusing) document. Most editors make it impossible to export unless all required fields are filled out in full, but there’s a bit of a loophole. Some composites don't become mandatory until you add its predecessor. The reason is that this new branch of information requires extra tags to make it logical and complete.

Take for instance “Key Names” in the Authorship section (P.7). You have a single contributor (not a corporate entity) and you include their name, their name inverted, and an honourific. If you stopped right there your file would validate. But what if you add a prefix to a key name and then stopped? Suddenly your file is invalid.

Why? Because a prefix for a key name is dependant on there being a key name. In ONIX, P.7.13 Person name part 3: prefix to key names (<b039>) is followed by P.7.14 Person name part 4: key name(s) (<b040>). If you supply <b039> and nothing else, invalid. If you supply <b039> and then “<b040></b040>”, still invalid because there’s no information between those tags. It’s exactly the same as not including them.

The fix: If you want to avoid blank tags, it never hurts to check EDItEUR’s Best Practices and see what needs to be included when, but remember, just because you included the tags, doesn’t mean you’ve necessarily fulfilled the requirement.

And don’t overlook the power of speaking to your ONIX software provider or ONIX creator. If your books are fulfilling a niche in the market, it follows that you could need some niche data to explain it. So be a squeaky wheel and claim that grease! Your metadata deserves a smooth ride.

You can see more articles and resources related to the transition to ONIX 3.0 here. If you come across other common issues, let us know. We’re here to help you.

If you’d rather be in touch “in person” we’re hosting bi-weekly online group sessions, where you can talk to our Standards Team (which includes the indomitable Tom Richardson) about the areas you’re struggling with, or just drop in to see if you’re on track. Register here.

Subscribe

Don’t miss any new blog posts. Sign up for our weekly eNews to receive updates.

You can unsubscribe at any time. We respect your privacy.

Thank you!
Recent posts
Canadian book borrowers in 2024
Canadian book borrowers in 2024

Insights into the behaviour of Canadian book borrowers.

Read More →
Standards goals for 2025: A recap and a conversation about what may be next
Standards goals for 2025: A recap and a conversation about what may be next

Book supply chain standards are changing rapidly, let us help identify which recent updates are relevant to you.

Read More →
May 2025 Loan Stars Junior Canadian top picks
May 2025 Loan Stars Junior Canadian top picks

Find out what titles made it to the May 2025 Loan Stars Junior Canadian list.

Read More →
Canadian book buyers in 2024
Canadian book buyers in 2024

Insights into the behaviour of Canadian book buyers.

Read More →
Common metadata issues and how to fix them: Forgetting to include related products in your metadata
Common metadata issues and how to fix them: Forgetting to include related products in your metadata

Tips on including related products in your metadata.

Read More →
Podcast: Canadian bookmark project
Podcast: Canadian bookmark project

This month we’re talking with Chandler Jolliffe, owner of Cedar Canoe Books in Huntsville.

Read More →
 The Canadian Book Consumer Study 2024 is now available
The Canadian Book Consumer Study 2024 is now available

Get a free copy of the study in PDF or EPUB format today!

Read More →
Subject spotlight: Body, Mind &amp; Spirit
Subject spotlight: Body, Mind & Spirit

Sales and library circulation data of Body, Mind & Spirit titles during the the first quarter of 2025.

Read More →
ONIX Codelist 69 released
ONIX Codelist 69 released

Insights into the latest updates and additions made to ONIX codelists.

Read More →
5 questions with Caitlin Press
5 questions with Caitlin Press

5 questions with Sarah Vasu from Caitlin Press.

Read More →
Using Thema to identify diverse content in product metadata: worked example #15
Using Thema to identify diverse content in product metadata: worked example #15

Featuring River in an Ocean: Essays on Translation edited by Nuzhat Abbas.

Read More →
Subject spotlight: LGBTQ+
Subject spotlight: LGBTQ+

Sales and library circulation data of LGBTQ+ titles during the fourth quarter of 2024.

Read More →

Tagged: schema validation, onix 3.0, editeur

Newer PostGet that bread: The cooking subcategories that are selling like hotcakes
Older PostPromotional Events: A primer on using EDItEUR's documentation
Blog RSS

The Canadian Book Market 2024 is the comprehensive guide to the Canadian market with in-depth category data.

Get your copy now

Listen to our latest podcast episode


  • Research & Analysis 446
  • Ebooks 304
  • Tech Forum 266
  • Conferences & Events 261
  • Standards & Metadata 227
  • Bookselling 218
  • Publishing 194
  • ONIX 177
  • Marketing 152
  • Podcasts 117
  • ebookcraft 112
  • BookNet News 99
  • Loan Stars 71
  • Libraries 66
  • BiblioShare 59
  • SalesData 51
  • 5 Questions With 48
  • CataList 42
  • Thema 42
  • Awards 30
  • Diversity & Inclusion 20
  • Publishing & COVID-19 18
  • Sustainability 10
  • LibraryData 9
  • EU Regulations 8
  • ISNI 4

 

 

BookNet Canada is a non-profit organization that develops technology, standards, and education to serve the Canadian book industry. Founded in 2002 to address systemic challenges in the industry, BookNet Canada supports publishing companies, booksellers, wholesalers, distributors, sales agents, industry associations, literary agents, media, and libraries across the country.

 

Privacy Policy | Accessibility Policy | About Us

BOOKNET CANADA

Contact us | (416) 362-5057 or toll free 1 (877) 770-5261

We acknowledge the financial support of the Government of Canada through the Canada Book Fund (CBF) for this project.

Back to Top

BookNet Canada acknowledges that its operations are remote and our colleagues contribute their work from the traditional territories of the Mississaugas of the Credit First Nation, the Anishnawbe, the Haudenosaunee, the Wyandot, the Mi’kmaq, the Ojibwa of Fort William First Nation, the Three Fires Confederacy of First Nations (which includes the Ojibwa, the Odawa, and the Potawatomie), and the Métis, the original nations and peoples of the lands we now call Beeton, Brampton, Guelph, Halifax, Thunder Bay, Toronto, Vaughan, and Windsor. We endorse the Calls to Action from the Truth and Reconciliation Commission of Canada (PDF) and support an ongoing shift from gatekeeping to spacemaking in the book industry.