# KxWarehouseData Tutorial - data not flowing from LR to IHDB and HDB

**URL:** <https://forum.kx.com/t/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb/12178>\
**Category:** Community Support\
**Tags:** add-ons\
**Created:** [July 1, 2021, 2:37am UTC](https://forum.kx.com/t/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb/12178 "2021-07-01T02:37:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![User7](https://avatars.discourse-cdn.com/v4/letter/u/7ea924/32.png) [@User7](https://forum.kx.com/u/User7)\
**Post date:** [July 1, 2021, 2:37am UTC](https://forum.kx.com/t/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb/12178/1 "2021-07-01T02:37:00Z")

</div>

Hello again,

I have been tasked to try the KxWarehouseData tutorial on KX 4.6.1P3 so we can embrace the use of services classes. However, unfortunately, I am facing a very annoying issue.

My monFeed service is publishing data to the kxw\_tp, which in turn sends it to the RDB, but the data is not flowing to the IHDB and, I suspect, to the Log Recovery service.

I decided to investigate and find an error on the tutorial:  
The log replay page lists logFileList as:

ENV=DELTADATA\_HOME=/KxWarehouseData/tplog/mon\_tp\_%DATE% ENV=DELTADATA\_HOME=/KxWarehouseData/tplog/mon\_tp\_\*%DATE%\_H[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9].[0-9][0-9][0-9][0-9][0-9][0-9]

&nbsp;However, the correct values should be:

ENV=DELTADATA\_HOME=/KxWarehouseData/tplog/kxw\_tp\ __%DATE% ENV=DELTADATA\_HOME=/KxWarehouseData/tplog/kxw\_tp\__ %DATE%_H_[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9].[0-9][0-9][0-9][0-9][0-9][0-9]

mon\_tp needs to be kxw\_tp since the latter is the name of the tp service.  
&nbsp;The first entry needs an \* so it matches the port of the tp service that is captured on the filename, and the second entry needs an \_ after the H.

These fixes made the Log Recovery read the TP log files, **but no data was put into the LR and the IHDB.** No data has flowed to the HDB either.

Since the intraday directory matches, I am wondering if there is some other information missing in the tutorial?

Cheers,  
Adriano

---

<div class="post-metadata">

**Author:** ![sstantoncook1](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sstantoncook1](https://forum.kx.com/u/sstantoncook1)\
**Post date:** [July 7, 2021, 3:49am UTC](https://forum.kx.com/t/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb/12178/2 "2021-07-07T03:49:00Z")

</div>

Hi Adriano - can you please share a screenshot of the process configuration of the TP and LR?

On a scheduled basis the LR should be checking for a new tp log file, reading the previous one and writing it to the iHDB. So I am interested to see how often the TP log rolls and how often the LR is checking for the log file.  
Also the process log of the LR would help.

Sam

---

<div class="post-metadata">

**Author:** ![User7](https://avatars.discourse-cdn.com/v4/letter/u/7ea924/32.png) [@User7](https://forum.kx.com/u/User7)\
**Post date:** [July 7, 2021, 6:08am UTC](https://forum.kx.com/t/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb/12178/3 "2021-07-07T06:08:00Z")

</div>

Hi Sam,  
I have attached pictures of the configuration as requested and put links for the logs below.  
(The portal does not accept .log files as attachments )

I put logs for 01/07 (when i was originally facing issues) and today.  
Funny thing: i noticed today that data flowed (!?!?). So if nothing catches your eyes, i will probably consider my initial issue as a synchronization error on my vm setup.

Bonus:  
Log File List on LR  
ENV=HOME=/TP/uiCore/uiCore\_tp\_\*%DATE%  
ENV=HOME=/TP/uiCore/uiCore\_tp\_\*%DATE%\_H\_[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9].[0-9][0-9][0-9][0-9][0-9][0-9]

LR Logs

2021-07-01D05:14:&nbsp;https://pastebin.com/gjVvGU5s  
2021-07-07D02:30: https://pastebin.com/XpBTt1JM

2021-07-07D02:30: https://pastebin.com/NUFqRxCQ

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![sstantoncook1](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sstantoncook1](https://forum.kx.com/u/sstantoncook1)\
**Post date:** [July 7, 2021, 7:04am UTC](https://forum.kx.com/t/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb/12178/4 "2021-07-07T07:04:00Z")

</div>

Hi Adriano - reviewing the logs it looks like the LR process has successfully identified the intraday TP log to ingest, replayed it and written it to the iHDB location.

//File identified to replay

Found files to replay ### `s#,`kxplatform/TP/uiCore/uiCore\_tp\_2339\_2021.07.01\_H\_2021.07.01.050000

//Example of an intraday partition being upserted to

\<-\>2021.07.01D06:00:48.077 ### dev &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;### normal ### (252950): Upserted 1 rows for temperature to kxplatform/INTRADAY/uiCore/2021.07.01//13/uiCore\_telemetry/ ###

&nbsp;

Good spot on missing wild card required to pick up the service class. I’ll pass that back to Core.

Cheers,

Sam

---

<div class="post-metadata">

**Author:** ![User7](https://avatars.discourse-cdn.com/v4/letter/u/7ea924/32.png) [@User7](https://forum.kx.com/u/User7)\
**Post date:** [July 8, 2021, 1:55am UTC](https://forum.kx.com/t/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb/12178/5 "2021-07-08T01:55:00Z")

</div>

Hey Sam,  
Thanks (again) for checking the logs. I can now confirm that there was a sync error on my vm. Same error repeated today and after I reloaded my vm I could see new data on HDB.

That said, I have one final question:  
How do we manually EOD under this new setup? Does calling end from a TP scratchpad still works?

Cheers,  
Adriano
