# Null pointer or function not found

**URL:** <https://forum.cloverdx.com/t/null-pointer-or-function-not-found/1342>\
**Category:** CloverDX Platform\
**Created:** [February 4, 2014, 12:00am UTC](https://forum.cloverdx.com/t/null-pointer-or-function-not-found/1342 "2014-02-04T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluetaillizard](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@bluetaillizard](https://forum.cloverdx.com/u/bluetaillizard)\
**Post date:** [February 4, 2014, 12:00am UTC](https://forum.cloverdx.com/t/null-pointer-or-function-not-found/1342/1 "2014-02-04T00:00:00Z")

</div>

Non-autogenerated functions cause “Error: null pointer or function not found”  
Any functions not generated by the tool give me the following error:

```auto
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>

```

---

<div class="post-metadata">

**Author:** ![David\_Hlidek](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@David\_Hlidek](https://forum.cloverdx.com/u/David_Hlidek)\
**Post date:** [February 5, 2014, 2:53pm UTC](https://forum.cloverdx.com/t/null-pointer-or-function-not-found/1342/2 "2014-02-05T14:53:02Z")

</div>

Hi,

We have analyzed your code but we miss some details, for example declaration of “input”. Can you please provide us with:

\* version and edition of CloverETL you use  
\* complete source code of transformation causing this issue (you can minimalize it to core problem)  
\* complete error message, including stack trace

Thank you!
