MDS.LAST.ERROR
If you try to evaluate the number of elements in a non-existent dimension, OLAP Server returns an error. You can get the error number and error text with MDS.LAST.ERROR and MDS.ERROR.
Syntax
MDS.LAST.ERROR( )
The function returns the number of the error that occurred last. Use the function MDS.ERROR display the associated text.