AnsweredAssumed Answered

String index out of range: -1 for Custom Object Lookup

Question asked by Stephen Baker on Mar 5, 2018
Latest reply on Mar 5, 2018 by Sanford Whiteman

Attached an image of all parts combined.


I have a test object with a currency property for a lead but attempting to grab it in a token is resulting in an index error.


* custom object field is of type currency

* it returns index error no matter what get() value is set to

* verified the property exists under the custom object for the lead used in preview

* removing { } from the object reference doesn't change the error (don't think this matters)

* this is a one-to-many relationship object that dedupes and links by Email Address

* expected outcome is token pulls in a single value from the custom object for the target person (custom object has one line item per email address)




Cannot get email content-

An error occurred when procesing the email Rendered_Email_Velocity_Error_Area_?!

String index out of range: -1 near





#set ( $render = $2018TaxSeason_cList.get(0).preApprovalAmount )


Any insight greatly appreciated, am exhausted in efforts to figure out how custom objects work. Docs state it pulls in a list of up to 10 items by default, not sure in a one-to-many relationship if this means it pulls in 10 top leads or 10 top properties for each lead when the token runs.