• Jul
  • NEWBIE
  • 0 Points
  • Member since 2012

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

Hello All

 

my issue is this:

 

In a trigger, i need to retreive the synced quote of an opportunity.

In this trigger i have a query retreiving Opportunities.

When i add the field 'SyncedQuoteId' to the query (and nothing more - no changes to the field or anything)

i get the following exception:

 

Error:Apex trigger Opp1_AfterUpdate caused an unexpected exception, contact your administrator: Opp1_AfterUpdate: execution of AfterUpdate caused by: System.Exception: The opportunity SyncedQuote field is read only within a trigger.: Trigger.Opp1_AfterUpdate: line 58, column 10

 

why do i get this exception just for querying the field?

has someone encountered this and solved it?

 

thanks

NDgani

 

  • March 17, 2010
  • Like
  • 0