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
DrBixDrBix 

No Such Column "AccountSource" in Trigger

I have a trigger that operates on an object.  In the trigger, I have:

 

        Account a = [
            Select
                Id,
                ParentId,

                AccountSource
          From
              Account];

 

but it will not compile.  It says "no such column."  However, the column does exist, is accessible from other arreas in the code.  Is there something silly that I'm missing here?  I've gone over the documentation but can't seem to find any "gotchas" regarding that particular field.

 

Thanks in advance.

SFDC@FujSFDC@Fuj

Hi,

 

Try to change the version of the trigger to 24.0.

 

Hope this will help you.If any problem then let me know the issue.