# Category not found error after import from Magento 1.9

**URL:** <https://forum.shopware.com/t/category-not-found-error-after-import-from-magento-1-9/66306>\
**Category:** Installation / Getting Started (EN)\
**Created:** [16. April 2020 um 11:45 UTC](https://forum.shopware.com/t/category-not-found-error-after-import-from-magento-1-9/66306 "2020-04-16T11:45:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rann](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Rann](https://forum.shopware.com/u/Rann)\
**Post date:** [16. April 2020 um 11:45 UTC](https://forum.shopware.com/t/category-not-found-error-after-import-from-magento-1-9/66306/1 "2020-04-16T11:45:35Z")

</div>

Hi,

I’m rather new to Shopware, and Im currently performaning a migration from Magento 1.9 to Shopware6. The import of all products and categories is going fine, only I’m encountering some issues on the front end.  
I can see the categories on the front-end, but when clicking one, i’m getting a error.

```
Uncaught PHP Exception Shopware\Core\Content\Category\Exception\CategoryNotFoundException: "Category "b2d0f8a8c2864437a3ad68a54dd172c6" not found

```

I’m not quite sure on how to solve this.&nbsp;

Also when browsing the cateogries, a ‚drop down‘ arrow is not appearing to see the child categories. Only when seleting ‚add new subcategory‘ the other childs appear.

&nbsp;

Any tips on how to act on this?

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [16. April 2020 um 14:42 UTC](https://forum.shopware.com/t/category-not-found-error-after-import-from-magento-1-9/66306/2 "2020-04-16T14:42:41Z")

</div>

Can you try ececuting “php dal:refresh:index” via CLI? It seems like there is an issue with the imported category tree.

---

<div class="post-metadata">

**Author:** ![Rann](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Rann](https://forum.shopware.com/u/Rann)\
**Post date:** [16. April 2020 um 16:20 UTC](https://forum.shopware.com/t/category-not-found-error-after-import-from-magento-1-9/66306/3 "2020-04-16T16:20:13Z")

</div>

Cheers, that fixed most part of it! 😉 Good to know a thing like that exists also for Shopware 😉

&nbsp;

Page now loads fine, and in the back-end the categories load properly. In the back-end I can also see the product attached to the category. Only on the front-end there aren’t products visible. I’ve tried adding the store in ‚visibility‘ because it was blank, but to no avail so far…

Another idea perhaps ? 😉

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [16. April 2020 um 16:45 UTC](https://forum.shopware.com/t/category-not-found-error-after-import-from-magento-1-9/66306/4 "2020-04-16T16:45:50Z")

</div>

The “visibility” is empty in your shop?&nbsp;This is something that needs to be set during the import. If the visibility is missing after the import, this might be a sign for an inclomplete migration. If you get it working, you could assign it in the database.&nbsp;

Please make sure to clean the cache via “php bin/console cache:clear”, because the full-page cache is activated by default. For the development phase you can deativate it in the .env file:&nbsp;[production/.env.dist at master · shopware/production · GitHub](https://github.com/shopware/production/blob/master/.env.dist#L31)

&nbsp;

---

<div class="post-metadata">

**Author:** ![Rann](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Rann](https://forum.shopware.com/u/Rann)\
**Post date:** [16. April 2020 um 18:16 UTC](https://forum.shopware.com/t/category-not-found-error-after-import-from-magento-1-9/66306/5 "2020-04-16T18:16:36Z")

</div>

When I select the products its not filled in, I can select a option though, but by default nothing seems to be selected.

&nbsp;

So you would suggest to remigrate everything ?

&nbsp;

Cleared the cache to be sure, and running in dev mode with cache disabled now 🙂

---

<div class="post-metadata">

**Author:** ![Rann](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Rann](https://forum.shopware.com/u/Rann)\
**Post date:** [17. April 2020 um 08:40 UTC](https://forum.shopware.com/t/category-not-found-error-after-import-from-magento-1-9/66306/6 "2020-04-17T08:40:19Z")

</div>

Just found out that all products were also set to ‘inactive’, and have not been assigned to any store, so that was the problem.

&nbsp;

Allthough I cant recall seeing that during the migration…

---

<div class="post-metadata">

**Author:** ![htkassner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/htkassner/32/15625_2.png) [@htkassner](https://forum.shopware.com/u/htkassner)\
**Post date:** [17. April 2020 um 09:32 UTC](https://forum.shopware.com/t/category-not-found-error-after-import-from-magento-1-9/66306/7 "2020-04-17T09:32:06Z")

</div>

Hi. Could you deliver me a dump of your swag\_migration\_logging table? You could write me a pm about that.&nbsp;

Greetings,  
Holger

---

<div class="post-metadata">

**Author:** ![Krispin](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/krispin/32/12849_2.png) [@Krispin](https://forum.shopware.com/u/Krispin)\
**Post date:** [25. Mai 2020 um 13:51 UTC](https://forum.shopware.com/t/category-not-found-error-after-import-from-magento-1-9/66306/8 "2020-05-25T13:51:01Z")

</div>

Hi Rann,

did you remove some sales channels, maybe?

Greetings,

Krispin
