<!--
{
  "documentType" : "article",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/scene-file-consistency-error-keys",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Scene File Consistency Error Keys"
}
-->

# Scene File Consistency Error Keys

Keys identifying errors found during a scene-file-format consistency check.

## Discussion

If you specify <doc://com.apple.documentation/documentation/Swift/true> for the [`checkConsistency`](/documentation/SceneKit/SCNSceneSource/LoadingOption/checkConsistency) when creating or loading from a scene source, SceneKit verifies the scene file against the specification for its file format. SceneKit reports any format verification issues that occur as an array of dictionaries, identified by the in the [`SCNDetailedErrorsKey`](/documentation/SceneKit/SCNDetailedErrorsKey) key in the <doc://com.apple.documentation/documentation/Foundation/NSError/userInfo> dictionary of an <doc://com.apple.documentation/documentation/Foundation/NSError> object. Each item in the array is a dictionary containing one or more of the keys listed above.

These keys and their values provide details about the location of the error in the scene file. Other properties of the returned <doc://com.apple.documentation/documentation/Foundation/NSError> object describe the nature of the validation error.

## Topics

### Constants

[`let SCNConsistencyElementIDErrorKey: String`](/documentation/SceneKit/SCNConsistencyElementIDErrorKey)

The identifier of the scene file element where the error occurred.

[`let SCNConsistencyElementTypeErrorKey: String`](/documentation/SceneKit/SCNConsistencyElementTypeErrorKey)

The type of scene file element in which the error occurred.

[`let SCNConsistencyLineNumberErrorKey: String`](/documentation/SceneKit/SCNConsistencyLineNumberErrorKey)

The line number in the scene file in which the error occurred.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)