Closed InvasiveFiber97 closed 3 months ago
@heshamMassoud / @ahmetoz would you be able to help me on above issue, please?
Hi @InvasiveFiber97, without your error details its hard to tell what the issue is since as you can see here handleError
, depending on the error type can sometimes pass a draft and sometimes not.
I got error such as "Old Master Variant key not present" and "Unable to Update attribute update action" which does seem to return draft as per the reference in handleError. Thanks
Description
I'm using commertools-sync-java sdk to import products to commercetools project. I have a spring application. I've create a bean in configuration as
And doing the sync as mentioned in the docs
CompletionStage<ProductSyncStatistics> syncStatisticsStage = productSync.sync(productDrafts);
However whenever error occurs and flow goes into errorCallback, it does not have draft inside it.
Expected Behaviour
The draft should return the failed product draft, in errorCallback.
Other Info : I'm using Spring batch the sync call is done in writer and productSync is defined as bean inside a configuration class as StepScope.
Please help me with this.