Contentful logo

Contentful Community

Migration API breaking on archived entries

Hey guys, at the moment, we have some archived entries that are preventing migration scripts from going thru. Is there a way to skip archived entries during iteration? Or is this a bug in the migration API?

The error is: Error: {“status”:“Bad Request”,“message”:“Cannot publish archived”,“details”:{},“url”:“https://api.contentful.com:443/spaces/\environments\\entries\\published”}

Hi @aldub,

You shouldn’t have issues migrating content that is archived. Could you tell us what commands you’re using (omitting any sensitive credentials) and what are the versions of the SDK, migration tool and node itself?