• Sachin Savita
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hello friends,

I've been trying to check this challenge but without luck,it is giving me this error: Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.QueryException: unexpected token: Status
.

I don't know what I am doing wrong. Here is my  Visualforce page code

<apex:page controller="NewCaseListController">
    <apex:form >
        <apex:pageblock Title="New Case List" id="cases_list">
        <apex:repeat var="case" value="{!newCases}">
            <apex:outputLink value="/{!case.Id}">
            ID: {!case.Id}
           
            </apex:outputLink><br/>
            <apex:outputLink value="/{!case.Id}">
            
            Case Number: {!case.CaseNumber}
            
            
            </apex:outputLink><br/>
                          
                    
           </apex:repeat>
        </apex:pageblock>
    </apex:form>
    
</apex:page>

and here is my Controller class code:

public class NewCaseListController {
    public List<Case> getNewCases() {
        List<Case> results = Database.query('Select Id,CaseNumber,Status' +
                                            'From Case' +
                                            'Where Status =\'New\'');
        
 
        return results;
}
}



Hope someone can help me with this, Thanks a lot.