on 02-23-2017 6:08 PM - last edited on 02-04-2024 3:49 AM by postmig_api_4
Hello everyone,
in our development for a customer, we use the Data Hub for importing product data from an SAP ERP system to hybris (the version is 6.1.0.3 RC1). During the import process, an exception occurred in an special value translator, we've configured in Data Hub target item transformation. The result was, that the target item publication completes with errors (this is OK for us). Unfortunately, as a resuit of that, we found impexes in the /hybris/data/media/sys_master/impex/
folder which removes products from hybris! Is there an appropriate way to prevent the Data Hub from removing data in case of exceptions during the import?
Thanks in advance!
Greets, Robert
There was a bug, fixed in 6.1.0.5-RC2, where an item could be republished as DELETE in certain concurrent conditions.
https://jira.hybris.com/browse/ECP-1408
I can't say for sure if this is the exact same issue you are experiencing. However, it sounds similar and upgrading to the latest patch is always a good idea. Give it a try and let us know the result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We found out that there are TargetSystemPublication
s with publicationType
== DELETE
, but where did they come from?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is result of deleting items either through the REST API or in a data loading (a set of data can be loaded with delete flag set, so datahub will delete those items from the target system). DataHub first pushes all items to be created and updated to the target system, then it replicates all deletions.
As Robin said the process is not atomic, so even if updates/creations fail, the deletions still may succeed.
There is no product removal process with the SAP ERP Integration.
Is this new code added ?
Keep in mind that Data Hub is not designed for transaction/process orchestration.
Each entities are processed in batch, parallel and independently. Therefore there the composition nor the publication is not an atomic operation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.