Skip Navigation
Expand
Error when importing package via Element Manager - Package contains menu field which does not exist in target site
Answer ID 12726   |   Last Review Date 10/19/2023

Why am I getting this error: "Package contains menu field which does not exist in target site"?

Environment:
Browser User Interface (BUI), Element Manager
 
Issue:
I am encountering the error Package contains menu field which does not exist in target site when I import a package via Element Manager. What is causing this error?
 
Resolution:
When we export an item, we check for fields, and export the metadata of that along with the package in a file - Metadata.json.
 
So this file will have the id and the associated menu's name (and sometimes the hierarchy - in the case of categories, products etc) example : In the json file, Product A;Sub-product 1 - where the semicolon (;) indicates the hierarchy.
 
So, re-mapping is done during import on the basis of this name data. And if a matching name and/or hierarchy is not found in target, we throw a menu does not exist error.