While messing with Code lists (http://msdn2.microsoft.com/en-us/library/aa577951.aspx) I was getting the following error:

Code list database error

Data Type mismatch in criteria expression.

Make sure the document has the correct standard, and a valid version. The CodeList database table name is constructed by joining the standard and the standard_version of the schema with an underscore.

<OK>

The issue is not with how the CodeList database table name is constructed, for me it was the fact that the first column I had defined as an Number when it should have been defined as Text.