• Neelanjan_SFDC
  • NEWBIE
  • 0 Points
  • Member since 2013
  • Salesforce Consultant

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi,

I am trying to display a map with map values in a visualforce page but keep getting Map key null not found in map error:

Controller:

public MAP<Quote,LIST<QuoteLineItem>> getQuotes(){
        quotelistmap = new MAP<Quote,LIST<QuoteLineItem>>();
         for(Quote getquotes : [SELECT Id, Name, Product__c, Product_Category__c, Total_Price_Incl__c,
                                                 (SELECT Id, Description FROM QuoteLineItems)
                                                  FROM Quote WHERE Opportunity.Link_to_Main_Opportunity__c = :o.Id]){
            quotelistmap.put(getquotes,getquotes.QuoteLineItems);
            system.debug('quotelistmap: '+quotelistmap);
        }
      return quotelistmap;
    }

Visualforce Page:

<apex:dataTable value="{!Quotes}" var="q">
    <apex:column value="{!q.Product_Category__c}"/>
    <apex:column value="{!q.Product__c}"/> 
    <apex:repeat value="{!Quotes[q]}" var="qli"> 
        <apex:column value="{!qli.Id}" /> 
    </apex:repeat>
</apex:dataTable>

Error Message:
Map key null not found in map
Error is in expression '{!Quotes[q]}' in component <apex:dataTable> in page quoteswithquotelineitems

I have searched the community and found some community members doing the exact same thing.

Please help?

Thanks,

Rudi
I have been working in a development edition environment creating an apex class. I am now trying to deploy this to our company's salesforce which is a professional account. When I use "Deploy To Server" from ForceIDE I get the following message "Component Type not permissible in destination organization". Am I able to deploy apex classes to a professional account?