Hi, we are experiencing some issues with our integration via API. Sometimes when we add content to a collection and publishes it, the collection won't publish and it says (in portuguese): "Falha na atualização" or "Fail to update" in a free translation, I don't know how the message was before the internationalization.
We've noticed that when you see all the content that is attached to this failed-to-publish collection, there is this content with name 'desconhecido' or 'unknown', with a warning.
When you remove this unknown content and tries to publish the collection, it works flawlessly. The question is, how to avoid this or in a worse method, how to perform this action via API? We've already tried to list all contents from the collection when this issue occurs but we do not see the faulty content to remove, we only see the fault content on the Adobe DPS Platform.
When adding entities to a collection, did you do the following:
Get the latest entity HREF
This will prevent adding a deleted or an outdated entity
Before adding the entity to a collection, get the current collection's contentElement first and append (or prepend) the new entity to the list
This will prevent deleting any existing entities in the list, users are in charge of keeping the persistence of the data
This "unknown" entity might've been a deleted entity that you are trying to reference. If you can reproduce this, please add my account (firstname.lastname@example.org) to your project with "View Content" permissions.