AnsweredAssumed Answered

Got an error when adding a Custom Inline Function in command line

Question asked by vino on Nov 21, 2014
Latest reply on Nov 24, 2014 by vino

Hi All,


I tried this article


but got this message when i tried to run below command in command line.

nwadmin -o AddInlineFunction -functionalias "fn-VTRandom" -assembly "VTInlineFunctions, Version=, Culture=neutral, PublicKeyToken=eecb9361e97d9908" -namespace "VTInlineFunctions" -typename "VTRandom" -method "Random" -description "Generates a random number." -usage "fn-Random() or fn-Random(max) or fn-Random(min,max)"


This is the error message :

Command line execution error: Cannot insert duplicate key row in object 'dbo.Str ingFunction' with unique index 'IX_FunctionAliasUnique'.


Please let me know the reason for this error.