5

UPDATE: This is the fix:

  var request = BigQuery.newQueryRequest();
  request.query = sql

  // Inserts a Query Job
  try {
    queryResults = BigQuery.Jobs.query(request,projectNumber);
  }
  catch (err) {
    Logger.log(err);
    Browser.msgBox(err);
    return;
  }

My BigQuery > Google Spreadsheet has been working fine until now, that I'm getting the error 'Required parameter is missing'

The line of code that is throwing the exception is:

  try {
    queryResults = BigQuery.Jobs.query(projectNumber, sql, {'timeoutMs':10000});
  }

The full code is in this tutorial.

https://developers.google.com/apps-script/articles/bigquery_tutorial#section2

Has this happened to anyone else? Have you find a solution to this?

1
  • Use the issue tracker to report issues, you'll have a better chance to be seen by who have to. Nov 6, 2013 at 20:45

2 Answers 2

2

Instead of this:

queryResults = BigQuery.Jobs.query(projectNumber, sql);

do this:

var bodyOrResource={
  "kind": "bigquery#queryRequest",
  "query": sql
}
queryResults = BigQuery.Jobs.query(bodyOrResource,projectNumber);
1

There was a breaking change introduced in the Google internal version of appscript that should not affect external customers yet. If you are accessing BigQuery from outside of Google you should not experience this issue (yet).

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.