This cause update operation to fail. It will provide a lot better user experience if we could automatically create referred component attributes. As a workaround, customers can either remove attributes from json file or create the attributes with correct IDs in the system before importing component hierarchy.