cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

QueryAlertHistory returns only records in 10 days

eyli
12-Amethyst

QueryAlertHistory returns only records in 10 days

I found QueryAlertHistory can return only records in 10 days. That means records out of 10 days lost or can not be queried out. Does anyone know what is the reason and how to fix this issue?

1 ACCEPTED SOLUTION

Accepted Solutions
raluca_edu
17-Peridot
(To:eyli)

Maybe a purge of stream was done?

View solution in original post

6 REPLIES 6
raluca_edu
17-Peridot
(To:eyli)

Hi,

 

QueryAlertHistory is giving more data than 10 days, I have tested it by giving as input start date, end date, maxItems=1000.

 

Can you test the service by adding such parameters?

 

Thank you,

Raluca Edu

eyli
12-Amethyst
(To:raluca_edu)

I did test and it still returned only data from April 2, 2020. Seems data before that was lost. Do you know where alerts are stored? I want to go to search them directly from database to check it out.

eyli
12-Amethyst
(To:raluca_edu)

Seems the alert history is stored in steam table of thingworx database. I queried the data and found my expected data is not there. It's weird.

raluca_edu
17-Peridot
(To:eyli)

Maybe a purge of stream was done?

eyli
12-Amethyst
(To:raluca_edu)

"MidnightPurgeWeekOldHistoryScheduler" was just disabled. Let's see the result.

eyli
12-Amethyst
(To:raluca_edu)

Seems it is resolved. Let's close this ticket. Thanks very much for help.

Top Tags