add new activity in azure data factory to wait until 00:00 and then run the next step
Jump to turn (6)
- 1add new activity in azure data factory to wait until 00:00 and then run the next
- 2I have this error when try to add the expression: Please use math functions (e.g
- 3can you fix it for me for this expression?@duration(concat(formatDateTime(utcnow
- 4I again have this warning:'subtract' is not a recognized function
- 5again I have this error:'subtract' is not a recognized function
- 6'dateTimeDiff' is not a recognized function
- User
add new activity in azure data factory to wait until 00:00 and then run the next step
- Assistant
To add a new activity in Azure Data Factory that waits until 00:00 and then runs the next step, you can use the "Wait" activity followed by the activity you want to run at 00:00. Here are the steps to create this pipeline:
- Create a new pipeline in Azure Data Factory.
- Add a "Wait" activity to the pipeline.
- Configure the "Wait" activity to wait until 00:00. To do this, set the "Wait time" property to an expression that calculates the number of milliseconds between the current time and 00:00. Here's an example expression:
@duration(concat(formatDateTime(utcnow(),'yyyy-MM-dd'), 'T00:00:00Z') - utcnow())This expression calculates the duration between the current time and midnight of the current day. 4. Add the activity you want to run at 00:00 after the "Wait" activity in the pipeline. 5. Configure the activity as needed. 6. Save and publish the pipeline.