Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-6474

Batch delete operation fails when deleting Products

    Details

      Description

      Batch delete of Products fail with the following exception:

      2021-04-16 13:27:43.411 ERROR [default-2][BatchEngineImportTaskExecutorImpl:79] Unable to update batch engine import task {mvccVersion=1, uuid=cd65baf0-0144-421c-5276-d4a4fcef38be, batchEngineImportTaskId=218, companyId=37609, userId=37643, createDate=Fri Apr 16 13:27:43 GMT 2021, modifiedDate=Fri Apr 16 13:27:43 GMT 2021, batchSize=100, callbackURL=, className=com.liferay.headless.commerce.admin.catalog.dto.v1_0.Product, contentType=JSON, endTime=null, errorMessage=, executeStatus=STARTED, fieldNameMapping=null, operation=DELETE, parameters= {className=com.liferay.headless.commerce.admin.catalog.dto.v1_0.Product} , startTime=Fri Apr 16 13:27:43 GMT 2021, taskItemDelegateName=} com.liferay.commerce.product.exception.NoSuchCPDefinitionException: Unable to find Product with ID: 129881 at com.liferay.headless.commerce.admin.catalog.internal.resource.v1_0.ProductResourceImpl.deleteProduct(ProductResourceImpl.java:124) ~[?:?] at com.liferay.headless.commerce.admin.catalog.internal.resource.v1_0.BaseProductResourceImpl.delete(BaseProductResourceImpl.java:414) ~[?:?] at com.liferay.portal.vulcan.internal.batch.engine.VulcanBatchEngineTaskItemDelegateAdaptor.delete(VulcanBatchEngineTaskItemDelegateAdaptor.java:71) ~[?:?] at com.liferay.batch.engine.internal.item.BatchEngineTaskItemDelegateExecutor.saveItems(BatchEngineTaskItemDelegateExecutor.java:93) ~[?:?] at com.liferay.batch.engine.internal.BatchEngineImportTaskExecutorImpl.lambda$_commitItems$1(BatchEngineImportTaskExecutorImpl.java:119) ~[?:?] at com.liferay.portal.spring.transaction.BaseTransactionExecutor.execute(BaseTransactionExecutor.java:37) ~[portal-impl.jar:?] at com.liferay.portal.spring.transaction.TransactionInvokerImpl.invoke(TransactionInvokerImpl.java:39) ~[portal-impl.jar:?] at com.liferay.portal.kernel.transaction.TransactionInvokerUtil.invoke(TransactionInvokerUtil.java:28) ~[portal-kernel.jar:?] at com.liferay.batch.engine.internal.BatchEngineImportTaskExecutorImpl._commitItems(BatchEngineImportTaskExecutorImpl.java:116) ~[?:?] at com.liferay.batch.engine.internal.BatchEngineImportTaskExecutorImpl._importItems(BatchEngineImportTaskExecutorImpl.java:182) ~[?:?] at com.liferay.batch.engine.internal.BatchEngineImportTaskExecutorImpl.lambda$execute$0(BatchEngineImportTaskExecutorImpl.java:71) ~[?:?] at com.liferay.batch.engine.internal.BatchEngineTaskExecutorUtil.execute(BatchEngineTaskExecutorUtil.java:44) ~[?:?] at com.liferay.batch.engine.internal.BatchEngineImportTaskExecutorImpl.execute(BatchEngineImportTaskExecutorImpl.java:70) ~[?:?] at com.liferay.headless.batch.engine.internal.resource.v1_0.ImportTaskResourceImpl.lambda$_importFile$0(ImportTaskResourceImpl.java:329) ~[?:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_212] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_212] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_212] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_212] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
      

        Attachments

          Activity

            People

            Assignee:
            matija.petanjek Matija Petanjek
            Reporter:
            matija.petanjek Matija Petanjek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.4 CE GA2
                Master