geonature.core.imports.checks.errors

Contenu

geonature.core.imports.checks.errors#

Classes#

ImportCodeError

List of all the possible errors returned during the import process.

Module Contents#

class geonature.core.imports.checks.errors.ImportCodeError[source]#

List of all the possible errors returned during the import process.

Attributes#

DATASET_NOT_FOUNDstr

The referenced dataset was not found

DATASET_NOT_AUTHORIZEDstr

The dataset is not authorized to the current user

DATASET_NOT_ACTIVEstr

The dataset is inactive

MULTIPLE_ATTACHMENT_TYPE_CODEstr

Multiple attachments of the same type are not allowed

MULTIPLE_CODE_ATTACHMENTstr

Multiple attachments (commune, maille, departement) with the same code were given.

INVALID_DATEstr

The date is not valid

INVALID_UUIDstr

The uuid is not valid

INVALID_INTEGERstr

The integer is not valid

INVALID_NUMERICstr

The numeric is not valid

INVALID_WKTstr

The WKT string is not valid

INVALID_GEOMETRYstr

The geometry is not valid

INVALID_BOOLstr

The boolean is not valid

INVALID_ATTACHMENT_CODEstr

The code given does not exists in the desitination referential

INVALID_CHAR_LENGTHstr

The character length is not valid

DATE_MIN_TOO_HIGHstr

The date min is too high

DATE_MAX_TOO_LOWstr

The date max is too low

DATE_MAX_TOO_HIGHstr

The date max is too high

DATE_MIN_TOO_LOWstr

The date min is too low

ALTI_MIN_SUP_ALTI_MAXstr

The altitude min is superior to the altitude max

DATE_MIN_SUP_DATE_MAXstr

The date min is superior to the date max

DEPTH_MIN_SUP_ALTI_MAXstr

The depth min is superior to the altitude max

ORPHAN_ROWstr

The row could not be attached to an other entity # FIXME: clarify

DUPLICATE_ROWSstr

One rows appears more than once

DUPLICATE_UUIDstr

A uuid value is duplicated

EXISTING_UUID: str

A uuid value already exists in the destination table

SKIP_EXISTING_UUID: str

A uuid value already exists in the destination table and should be skipped

MISSING_VALUEstr

A required value is missing (see mandatory column in gn_imports.bib_fields table)

MISSING_GEOMstr

The geometry is missing

GEOMETRY_OUTSIDEstr

The geometry is outside the polygon in the GeoNature configuration (INSTANCE_BOUNDING_BOX)

NO_GEOMstr

No geometry given (wherever WKT or latitude/longitude)

GEOMETRY_OUT_OF_BOXstr

The geometry is outside the perimeter of the instance geography # FIXME: clarify (confusion with GEOMETRY_OUTSIDE)

ERRONEOUS_PARENT_ENTITYstr

The parent entity is not valid

NO_PARENT_ENTITYstr

The parent entity is not found

DUPLICATE_ENTITY_SOURCE_PKstr

The entity source primary key is duplicated

COUNT_MIN_SUP_COUNT_MAXstr

The count min is superior to the count max

INVALID_NOMENCLATUREstr

The nomenclature is invalid

INVALID_EXISTING_PROOF_VALUEstr

The existing proof value is invalid

CONDITIONAL_MANDATORY_FIELD_ERRORstr

Some conditional mandatory fields are missing #FIXME: clarify

INVALID_NOMENCLATURE_WARNINGstr

The nomenclature is invalid

UNKNOWN_ERRORstr

An unknown error occurred

INVALID_STATUT_SOURCE_VALUEstr

The statut source value is invalid

CONDITIONAL_INVALID_DATAstr

The conditional data is invalid

INVALID_URL_PROOFstr

The url proof is invalid

ROW_HAVE_TOO_MUCH_COLUMNstr

A row have too much column

ROW_HAVE_LESS_COLUMNstr

A row have less column

EMPTY_ROWstr

A row is empty

HEADER_SAME_COLUMN_NAMEstr

The header have same column name

EMPTY_FILEstr

The file is empty

NO_FILE_SENDEDstr

No file was sent

ERROR_WHILE_LOADING_FILEstr

An error occurred while loading the file

FILE_FORMAT_ERRORstr

The file format is not valid

FILE_EXTENSION_ERRORstr

The file extension is not valid

FILE_OVERSIZEstr

The file is too big

FILE_NAME_TOO_LONGstr

The file name is too long

FILE_WITH_NO_DATAstr

The file have no data

INCOHERENT_DATAstr

An entity data is different in multiple rows

CD_HAB_NOT_FOUNDstr

The habitat code is not found

CD_NOM_NOT_FOUNDstr

The cd_nom is not found in the instance TaxRef

DATASET_NOT_FOUND = 'DATASET_NOT_FOUND'[source]#
DATASET_NOT_AUTHORIZED = 'DATASET_NOT_AUTHORIZED'[source]#
DATASET_NOT_ACTIVE = 'DATASET_NOT_ACTIVE'[source]#
MULTIPLE_ATTACHMENT_TYPE_CODE = 'MULTIPLE_ATTACHMENT_TYPE_CODE'[source]#
MULTIPLE_CODE_ATTACHMENT = 'MULTIPLE_CODE_ATTACHMENT'[source]#
INVALID_DATE = 'INVALID_DATE'[source]#
INVALID_UUID = 'INVALID_UUID'[source]#
INVALID_INTEGER = 'INVALID_INTEGER'[source]#
INVALID_NUMERIC = 'INVALID_NUMERIC'[source]#
INVALID_WKT = 'INVALID_WKT'[source]#
INVALID_GEOMETRY = 'INVALID_GEOMETRY'[source]#
INVALID_BOOL = 'INVALID_BOOL'[source]#
INVALID_ATTACHMENT_CODE = 'INVALID_ATTACHMENT_CODE'[source]#
INVALID_CHAR_LENGTH = 'INVALID_CHAR_LENGTH'[source]#
DATE_MIN_TOO_HIGH = 'DATE_MIN_TOO_HIGH'[source]#
DATE_MAX_TOO_LOW = 'DATE_MAX_TOO_LOW'[source]#
DATE_MAX_TOO_HIGH = 'DATE_MAX_TOO_HIGH'[source]#
DATE_MIN_TOO_LOW = 'DATE_MIN_TOO_LOW'[source]#
DATE_MIN_SUP_DATE_MAX = 'DATE_MIN_SUP_DATE_MAX'[source]#
DEPTH_MIN_SUP_ALTI_MAX = 'DEPTH_MIN_SUP_ALTI_MAX'[source]#
ALTI_MIN_SUP_ALTI_MAX = 'ALTI_MIN_SUP_ALTI_MAX'[source]#
ORPHAN_ROW = 'ORPHAN_ROW'[source]#
DUPLICATE_ROWS = 'DUPLICATE_ROWS'[source]#
DUPLICATE_UUID = 'DUPLICATE_UUID'[source]#
EXISTING_UUID = 'EXISTING_UUID'[source]#
SKIP_EXISTING_UUID = 'SKIP_EXISTING_UUID'[source]#
MISSING_VALUE = 'MISSING_VALUE'[source]#
MISSING_GEOM = 'MISSING_GEOM'[source]#
GEOMETRY_OUTSIDE = 'GEOMETRY_OUTSIDE'[source]#
NO_GEOM = 'NO-GEOM'[source]#
GEOMETRY_OUT_OF_BOX = 'GEOMETRY_OUT_OF_BOX'[source]#
ERRONEOUS_PARENT_ENTITY = 'ERRONEOUS_PARENT_ENTITY'[source]#
NO_PARENT_ENTITY = 'NO_PARENT_ENTITY'[source]#
DUPLICATE_ENTITY_SOURCE_PK = 'DUPLICATE_ENTITY_SOURCE_PK'[source]#
COUNT_MIN_SUP_COUNT_MAX = 'COUNT_MIN_SUP_COUNT_MAX'[source]#
INVALID_NOMENCLATURE = 'INVALID_NOMENCLATURE'[source]#
INVALID_EXISTING_PROOF_VALUE = 'INVALID_EXISTING_PROOF_VALUE'[source]#
INVALID_NOMENCLATURE_WARNING = 'INVALID_NOMENCLATURE_WARNING'[source]#
CONDITIONAL_MANDATORY_FIELD_ERROR = 'CONDITIONAL_MANDATORY_FIELD_ERROR'[source]#
UNKNOWN_ERROR = 'UNKNOWN_ERROR'[source]#
INVALID_STATUT_SOURCE_VALUE = 'INVALID_STATUT_SOURCE_VALUE'[source]#
CONDITIONAL_INVALID_DATA = 'CONDITIONAL_INVALID_DATA'[source]#
INVALID_URL_PROOF = 'INVALID_URL_PROOF'[source]#
ROW_HAVE_TOO_MUCH_COLUMN = 'ROW_HAVE_TOO_MUCH_COLUMN'[source]#
ROW_HAVE_LESS_COLUMN = 'ROW_HAVE_LESS_COLUMN'[source]#
EMPTY_ROW = 'EMPTY_ROW'[source]#
HEADER_SAME_COLUMN_NAME = 'HEADER_SAME_COLUMN_NAME'[source]#
EMPTY_FILE = 'EMPTY_FILE'[source]#
NO_FILE_SENDED = 'NO_FILE_SENDED'[source]#
ERROR_WHILE_LOADING_FILE = 'ERROR_WHILE_LOADING_FILE'[source]#
FILE_FORMAT_ERROR = 'FILE_FORMAT_ERROR'[source]#
FILE_EXTENSION_ERROR = 'FILE_EXTENSION_ERROR'[source]#
FILE_OVERSIZE = 'FILE_OVERSIZE'[source]#
FILE_NAME_TOO_LONG = 'FILE_NAME_TOO_LONG'[source]#
FILE_WITH_NO_DATA = 'FILE_WITH_NO_DATA'[source]#
INCOHERENT_DATA = 'INCOHERENT_DATA'[source]#
CD_HAB_NOT_FOUND = 'CD_HAB_NOT_FOUND'[source]#
CD_NOM_NOT_FOUND = 'CD_NOM_NOT_FOUND'[source]#