function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sundar s 24sundar s 24 

null error

the bolded line gave error Error is in expression '{!onload}' in component <apex:page> in page clonequote: Class.CloneQuote.cloneFutureDatedAmendmentGroups: line 
any idea ? there is no null value quote id has value

private static RampData cloneFutureDatedAmendmentGroups(String quoteId, String subQuoteId, RampData data, Map<String, String> oldQrpcToNewQrpcMap) {
    System.debug(LoggingLevel.INFO, 'Cloning FDAG...');
    List<FutureDatedAmendmentGroup__c> fdagList = Database.query(getCreatableFieldsSOQL('FutureDatedAmendmentGroup__c', 'Quote__c =\'' + quoteId + '\''));
    List<FutureDatedAmendmentGroup__c> fdagToCreate = new List<FutureDatedAmendmentGroup__c>();
    List<String> oldFdagIdList = new List<String>();
    for (FutureDatedAmendmentGroup__c fdag : fdagList) {
      FutureDatedAmendmentGroup__c newFdag = fdag.clone(false, true, false, false);
      newFdag.Quote__c = subQuoteId;
      newFdag.QuoteRatePlanCharge__c = oldQrpcToNewQrpcMap.get(newFdag.QuoteRatePlanCharge__c);
AbhinavAbhinav (Salesforce Developers) 
Hi Sundar,

Try debuging this

getCreatableFieldsSOQL('FutureDatedAmendmentGroup__c', 'Quote__c =\'' + quoteId + '\'')  whether its framing  valid query or not