Why do the same SKUs get new URL suffixes on a Magento 2 reimport?

1 min read

Three light fittings with rows of paper tags on an indigo background

On a repeat import, the same SKU can keep its product ID and get a new URL. Pick three SKUs on staging and record their IDs, URL Keys and paths in Marketing → SEO & Search → URL Rewrites for the store view.

Check how the importer saves products

Custom URL Rewrite 1.0.2 runs when a product is saved through ProductRepository. It checks the URL key plus .html against stored request paths, including paths for the same product or another store view. Check whether your importer uses that save path. The probe covered repository calls. Custom URL Rewrite. Module documentation.

Save the same data twice and compare the paths

The local probe used the original module with a sample catalog that kept earlier paths occupied. The first run added B-202. After the second there were still three products with the same IDs, and the URL keys had new suffixes. The table shows the paths chosen in this probe.

Repeat-save probe for three SKUs
SKUInput keyBeforeFirst runSecond run
A-101lamplamp.htmllamp-1.htmllamp-3.html
B-202lamp—lamp-2.htmllamp-4.html
C-303shadeshade.htmlshade-1.htmlshade-2.html

In your importer, compare Request Path, Target Path and Redirect Type after both runs. Open the previous address and record the final URL and HTTP statuses. In Adobe Commerce’s standard importer, omit url_key and categories when you are updating data other than URLs or category assignments. Adobe Commerce import.

For the first collision and suffix selection, see the earlier guide.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)