internal server error during validation when incorrect data type is used in template function
Template validation fails with "Encountered internal server error" when incorrect data type is used in the padLeft function.
E.g. If you incorrectly type padLeft(copyIndex(1),'0',2) instead of padLeft(copyIndex(1),2,'0') [notice that in the first instance, parameters 2 and 3 are reversed and parameter 2 is a string instead of an integer], template validation will crash with an internal server error and provide no indication of what is wrong. This makes it very hard to discover what & where the problem is.
Please have validation check that parameters are the right data type.
Adrian Walker commented
@Kan, nice find. How did you find it, or was it trial and error?
@Microsoft, shouldn't Visual Studio (2017) pick this up?