«URL key for specified store already exists» after migration from Magento 1.x

Hey guys,

I migrated data from magento 1.x to 2.x and all things was good.
But when we tried to update a category, it says “URL key for specified store already exists.” and data is not saved. But it’s not for all categories. Only some categories couldn’t be saved.

So I run a mysql command(delete from url_rewrite where entity_type=‘category’ ) and mage2 command(bin/magento indexer:reindex).
But the problem is still teasing me.

Any helps?

What tool did you use for this migration?

I followed this way. http://devdocs.magento.com/guides/v2.0/migration/bk-migration-guide.html

The official Data Migration Tool has its own issue tracker: Issues · magento/data-migration-tool · GitHub
Report the issue there.
Also there is a related bug in the Magento 2 core:

Thanks for your concern. I reported the issue on the github project. I’m trying to fix the issue for 2 days, but it’s not being solved yet.

How to diagnose «URL key for specified store already exists»?