Geta / EpiCategories

An alternative to Episerver's default category functionality, where categories are instead stored as localizable IContent.
Apache License 2.0
14 stars 13 forks source link

Exception: Failed to load content type with name 'CategoryData' during Import #23

Closed davidbuo closed 4 years ago

davidbuo commented 4 years ago

Issues when Importing 'CategoryData' due to not having the [ContentType] attribute. Issue and solution is described in this forum post.

CategoryData class

Tim-Schmelter commented 1 year ago

Is this issue really fixed? If so, how? Because in the linked post it was suggested to decorate CategoryData with the [ContentType] attribute, but this is not in the current code, is it? I noticed this issue during a content migration from one test environment to prod(which is crucial for go-live for a big customer this month). The exception is the same as in the linked post, but i'm using the Geta.Optimizely.Categories plugin, so i created another post. I have tested these export settings to no avail:

As you can see, there is no CategoryData to check, which is causing this issue. But that ContentType is neither in the source db nor in the target db. So why is it causing an error on import? What can i do to fix it?