Fix issue where missing key might break import - #113
Conversation
|
The "Unique Field" is intended to be a field which is present on every item, and marks that item as unique. It ensure entries aren't re-created every time you run the importer. If only some of your items have slugs, couldn't you use something like an ID or title instead? 🤔 |
|
Okay, that wasn't how the recommended export package exported the data though, the Slug could be missing from the items. I tried using the ID but it created another error, I'll try to get some time to re-create this issue and post it also. With the small fix provided you would at least get the data imported instead of it throwing an error and forcing you to manually update the CSV-file. I'm fine either way though :) |
Hi!
While trying to import contents from a WordPress site I ran into this issue where if you tried to use the Slug as the unique field it would break since the "slug" key was missing on "drafts" and other non-published posts.