Type mismatch in method RunStkCoerceVal in Lotusscript agent


This is a short tip which I picked up when writing a lotus script agent and couldn’t find any reference to the error in the context I was working.

Type mismatch in method RunStkCoerceVal in Lotusscript agent STRING found Null expected.

The agent was simply getting data from a back end document

closureinfo = doc1.getitemvalue(“closuredetails”)

The reason for the error became apparent when it was realised that the code should have read

closureinfo = doc1.getitemvalue(“closuredetails”) (0)

So in this case the value returned was not what the code expected

So thats  the difference that nothing makes 🙂

Hope that helps someone else.