Open nicoXXXXXtitan opened 1 year ago
I have updated the issue.
thank you @nicoXXXXXtitan! you save us hours of debugging 💯
With pleasure! The debug had been long :smile: I hope Strapi will take care of it soon!
Chiming in on this issue, we are encountering the same thing. we use @strapi/plugin-i18n and have a repeatable component in one of our collection types. When a author attempts to "Fill in from another locale", it fails if the repeatable component is greater than 100. after many hours of debugging, we also arrived at the above issue. seems like a strange constraint as its quite normal to have very large repeatable components.
Something new about this?
news?
Hello I opened this issue after the discovery of a bug in a custom plugin (see the description below). It turns out that the bug concerns everyone because it is also present in the content manager. To make it simple, here is the bug: If I have more than 100 repeatable components and I want to delete them all, the operation is not possible and I have this error.
To get around the problem, I have to delete them by packages lower than 100.
1st version of the issue ⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️
Hello ! We have a content type named pagelists composed of several components. The component we update is the pagelist_listing_products_order. It is repeatable.
And that of the component :
In a home-made plugin, we update the pagelist_listing_products_order component following the Strapi doc https://docs.strapi.io/developer-docs/latest/developer-resources/database-apis-reference/entity-service/components-dynamic-zones.html#creation
The doc says that:
Our code looks like this:
In the variable products we have this:
We didn't put the identifier because the example in the doc says that if not specified, would have deleted it and created a new one For several months we have been updating this repetable component in this way. It has grown lately by our editors, more than 100 on several of our contentype pagelist. When we save we get this error:
After long debugging phases, it turns out that if I have up to 99 repeatable components, I have no errors when updating the component. From 100 components, the update is not possible. Strapi can't delete each component components_page_listing_products.
To solve the bug, we now provide it with the id.
To summarize: If we update a repeatable component without providing it with an id AND there are less than 100 repeatable components, the registration is possible. If we have more than 100 repeatable components, we must absolutely provide its id for a registration without bug.
I hope I have been clear enough. Thank you and have a nice day!