Search code examples
salesforceapex-code

List out of bounds error


Here my code for the extension controller and I am geeting the error above

I there anything that I need to do


Solution

  • name=:lqc.LQ_Agreement__c
    

    Should be

    Id=:lqc.LQ_Agreement__c
    

    Since lookup fields store ID's, not names.