# Get TWAIN Error > [HTML Version](gettwainerror.htm) **xcall AUI, AUI\_IMAGE, IMGOP\_TWERR, handle, status** IMGOP\_TWERR only applies when the _status_ returned from another _opcode _is 11 (TWAIN error). In that case, you can use _opcode _9 to retrieve a more specific error code, among the following: | **Value ** | **Meaning** | |------|------| | 1 | Failure due to unknown causes | | 2 | Not enough memory to perform operation | | 3 | No data source | | 4 | Source already in use | | 5 | Source/Manager error already reported | | 6 | Unknown capability requested | | 7 | Undefined error | | 8 | Undefined error | | 9 | Bad protocol | | 10 | Parameter out of range | | 11 | Message received out of sequence | | 12 | Unknown destination source app | | 13 | Could not create parent window | | 14 | TWAIN Source Manager not found |