You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I call setPrices method with collection of new prices where there is price B ('basic', 'CZK', id = 2) ... the price B should replace price A
I get exception:
ERROR Failed to index entity eP_380523CZ-45 in catalog milagro_cz due to: Price `💰 90752 in basic CZK ` with id `90752` cannot be added to the entity. There is already present price `💰 8473 in basic CZK ` with id `8473` that would create conflict with newly added price because their validity spans overlap.
io.evitadb.api.exception.AmbiguousPriceException: Price `💰 90752 in basic CZK ` with id `90752` cannot be added to the entity. There is already present price `💰 8473 in basic CZK ` with id `8473` that would create conflict with newly added price because their validity spans overlap.
at io.evitadb.api.requestResponse.data.structure.ExistingPricesBuilder.assertPriceNotAmbiguousBeforeAdding(ExistingPricesBuilder.java:448) ~[evita_api-10.1.3.jar:?]
The method sets entityBuilder.removeAllNonTouchedPrices(); but too late and nevertheless it's not taken into an account when doing the ambiguous check.
The text was updated successfully, but these errors were encountered:
The scenario is as follows:
1. entity has price A ('basic', 'CZK', id = 1)
2. I call setPrices method with collection of new prices where there is price B ('basic', 'CZK', id = 2) ... the price B should replace price A
I get exception:
```
ERROR Failed to index entity eP_380523CZ-45 in catalog milagro_cz due to: Price `💰 90752 in basic CZK ` with id `90752` cannot be added to the entity. There is already present price `💰 8473 in basic CZK ` with id `8473` that would create conflict with newly added price because their validity spans overlap.
io.evitadb.api.exception.AmbiguousPriceException: Price `💰 90752 in basic CZK ` with id `90752` cannot be added to the entity. There is already present price `💰 8473 in basic CZK ` with id `8473` that would create conflict with newly added price because their validity spans overlap.
at io.evitadb.api.requestResponse.data.structure.ExistingPricesBuilder.assertPriceNotAmbiguousBeforeAdding(ExistingPricesBuilder.java:448) ~[evita_api-10.1.3.jar:?]
```
The method sets `entityBuilder.removeAllNonTouchedPrices();` but too late and nevertheless it's not taken into an account when doing the ambiguous check.
The scenario is as follows:
I get exception:
The method sets
entityBuilder.removeAllNonTouchedPrices();
but too late and nevertheless it's not taken into an account when doing the ambiguous check.The text was updated successfully, but these errors were encountered: