Non-autogenerated functions cause “Error: null pointer or function not found”
Any functions not generated by the tool give me the following error:
Caused by: [Error: null pointer or function not found: toString]
[Near : {... l(input.S) ? null : toString(1234)); ....}]
I tried something very simple and the first line fails but if I comment it out it works.
Also if I use one of the other functions like str2date it also works.
Why?
output.CreditAmount = (isnull(input.S) ? null : toString(1234));
output.BatchId = input.A;
output.DistributionReference = input.P;
output.TransactionDate = (isnull(input.F) ? null : str2date(input.F, "MM/dd/yyyy"));
output.GL_AccountNumber = (isnull(lookup(LookupYoungYouToGL).get([input.Q])) ? null : lookup(LookupYoungYouToGL).get([input.Q]).GL_Code);]]></attr>