You are viewing our older product's guide. Click here for the documentation of GoodData Cloud, our latest and most advanced product.
Error Handling
CloudConnect is a legacy tool and will be discontinued. We recommend that to prepare your data you use the GoodData data pipeline as described in Data Preparation and Distribution. For data modeling, see Data Modeling in GoodData to learn how to work with Logical Data Modeler.
By default, any row with fields that cannot be inserted into target columns is discarded silently.
You can override this behavior with the following modifiers to the COPY command:
- REJECTMAX number - A maximum number of permitted rejected records before a load fails
- EXCEPTIONS ‘path’ - Local file containing load exceptions, which includes useful error messages for debugging issues
- REJECTED DATA ‘path’ - Local file where rejected rows are to be stored
- ABORT ON ERROR - The load is cancelled (that is, no data is loaded) on the first rejected load
Examples:
COPY customers FROM LOCAL 'customers.csv' ABORT ON ERROR;
COPY customers FROM LOCAL 'customers.csv.gz' GZIP WITH PARSER GdcCsvParser
EXCEPTIONS '/tmp/exceptions.txt' REJECTED DATA '/tmp/rejected.csv'
REJECTMAX 100