

# Errors and warnings after an upload

When AWS Context checks your file, it can report two kinds of issues:
+  **Errors** – AWS Context can’t use the file, so it doesn’t create the ontology. Fix the errors and upload the file again.
+  **Warnings** – AWS Context created the ontology, but it didn’t use part of your file as written. Review the warnings to make sure the ontology works the way you expect.

 AWS Context lists all the issues that it finds at once, so you can fix them together. Each issue has a code, and the line in your file when it applies.

On the console, errors appear in the **Import ontology** dialog box under **Failed to import ontology**. Warnings appear on the ontology’s page under **This ontology was accepted with warnings**. With the API, [`CreateOntology`](https://docs.aws.amazon.com/context/latest/APIReference/API_CreateOntology.html) returns errors in a `ValidationException` and warnings in `validationIssues`.

The following table lists common errors and how to fix them.


| Error code | How to fix it | 
| --- | --- | 
|  `RDF_PARSE_ERROR`  | The file isn’t valid Turtle. Fix the syntax at the line that the error names. | 
|  `UNSAFE_RDF`  | The file uses `owl:imports` or a namespace that AWS Context reserves. Copy the imported terms into your file, and use your own namespace. | 
|  `LIMIT_EXCEEDED`  | The file is too large. Reduce its size. For more information, see [Limits for an uploaded ontology](ontology-byo-limits.md). | 
|  `NO_CLASSES`  | The file has no classes. Declare your classes with `owl:Class`. | 
|  `UNMAPPABLE_CLASS`  | Two classes have the same name. Rename one of them. | 

The following table lists common warnings.


| Warning code | What it means | 
| --- | --- | 
|  `MAPPING_LIMITS_EXCEEDED`  | The ontology is too large for document and file extraction. You can still use it in an Agent Context. | 
|  `SYNTHESIZED_NODE_ID`  | A class has no identifying property, so AWS Context added an `id` property. | 
|  `UNSUPPORTED_DATATYPE`  | A field uses a data type that AWS Context doesn’t recognize, so the field holds text. | 