If M14 Createmesh is the same algo as in previous versions, no way it will work as you specified. CreateMesh takes a function name from an implicit definition . From f(x,y) it takes Createmesh(f,,,,) and you then range x, y. It can take the X(x,y), Y(x,y), Z(x,y) as well . Createmesh(X,Y,Z,,,,,). Don't you have examples in your qs resources folder ? Your fun(x,y) generates a matrix of values. The error message is as stupid as "wrong route to the moon, you are in the train for nowhere".
jmG