03-05-2018 11:03 PM - edited 02-04-2024 4:44 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Data Hub publication will create Impex CronJobs on the Hybris side. If it fails you can have a look into the import medias there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
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.