# SDK Error Codes

### General Error Codes

<table><thead><tr><th>Error Code</th><th>Type</th><th>Description</th><th>Suggested Action</th><th data-hidden data-type="number"></th></tr></thead><tbody><tr><td>6001</td><td>Builder Error</td><td>Access token field is empty</td><td>Please make sure to specify your access token</td><td>null</td></tr><tr><td>6002</td><td>Builder Error</td><td>Bundle key field is empty</td><td>Please make sure to add a bundle key to the builder configurations</td><td>null</td></tr><tr><td>6003</td><td>Builder Error</td><td>Base Url field is empty</td><td>Please make sure to add the base URL to the builder configurations</td><td>null</td></tr><tr><td>6004</td><td>Builder Error</td><td>Invalid Language entered</td><td>Please make sure to specify your language. Use "en" for English or "ar" for Arabic</td><td>null</td></tr><tr><td>7001</td><td>Service Failure</td><td>Network connection issue</td><td>Please make sure you have internet access</td><td>null</td></tr><tr><td>7002</td><td>Service Failure</td><td>Server error</td><td>If the error persists, please contact us</td><td>null</td></tr><tr><td>7003</td><td>Service Failure</td><td>Security error</td><td>Please make sure you are not using a rooted device</td><td>null</td></tr><tr><td>7004</td><td>Service Failure</td><td>Unauthorized</td><td>Generate a new access token and try again</td><td>null</td></tr><tr><td>7005</td><td>Service Failure</td><td>Server error</td><td>If the error persists, please contact us</td><td>null</td></tr><tr><td>7006</td><td>Service Failure</td><td>Camera access denied</td><td>Please allow camera permission</td><td>null</td></tr><tr><td>7007</td><td>Service Failure</td><td>Trials exceeded</td><td>Please generate a new access token to start a new session</td><td>null</td></tr><tr><td>7008</td><td>Service Failure</td><td>Quota expired</td><td>Please recharge your quota and try again.</td><td>null</td></tr><tr><td>7009</td><td>Service Failure</td><td>Invalid SSL certificate</td><td>Please make sure SSL certificate is valid</td><td>null</td></tr><tr><td>7010</td><td>Serivce Failure</td><td>Invalid access token</td><td>Please make sure you have a valid access token</td><td>null</td></tr><tr><td>7011</td><td>Serivce Failure</td><td>Server not found</td><td>Please make sure the baseURL is correct</td><td>null</td></tr><tr><td>7012</td><td>Serivce Failure</td><td>Server error</td><td>If the error persists, please contact us</td><td>null</td></tr><tr><td>7013</td><td>Serivce Failure</td><td>Location Access Denied</td><td>Please allow location permission</td><td>null</td></tr><tr><td>7014</td><td>Serivce Failure</td><td>Encryption issue detected</td><td>If the error persists, please contact us</td><td>null</td></tr><tr><td>7015</td><td>Serivce Failure</td><td>Decryption issue detected</td><td>If the error persists, please contact us</td><td>null</td></tr></tbody></table>

### Document Capture Error Codes

| Error Code | Type            | Description                                                      | Suggested Action                                                     |
| ---------- | --------------- | ---------------------------------------------------------------- | -------------------------------------------------------------------- |
| 6005       | Builder Error   | You cannot use capture-only mode with document verification      | Please make sure you are only using only one of those configurations |
| 6006       | Builder Error   | You cannot use preview capture images with document verification | Please make sure you are only using only one of those configurations |
| 7101       | Service Failure | Data extraction failed                                           | Please make sure that the ID is clear                                |
| 7102       | Service Failure | Document verification failed                                     | Please make sure that you are using a real ID                        |
| 7103       | Service Failure | Data validation failed                                           | Please make sure that you are using a valid ID                       |

### Biometrics Error Codes

| Error Code | Type            | Description                              | Suggested Action                                                 |
| ---------- | --------------- | ---------------------------------------- | ---------------------------------------------------------------- |
| 6212       | Builder Error   | Minimum Liveness actions count not met   | Please make sure you have at least one action                    |
| 6214       | Builder Error   | Minimum Liveness instructions not met    | Please make sure number of instructions is  at least one         |
| 6215       | Builder Error   | Number of instructions exceeded          | Please make sure number of instructions don't exceed ten         |
| 6216       | Builder Error   | Minimum action time not met              | Please make sure time per action is at least five seconds        |
| 6217       | Builder Error   | Maximum action time exceeded             | Please make sure time per action doesn't exceed thirty seconds   |
| 6218       | Builder Error   | Maximum number of failed trials exceeded | Please make sure the number of failed trials is at least two     |
| 6224       | Builder Error   | Minimum number of actions not met        | Please make sure to choose at least 2 liveness actions           |
| 6225       | Builder Error   | Invalid transaction Id                   | Please make sure to specify a valid transaction ID               |
| 7201       | Service Failure | Face is not similar                      | Please make sure that the the user matches the face in the image |
| 7202       | Service Failure | Face not detected                        | Please make sure that there is a face in the Liveness frame      |
| 7203       | Service Failure | Face is not live                         | Please make sure  you are using a real face and not an image     |

For non-SDK related errors, please check [Valify Error Codes](https://valify.gitbook.io/documentation/error-codes/valify-error-codes)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://valify.gitbook.io/valify-ios-sdk-documentation/error-codes/sdk-error-codes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
