When datatype declaration and usage of that data type doesn't have the same case the type could not be found.
When datatype declaration and usage of that data type doesn't have the same case the type could not be found.
Make sure data type declaration and usage has same case.