cancel
Showing results for 
Search instead for 
Did you mean: 

Enable impex logging during data hub publication action

former_member658721
Participant
0 Kudos

Hello,

Could any one help me how to enable the logging to log the actual impex that is created during data hub publication?

The logs on the hybris server showing the number of records processed but not seeing the actual impex.

For example - This is what I am seeing when data hub publish the data to Hybris server. INFO [TaskExecutor-master-1272-Task [8796126184374]] (000001JV) [Importer] Finished 1 pass in 0d 00 h:00m:00s:008ms - processed: 3, no lines dumped (last pass 0)

Is there any way to log the whole impex to see what exactly it is inserting? I want to see like INSERT_UPDATE FutureStock;;quantity;date[dateformat=yyyyMMdd];productCode(code) 10;100;20180315;100000143 ;25;200;20180501;100000143

Thanks in Advance.

Accepted Solutions (0)

Answers (4)

Answers (4)

mgbernardo
Participant
0 Kudos

Hi gurus!

Is there any local.properties parameter to change this behaviour and being able to not remove the cronjob on success?

Thanks in advance

Regards

former_member537989
Contributor
0 Kudos

On Hybris side: ImportService.importData() takes an ImportConfig item that has a RemoveOnSuccess field. Import service removes the import cronjob if that is set to true & it completes successfully. Thus in case of Datahub import a customization is required in order to retain processed cronjobs medias.

former_member633334
Participant
0 Kudos

Thanks !

former_member387866
Active Contributor
0 Kudos

Hi Sasi,

Please create an Incident with SAP Hybris Product Support, and we'll send you the documentation and the extension that will log the ImpEx.

Essentially the magic is in the extending the CoreAdapterService and using the impexService.generateImpexBlocks() and ImpexWriterUtils.buildImpexFileContent() and in the overriden publish() method.

Regards,
Luke

former_member658721
Participant
0 Kudos

Thank you..

former_member387866
Active Contributor
0 Kudos

You're welcome Sasi,

Could you accept my answer, so others will know how to handle this request in future?

Regards,
Luke

tino_kissig
Active Participant
0 Kudos

Data Hub publication will create Impex CronJobs on the Hybris side. If it fails you can have a look into the import medias there.

former_member658721
Participant
0 Kudos

Thanks for your response. It is not logging to look into the issue.

former_member633334
Participant
0 Kudos

Tino, it seems the CronJob will only be created if the Impex Import fails. I can't find the CronJob in Hybris if the Impex Import is successful.

Anyone has a similar case?

former_member537989
Contributor
0 Kudos

In case of successful import the cronjob removes media