Lightroom presets are XMP files, and XMP files are XML. That is a sentence I knew and did not think about until it cost me a pack. XML has five characters that cannot appear raw inside a file: the ampersand, the less-than sign, the greater-than sign, and two kinds of quote. The ampersand is the dangerous one, because it looks harmless. It sits in ordinary words all the time. In XML it starts an entity reference, and a raw ampersand with no valid entity after it makes the whole file invalid. Lightroom does not forgive that. It skips the preset, or fails to load it, and the buyer gets a pack that does not work. This post is about the broken presets.
The Sports Lightroom pack build surfaced the problem. One hundred and twenty new XMP presets, and seventeen of the preset names carried a raw ampersand, joining two words together the way people naturally write. The files looked fine. The names looked fine. The XML was broken in seventeen places, and nothing in the build had checked for it. I fixed the names by replacing the ampersand with the word “and” everywhere, re-checked the whole set, and added a new rule to the master prompt: never use an ampersand, a less-than sign, or a greater-than sign in a preset name. The rule now sits in every Lightroom master prompt I write, including the Real Estate one delivered on 11 November.
Why it slipped through
The same reason the BOM bug slipped through, a year of the same lesson in a different costume. The BOM bug was 160 .cube files with a hidden character at the start that broke Final Cut Pro, and every test I ran had passed because none of my tests looked for it. The ampersand bug is the same shape: a file-format rule I knew in theory, a build process that never checked for it, and a failure that only shows up in the buyer’s software, not in mine. My tools do not care about a raw ampersand. Lightroom does. My editor does not care about a byte-order mark. Final Cut Pro does. The gap between “looks fine here” and “works there” is where these bugs live, and the only fix is a check that looks for the specific thing.
I have written before about LUTs versus Lightroom presets, and the difference matters here. A .cube LUT is a plain grid of numbers. An XMP preset is a structured file with rules. The .cube format forgives almost everything except a BOM. The XMP format forgives almost nothing. When I build a LUT pack, the quality gate is BOM, size, and title headers. When I build a preset pack, the gate has to include the XML rules too, and the preset names are part of the file, not decoration on top of it.
The fix, and the rule that stops it happening again
The fix itself took minutes: replace the character, re-check, move on. The rule is the part that matters. Every Lightroom master prompt now carries a line that says preset names must never contain an ampersand or angle brackets, and the delivery must include a zero-match self-check for those characters before the files are handed over. The check is cheap. The bug is expensive, because it is invisible until a buyer finds it, and a buyer who finds a broken pack does not come back to explain the XML specification. They leave.
My first shop has exactly one Lightroom product, the 130 Sports Lightroom Presets pack, at $8.00, with three sales and 32 visits in the last month. It is a small line, but it is the line that taught me the rule, and the next packs in the series will be built with the rule already in place. That is how a one-line bug becomes a permanent improvement: it gets written down, it gets checked, and it never gets a second chance.
Broken Presets
Seventeen broken presets, one character, one rule. I will take that trade every time, as long as I actually write the rule down.

Leave a Reply