This article was previously published under Q190820
This article has been archived. It is offered "as is" and will no longer be updated.
Passing anything other than a character data type as the second parameterto the SYS(2014) function does not result in a "Function argument value,type, or count is invalid" error even though the data type is incorrect.Under some circumstances, passing an incorrect data type may cause a FatalException error.
You must check the data type of the second parameter before passing thevalue to the SYS(2014) function. Then you can use the TYPE() function toverify that the data type of this parameter is character.
Microsoft has confirmed this to be a bug in the Microsoft products listedat the beginning of this article. We are researching this bug and will postnew information here in the Microsoft Knowledge Base as it becomesavailable.
Steps to Reproduce Behavior
Run the following line of code from the Command window:
RESULTS: You do not get the error message mentioned in the SYMPTOMSsection, and a Fatal Exception may occur.