Docs about Docs logo Docs about Docs

About this template

File location:
  • /_templates/common/error-messages.yml
  • /_templates/destinations/data-files/loading-errors.yml
Used in:
Repo link:
Instructions:

This template is used to add documentation for various error types. This template is used to add documentation for various error types:


Template sections

Each template is grouped into sections to make parameters easier to find. These sections and the parameters they contain are described below.

Raw errors

A mapping of unique keys and raw error messages. This section is optional, but can be useful if you want to be able to directly reference an error message outside of the error reference it’s going to be used in.

For example:

## _data/errors/extraction/databases/mongodb.yml

raw-error:
  replication-key-type: "[DATA_TYPE] is not a supported replication key type"

This could then be referenced using:

{{ site.data.errors.extraction.databses.mongodb.raw-error.replication-key-type }}

Instead of something like:

{% assign rep-key-error = site.data.errors.extraction.databses.mongodb.all | find:"id","replication-key-type" %}

{{ rep-key-error.message }}
Parameter Description
[ERROR-KEY]
STRING

A key-value pair, where the key is the unique ID for the error and the value is the raw error message itself:

replication-key-type: "[DATA_TYPE] is not a supported replication key type"

Note: The raw error message should be generic. Replace anything specific like table or column names with placeholders enclosed in brackets. For example: [TABLE_NAME]

Back to top

All error messages

A list of errors. Errors are items in a list named all:

all:
  - message: ""
    id: ""
    applicable-to: ""
    level: ""
    category: ""
    category-doc: ""
    version: ""
    summary: ""
    cause: ""
    fix-it: ""
Parameter Description
message
STRING

The raw error message.

Example values:

  • ERROR: must be owner of relation [TABLE_NAME]
  • SKIPPING Malformed sheet: [sheet_name]
  • You do not have permission to access this type of transaction.
id
STRING

A unique ID for the error message. This is used to generate an anchor, which creates a direct link to the documentation for the error.

This should be short and descriptive; hyphens should take the place of spaces.

Example values:

  • malformed-sheet
  • empty-sheet
  • schema-permission-denied
applicable-to
STRING

The integration(s) or destination(s) the error pertains to.

Example values:

  • Amazon Redshift destinations
  • GitHub integrations
level
STRING

The urgency level of the error. The level of an error determines how Stitch behaves when the error is encountered:

  • info - Data has been replicated or loaded, and information is simply being logged
  • warning - Data has been replicated or loaded, but something may require attention
  • critical - Data can’t be replicated and/or loaded and intervention is required

Must be one of the following:

  • info
  • warning
  • critical
category
STRING

A short description of the broad category the error falls into.

For example: An error describing insufficient permissions for a database might have a category of Database user privileges

Example values:

  • Database user privileges
  • Connection settings
category-doc
STRING

A link to documentation about the error category. For example:

category: "Log-based Incremental Replication"
category-doc: |
  {{ link.replication.log-based-incremental | prepend: site.baseurl }}

If provided, this value and the category value are used to create a link. This value should be formatted as a full URL such as https://www.stitchdata.com, or an internal Stitch Docs link.

version
STRING

Applicable to integrations only. The version(s) of the integration the error is applicable to. This value should be an integer.

Example values:

  • 1
  • 2
summary
STRING

A summary of the error. This is used by the page’s layout to generate a section heading for the error.

Example values:

  • Database doesn't exist
  • Cannot create new schema
  • Insufficient schema privileges
cause
STRING

A description of what caused the error. This can be written using Markdown or HTML.

For example:

Stitch is not the owner of a table in Amazon Redshift, which is required to perform functions necessary to load data.
fix-it
STRING

Instructions for how to resolve or work around the error. This can be written in Markdown or HTML and should include links to relevant documentation, if any exists.

For example:

Verify that the database user authorizing the connection has all the required privileges as outlined in the [Amazon Redshift setup instructions]({{ link.destinations.setup.redshift | prepend: site.baseurl | append: "#create-database-user" }}).
Back to top
Back to top

Last updated: 28 July 2021