8 min read
Edit a Salesforce Commerce Cloud (SFCC) catalog XML in Excel
By Quentin Delepierre, Salesforce Commerce Cloud consultant
Business Manager imports and exports XML; catalog teams work in Excel. This guide shows how to go from one to the other without a script: what your products, prices and stock look like in the spreadsheet, and how to import the result back.
Got your own XML? Drop it in and see it as a table, free and with no account. For an Excel file you can edit and then rebuild into an XML that keeps its structure, a free account is all you need.
Simple Excel table, free with no account, for files up to 1 MB. File that rebuilds into XML: free account, 3 free credits, no credit card.
How do I edit a Salesforce B2C Commerce catalog XML from Business Manager in Excel and re-import it?
Export the catalog as XML from Business Manager and drop it on ExcelifyXML: the free preview shows the detected row, then, for 1 credit, you choose the Excel file (.xlsx), with one product per row and one column per element or attribute. Edit the values, translations, dates or rows in the spreadsheet, then drop the saved file on the Rebuild page: you get the XML back with the original file's root, namespace and header, to import into Business Manager, on a sandbox or test environment first. Choose the import mode knowingly: Merge updates what the file contains, Replace replaces each object with its version from the file, and a cell you empty removes its tag, which leaves the existing value in place in Merge mode.
Business Manager only speaks XML
In Salesforce B2C Commerce (SFCC, formerly Demandware), catalogs, price books, inventory lists and content libraries are imported and exported as XML, following the platform's schemas.
Yet bulk changes arrive in spreadsheets: translations to rework, online dates to shift, attributes to fill in, prices to fix. Without a tool, you're left with two options: have a developer write the XML, or edit it by hand in a text editor, at the risk of an import rejected for one badly closed tag.
Which Salesforce B2C Commerce exports can I edit in Excel?
- Catalog (products and categories): one row per product. If the file also holds categories, a _type column tells for each row whether it's a category or a product. To work on products only, choose product through "Not the right row?": categories are no longer in the CSV, but they stay as they are in the rebuilt XML. You can sort the sheet or add a category at the bottom: the reconstruction puts each type's rows back together, in the original file's order, the one Business Manager expects.
- Price book: the preview offers one row per price (price-table), with the product ID and the amount. For a tiny price book of a few prices, it may show a single row: then pick price-table through "Not the right row?". The price book header (ID, currency) is kept as is and written back on reconstruction. A file holding several price books has to be split, one price book per file.
- Inventory list: one row per product (record) when the file holds a single warehouse. If it holds several, export each inventory list to its own file: in a Business Manager export, the warehouse ID is only in its list's header, so a row per product could no longer tell which warehouse it belongs to. The tool therefore refuses record for such a file, and the preview offers one row per warehouse, its stock records in numbered columns. Beyond about 2,000 products per warehouse, these columns exceed the 16,384 that Excel and LibreOffice keep: the preview says so, no Excel file is offered, and the reconstruction would stop on the CSV the spreadsheet cut. Export each warehouse to its own file then.
- Content library: folders and content assets, with the same _type column as the catalog.
What the CSV looks like
Each element or attribute of the product becomes a column. Translated values get one column per language: display-name[fr-FR], display-name[x-default]. XML attributes start with @: @product-id. In the CSV file (not in the Excel file), these headers are written with an apostrophe in front ('@product-id), a protection against formulas: leave it, the reconstruction removes it. Flags such as online-flag stay true / false columns.
Repeated elements are numbered in file order: images.image-group[0], images.image-group[1]…, each with its .@view-type column.
<product product-id="25502228">
<ean>5060155242347</ean>
<display-name xml:lang="x-default">Striped Silk Tie</display-name>
<display-name xml:lang="fr-FR">Cravate en soie rayée</display-name>
<online-flag>true</online-flag>
<brand>Marquee</brand>
</product>@product-id , ean , display-name[x-default] , display-name[fr-FR] , online-flag , brand
25502228 , 5060155242347 , Striped Silk Tie , Cravate en soie rayée , true , MarqueeHow do I edit custom attributes, including their translations and sites?
When each custom attribute appears only once per product, its ID becomes the column name: custom-attributes.custom-attribute[refinementColor]. That's the simple case.
A translated attribute (the same attribute-id in x-default and fr-FR) gives one column per language, like texts do: custom-attributes.custom-attribute[seo_url][x-default], custom-attributes.custom-attribute[seo_url][fr-FR]. Each column holds the same attribute for every product: a bulk edit happens right in the column. To add a translation to a product that has none, fill its cell in that language's column: the reconstruction creates the tag with its attribute-id and xml:lang. Only languages present in the export have a column.
A site-specific attribute (the same attribute-id for SiteFR and for SiteUS) gets one column per site: custom-attributes.custom-attribute[badge][SiteFR], custom-attributes.custom-attribute[badge][SiteUS]. Fields set per site, such as online-flag or searchable-flag, give one column for the value of all sites (online-flag) and one per site (online-flag[SiteUS]). Here too, a filled cell creates the tag with its site-id.
Only languages and sites present in the export have a column. A column added for another language or another site (custom-attribute[seo_url][de-DE]) can't be written: reconstruction stops and shows the columns and rows at stake, rather than leaving them out without a word.
One exception: if the same attribute appears twice with the same language and the same site for a product, the block is numbered, in file order. Each attribute then takes several columns: its name (custom-attribute[0].@attribute-id), its language (@xml:lang) and its value (custom-attribute[0]), and the same number can point to a different attribute from one product to the next. Read the name in the @attribute-id column next to it and filter on that column before changing anything: reconstruction always puts the value back under the right attribute. The standalone Excel workbook names its columns the same way.
The steps
- Export the object from Business Manager (catalog, price book, inventory or library) and get the XML file.
- Drop it on the ExcelifyXML Upload page. The free preview shows the detected row, the number of rows and columns, and the first values. Check there's one product (or price, or stock record) per row, then confirm (1 credit) and choose the Excel file (.xlsx) — or the CSV.
- Open the Excel file in Excel, LibreOffice, Google Sheets or Numbers: everything in it is written as text, EAN and UPC codes, leading zeros, dates and true / false stay as they are. With the CSV, import EAN or UPC codes as Text (Data › From Text/CSV) so Excel doesn't change them.
- Make your edits: values, translations, dates, rows added or deleted.
- Save the file, then, on the Rebuild page, drop the Excel file alone — or choose "Separate files" and drop the edited data.csv with its skeleton.json. You get the XML back, with the original file's root, namespace and header.
- Import it into Business Manager, on a sandbox or test environment first.
How do I import the edited XML back into Business Manager?
- Choose the import mode knowingly. Merge updates what the file contains and leaves the rest in place; Replace replaces each object with its version from the file. For a bulk change on a full file, Merge is the cautious choice.
- Business Manager validates the file against the schema before importing and lists errors in the log: always start on a test environment.
- A row deleted from the CSV disappears from the XML. In Merge mode, that doesn't delete the product in SFCC: it simply isn't changed.
- An empty tag is dropped on the way through the CSV when nothing else carries it: a tag without attributes (an empty upc tag, for instance), or an empty custom attribute (a custom-attribute tag that holds only the attribute-id badge), whose ID already names its column. The preview warns you in both cases. An empty tag that carries another attribute is kept.
- A cell you empty removes its tag: in Merge mode, Business Manager then keeps the existing value (a translation, a badge). To erase a value, do it in Business Manager. In an image group or a list of variants, an occurrence whose cells you all empty isn't written: the next ones take its place, and the file stays valid for the schema.
Pitfalls ExcelifyXML handles for you
- Booleans: in the Excel file, where everything is text, true / false stay as they are. With the CSV, Excel rewrites them as TRUE / FALSE (VRAI / FAUX in French, WAHR / FALSCH in German, PRAVDA / NEPRAVDA in Czech…), which the SFCC schema rejects. Wherever the export had true / false, even among other values (numbered custom attributes), reconstruction puts back its spelling.
- Carriage returns: the in descriptions and JSON attributes are kept, exactly as in the original file.
- EAN and UPC codes: if Excel turned one into scientific notation (3.61235E+12), reconstruction stops and shows the column and rows at stake, instead of producing a wrong catalog.
- Leading zeros: an all-digit code or ID of fixed length (UPC, SAP item number as product-id) that Excel shortened gets its zeros back on reconstruction.
- ISO dates (2026-09-01T00:00:00.000Z): Excel leaves them as text, they come back as they were. A date rewritten in another format stops the reconstruction.
- HTML descriptions: values containing markup are written back as CDATA, so the XML stays valid.
- Cells that wouldn't be written: a column added for a language or a site the export doesn't have, or a value typed on a row of another type (a category instead of a product), stops the reconstruction, which shows the columns and rows at stake.
What should I do with a large SFCC catalog export?
An SFCC catalog export quickly exceeds 4 MB. The free plan transforms up to 4 MB, the Pro plan up to 30 MB. Beyond that, or to spend a single credit, transform a sample that holds every field in use, then rebuild the full file with the same skeleton.json.
Turn your Business Manager export into a file to edit in Excel:
Transform a file