Output dataset and schedule functionalities in Query service not working | Community
Skip to main content
Level 4
September 18, 2022
Solved

Output dataset and schedule functionalities in Query service not working

  • September 18, 2022
  • 3 replies
  • 1654 views

Hi all,

 

we are running into an issue when scheduling a query form AEP UI.

 

We have created a query that make a join between two dataset and combine the retrieved data into a new dataset using the insert into. 

If we run the query manually, the dataset get populated and everything looks fine, the problem comes when we try to schedule the same query, selecting in the output dataset the same dataset specified in in INSERT INTO statement.

 

So, what could be the problem of the schedule? it should just run hourly. 

Are there some limitation on the use of scheduling? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Anuhya-Y

@nick_2024 

 Is your query starting with Insert into “dataset name” when you schedule the query? If yes, remove Insert into “dataset name” from the query. As schedule query UI takes dataset name as input while creating scheduler.

 

If above question answer is ‘No’ , next question - is the scheduler working for any scheduled time (hourly, daily) ? if no, please reach out to Adobe to add advanced features (scheduling) of query service to the product license.

3 replies

ChetanyaJain-1
Community Advisor
Community Advisor
September 18, 2022

What's the error that you are seeing @nick_2024? What's the frequency of the schedule? How much time does it take to complete the Job (when tested manually)?

 

Also, when you tested manually did you try with delta update OR every time you delete & reload the data?

 

Nick_2024Author
Level 4
September 19, 2022

hi chetanyajain, there is no error, it looks like the schedule never start. If i manually run the query the output is returned in one minute more or less.

 

For the last question you made i actually don't know, maybe we miss something. I thought that just running the schedule the table is overwritten automatically.

Anuhya-Y
Community Advisor
Anuhya-YCommunity AdvisorAccepted solution
Community Advisor
September 19, 2022

@nick_2024 

 Is your query starting with Insert into “dataset name” when you schedule the query? If yes, remove Insert into “dataset name” from the query. As schedule query UI takes dataset name as input while creating scheduler.

 

If above question answer is ‘No’ , next question - is the scheduler working for any scheduled time (hourly, daily) ? if no, please reach out to Adobe to add advanced features (scheduling) of query service to the product license.

Nick_2024Author
Level 4
September 19, 2022

Hi anuhya-tad, no we have no INSERT INTO statement. the schedule runs hourly.

Anuhya-Y
Community Advisor
Community Advisor
September 19, 2022

@nick_2024 

Can you retrieve the runs and check the status using query service API https://developer.adobe.com/experience-platform-apis/references/query-service/#operation/listScheduleRuns.

. check out state in the response

 

 

I just tried to run a sample query every 5 min. https://developer.adobe.com/experience-platform-apis/references/query-service/#operation/updateSchedule

It ran successfully and inserted data in dataset.

 

{

"body": [

{

"op": "replace",

"path": "/schedule/schedule",

"value": "*/5 * * * *"

 

}

]

}

AtulChavan
Community Advisor
Community Advisor
September 20, 2022

Hi @nick_2024 ,
I suggest, you should check your license and see if 'Query Services' is meant to be used for ETL. I suspect in your case query service feature is to do analysis only hence scheduler never kick offs.