Skip to content

Exceptions rewrite

Martin Miksik edited this page Apr 10, 2020 · 9 revisions
  • Assigned entity set {0} differentiates from the declared {1}
  • {0} cannot be the type of {1}
  • Not a bool attribute: {0} = {1}
  • Expected bytes or str type on metadata_xml, got : {0}

Group 1 - Invalid operation

PyODataModelError

  • Cannot replace {0} of {1} by {2}
  • ** {0} cannot be the type of {1}**
  • Cannot replace {0} of {1} to {2}
  • ** {0} cannot be the type of {1}**
  • Cannot replace {0} of {1} to {2}
  • ** {0} cannot be the type of {1}**
  • Cannot replace {0} of {1} to {2}

RuntimeError

  • Cannot replace {0} of {1} to {2}
  • ** {0} cannot be the type of {1}**
  • Cannot replace {0} of {1} to {2}
  • Cannot replace value helper {0} of {1} by {2}
  • Cannot replace {} of {} with {}
  • Cannot replace {0} of {1} with {2}
  • ** {0} cannot be an annotation of {1}**
  • Cannot replace {0} of {1} with {2}
  • {0} cannot be assigned to {1}
  • Cannot replace {0} of {1} with {2} x4

Group 2 - Invalid input

PyODataException

  • Cannot encode value {} without complex type information
  • Cannot decode value {} without complex type information
  • ** Bad format: invalid list value {}**
  • ** Bad format: invalid list value {}**

PyODataModelError

  • Malformed value {0} for primitive Edm type. Expected format is {1}'value'
  • Malformed value {0} for primitive Edm type. Expected format is /Date(value)/
  • Cannot decode datetime from value {}.
  • Cannot decode datetime from value {}.
  • Scale value ({}) must be less than or equal to precision value ({})
  • Association {} cannot have more than 2 end roles

RuntimeError

  • Referential constraint must contain exactly one principal element
  • Principal role name was not specified
  • Referential constraint must contain exactly one dependent element
  • Dependent role name was not specified
  • End type is not specified in the association {}
  • Association {} does not have two end roles
  • In association {} is defined more than one referential constraint

KeyError

  • {0} already has property {1}
  • {0} already has navigation property {1} *_ Association {} has no End with Role {}_
  • Association set {} has no End with Role {}?
  • Association set {} has no End with Entity Set {}?
  • {0} has no local property {1}?
  • {0} has no list property {1}?

Group 3 - type error:

PyODataModelError

  • Cannot convert value of type {} to literal. Datetime format is required.

Group 4 - KeyError

PyODataModelError

  • Cannot access this association. An error occurred during parsing association metadata due to that annotation has been omitted.
  • Cannot access this type. An error occurred during parsing type stated in xml({self.name}) was not found, therefore it has been replaced with NullType* Type {} does not exist in Schema{}
  • EntityType {} does not exist in Schema Namespace {}
  • EntityType {} does not exist in any Schema Namespace
  • Neither primitive types nor types parsed from service metadata contain requested type {}
  • EntityType {} does not exist in Schema Namespace {}
  • Property {} does not exist in {}
  • EntityType {end_role.entity_type_info.name} does not exist in Schema Namespace {end_role.entity_type_info.namespace}
  • Association {} does not exist in namespace {}
  • EntitySet {} does not exist in Schema Namespace {}
  • Role {} is not defined in association {}

RuntimeError

  • Role {} was not defined in association {}
  • Role {} was not defined in association {}
  • Entity Set {annotation.collection_path} for {annotation} does not exist
  • Target Type {annotation.proprty_entity_type_name} of {annotation} does not exist
  • Target Property {annotation.proprty_name} of {vh_type} as defined in {annotation} does not exist
  • The attribute sap:text of {1} is set to non existing Property '{0}'
  • {0} of {1} points to an non existing LocalDataProperty {2} of {3}
  • {0} of {1} points to an non existing ValueListProperty {2} of {3}

KeyError

  • There is no Schema Namespace {}
  • ComplexType {} does not exist in Schema Namespace {}
  • ComplexType {} does not exist in any Schema Namespace
  • EnumType {type_name} does not exist in Schema Namespace {namespace}
  • EnumType {type_name} does not exist in any Schema Namespace
  • EntitySet {} does not exist in Schema Namespace {}
  • EntitySet {} does not exist in any Schema Namespace
  • FunctionImport {} does not exist in Schema Namespace {}
  • FunctionImport {} does not exist in any Schema Namespace
  • Association {} does not exist in namespace {}
  • Association Set for Association {} does not exist in Schema Namespace {}
  • Association Set for Association {} does not exist in any Schema Namespace
  • Association set {} does not exist in namespace {}