Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
Hi, I'm working on creating a visual force page for a custom object I created. When I go to save it, it says that the standard controller is unknown. I used the full API name.

Apex Class

public with sharing class salescoachingRedirect {

VF Page

<apex:page standardController="Sales_Coaching_Note__c" extensions="salescoachingRedirect" action="{!redirect}" >

This is the error I'm getting: Error: Unknown method 'Coaching_Note__cStandardController.redirect()'

I only put the first line for the apex class and VF page because they are both really long, but if you need it I don't mind pasting it. Any help would be greatly appreciated.

Thanks!
2 answers
  1. Apr 20, 2017, 4:57 AM
    Hi Brianna,

    Yes, there is an error on your Visualforce page on line number 13,28,41,51,60 & 68

    <apex:repeat value="{!$ObjectType.Sales Coaching Note.fieldsets.Score}" var="fieldValue">

    You cannot use spaces in object, you should use correct Object Name with "__c

    you can get the reference from this link https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_variables_global_objecttype.htm

    If you are getting the problem again then you would share your apex class named "salescoachingRedirect" as well. I'll try to solve your problem

    Thanks
Loading
0/9000