Difficulty arranging a task in Snowflake

Would appreciate some help with scheduling a task to run a proc. I have successfully created the task using the code snippet below.

CREATE OR REPLACE TASK etl_monitoring_task_snowplow
  WAREHOUSE = PSS_RAJA
  SCHEDULE = '15 MINUTE'
  WHEN 
  system$stream_has_data('OOBE.information_schema.load_history')

However, when attempting to execute the task with the following query:

ALTER TASK etl_monitoring_task_snowplow RESUME;

I encountered the following error message:

Cannot run task, EXECUTE TASK privilege needs to be granted to owner role

Answer №1

Using SYSTEM$STREAM_HAS_DATA is restricted to table streams only. Although the error message may not indicate this limitation, it is unlikely to function correctly when directed towards a view within information_schema.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Add the attribute's value to an array

$(document).ready(function() { function randomColor() { return 'rgb(' + Math.round(Math.random() * 255) + ', ' + Math.round(Math.random() * 255) + ', ' + Math.round(Math.random() * 255) + ')' ...

Is it possible to utilize SQL Triggers to monitor modifications made by a C# Console Application in a database?

I recently started learning about SQL Triggers. I have successfully created an after-update trigger that displays changes whenever I execute a SQL update query. However, I am curious to know if the trigger would still be effective in showing me changes i ...

Guide on providing a secondary parameter to a JavaScript function

I am currently working on a JSP that contains a JavaScript function: function validateSelection(identifier, page) { var form = ObjectId("profileForm"); form.elements['checkedLogin'].value = "" + identifier; form.elements['pageList& ...

Switching data between two views in Codeigniter and updating the database

I am currently working on building a fantasy football site and I need to create a substitution system. My view displays 11 starting players and 4 on the bench. Below is the structure of my fantasy team table. teamID | fantasyteam | userID | GK1 | GK2 ...

Use Regular Expressions to escape a quotation mark inside a pattern

Looking for a way to replace double quotes within specific characters in a String. Here's an example string: "XML": "<MyTag>"Value1"</MyTag><MyTag2>Value2</MyTag2>" The desired output is: "XML": "<MyTag>\"Value1&b ...

Having issues with JavaScript function returning value from Ajax request

My AJAX request function is functioning well - returning 1 for success and 2 for failure. However, I am facing an issue when trying to perform actions outside of this function based on the return value. Instead of getting either 1 or 2, I always receive "u ...

The error seems to vanish when commenting out the following div structure

Since upgrading to Angular 5, I've been encountering the following error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'ngIf: undefined'. Current value: 'ngIf: null&apo ...

CombiningTwo Distinct Tables into One in MySQL

I have two separate Excel files that I need to combine into a single table in MySQL. After exporting both files as CSV, I imported them into two distinct tables within MySQL. The first table (Central) contains: id, name, surname, address, zip, fieldA, ...

Using AJAX to populate a dropdown menu with an array in PHP

I am working on a functionality where I have two drop-down boxes. The first one should select the category, triggering an AJAX call to a PHP file that fetches the appropriate subcategory array and populates the second drop-down. Check out the code snippet ...

Creating a loop in a column-based carousel without using JavaScript

I'm currently working on developing a carousel using JavaScript or jQuery. I've attempted the code snippet below, but I'm having trouble getting it to display in 3 or 4 columns. While I understand that Bootstrap can handle this easily, I&apo ...

Segment by thirty minute time frame

I recently came across a fantastic piece of code on Stack Overflow that I wanted to tweak. I attempted to modify it to display results every half hour instead of hourly, but my tinkering only resulted in breaking the query. Here is the original SQL: SELE ...

Generating JSON data on the fly using D3.js scripting

I am attempting to create a JSON object dynamically by pulling data from an array in D3 JavaScript. (The code below is not the exact one I used, but similar) let radius = [10,20,30]; let jsonradius = '[{'; for (let i = 0; i < radius.le ...

Setting up Jplayer as an audio player: A step-by-step guide

I am looking to incorporate a Jplayer audio player into my project, but I am struggling to find any documentation or resources that provide instructions on what components to include and how to set it up. If anyone has experience with using the Jplayer au ...

The issue with the static Vue component is not resolving as expected. I am seeking a solution

Following the setup of the project using vue-cli 3.x, I declared this component in the main.js file. By the way, Unknown custom element: - have you properly registered the component? For recursive components, ensure to include the "name" option. I am st ...

Learn how to create an animated refreshing icon in React when clicked

I have a refresh icon in my React app that utilizes Material UI. I want the icon to spin for a second after it is clicked, but I am unsure of how to achieve this. Despite attempting some solutions, none have been successful. const useStyles = makeStyles(( ...

Once the form is submitted, Vue automatically resets all the data

export default { data() { return { usrName: null, pass1: null, pass2: null, regState: {stateCode:-1}, } }, methods: { register: function () { this.axios.post("/login/", { baseURL: 'http://127 ...

Key press event not firing as expected

<multiselect v-model="value" :options="websites" label="url" track-by="url" :allow-empty="false" class="header-select mr-3" v-on:keyup.enter="submit"></multiselect> My requi ...

Angular - Is it possible to change the visibility of a component element from a different component?

Within my Angular application, I have the following setup: There is a component called MainDashboardComponent that is displayed when the route is /. The app.component.html file contains a <router-outlet> tag structured like this: <app-side-menu& ...

What could be causing the bootstrap 4 col-md-3 block to shrink when using position fixed?

When working with Bootstrap 4, I encountered an issue where changing the block position from relative to fixed using a script caused the block to decrease in size. The script I used includes a .sticky class: .sticky { position: fixed !important; top: ...

Optimal methods for organizing various perspectives on a one-page website

I am developing an application that incorporates AngularJS and Bootstrap. The current setup involves organizing various views using ng-show, allowing for view changes based on button interactions and the enablement/disabling of ng-show values. Within a si ...