# 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/13743>\
**Category:** Community Support\
**Tags:** imported, other\
**Created:** [July 1, 2021, 12:00am UTC](https://forum.kx.com/t/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb/13743 "2021-07-01T00:00:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lkerr2](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/lkerr2/32/57_2.png) [@lkerr2](https://forum.kx.com/u/lkerr2)\
**Post date:** [July 1, 2021, 12:00am UTC](https://forum.kx.com/t/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb/13743/1 "2021-07-01T00:00:00Z")

</div>

[https://learninghub.kx.com/forums/topic/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb](https://learninghub.kx.com/forums/topic/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb)

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](https://code.kx.com/platform/stream/dw_log_replay/") 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]

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.  
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:** ![sstantoncook](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@sstantoncook](https://forum.kx.com/u/sstantoncook)\
**Post date:** [July 7, 2021, 12:00am UTC](https://forum.kx.com/t/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb/13743/2 "2021-07-07T00:00: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:** ![lkerr2](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/lkerr2/32/57_2.png) [@lkerr2](https://forum.kx.com/u/lkerr2)\
**Post date:** [July 7, 2021, 12:00am UTC](https://forum.kx.com/t/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb/13743/3 "2021-07-07T00:00: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:[https://pastebin.com/gjVvGU5s](https://pastebin.com/gjVvGU5s")  
2021-07-07D02:30: [https://pastebin.com/XpBTt1JM](https://pastebin.com/XpBTt1JM")

2021-07-07D02:30: [https://pastebin.com/NUFqRxCQ](https://pastebin.com/NUFqRxCQ")

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![sstantoncook](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@sstantoncook](https://forum.kx.com/u/sstantoncook)\
**Post date:** [July 7, 2021, 12:00am UTC](https://forum.kx.com/t/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb/13743/4 "2021-07-07T00:00: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 ### 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:** ![lkerr2](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/lkerr2/32/57_2.png) [@lkerr2](https://forum.kx.com/u/lkerr2)\
**Post date:** [July 8, 2021, 12:00am UTC](https://forum.kx.com/t/kxwarehousedata-tutorial-data-not-flowing-from-lr-to-ihdb-and-hdb/13743/5 "2021-07-08T00:00: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
