Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🍒][PLUGIN-1849] Error Management for BigQuery Action plugin #1509

Conversation

psainics
Copy link
Contributor

🍒 [cherrypick]

Commits :

PR:


https://cdap.atlassian.net/browse/PLUGIN-1849

[
  {
    "stageName": "BigQuery Argument Setter",
    "errorCategory": "Plugin-'BigQuery Argument Setter'",
    "errorReason": "Columns: \" env_type \"do not exist in table. Argument selections columns must exist in table.",
    "errorMessage": "Columns: \" env_type \"do not exist in table. Argument selections columns must exist in table.",
    "errorType": "USER",
    "dependency": "true"
  }
]

image

image

[
  {
    "stageName": "BigQuery Execute",
    "errorCategory": "Plugin-'Validation'-'BigQuery Execute'",
    "errorReason": "Stage 'BigQuery Execute' encountered 1 validation failures.",
    "errorMessage": "Stage 'BigQuery Execute' encountered : io.cdap.cdap.etl.api.validation.ValidationException: Errors were encountered during validation. Access Denied: Project cdf-entcon: User does not have bigquery.jobs.create permission in project cdf-entcon.. Error code: 403.",
    "errorType": "USER",
    "dependency": "false"
  }
]

Big Query Execute

image

[
  {
    "stageName": "BigQuery Execute",
    "errorCategory": "Plugin-'BigQuery Execute'",
    "errorReason": "400 Bad Request. Please check the request parameters and syntax. For more details, see https://cloud.google.com/bigquery/docs/error-messages",
    "errorMessage": "Failed to execute query with exponential backoff, io.cdap.cdap.api.exception.ProgramFailureException: com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request\nGET https://www.googleapis.com/bigquery/v2/projects/cdf-entcon/queries/f2780ae5-651c-4e52-a8ab-03eeef6f1b11?location=US&maxResults=0&prettyPrint=false\n{\n  \"code\" : 400,\n  \"errors\" : [ {\n    \"domain\" : \"global\",\n    \"location\" : \"q\",\n    \"locationType\" : \"parameter\",\n    \"message\" : \"Required field id cannot be null\",\n    \"reason\" : \"invalidQuery\"\n  } ],\n  \"message\" : \"Required field id cannot be null\",\n  \"status\" : \"INVALID_ARGUMENT\"\n}",
    "errorType": "USER",
    "dependency": "true",
    "errorCodeType": "HTTP",
    "errorCode": "400",
    "supportedDocumentationUrl": "https://cloud.google.com/bigquery/docs/error-messages"
  }
]

@psainics psainics added the build Trigger unit test build label Jan 31, 2025
@psainics psainics self-assigned this Jan 31, 2025
@psainics psainics merged commit 338eb41 into data-integrations:release/0.24 Jan 31, 2025
28 of 29 checks passed
@psainics psainics deleted the cherry-pick/5821daa4891c6ad3995b142aa3e474f606cb58a8 branch January 31, 2025 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Trigger unit test build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants