• Kharla Haldos
  • NEWBIE
  • 0 Points
  • Member since 2016

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

Hello,

 

I'm new to Apex & in a clas I'm writing I want to print out debug statements at various steps however I can't seem to get these to work.

 

if I do

 

System.debug('hello');

 

I get an error as follows

 

Multiple markers at this line
 - expecting a right parentheses, found 'hello'
 - Save error: expecting a right parentheses,
  found 'hello'

 

Does anyone have any ideas as to why this may be occuring?  If I look at sample code online the above should work.

This makes absolutely no sense to me. I am trying to insert two OpportunityLineItems that are exactly the same but I get this exception. What good reason is there to stop the insertion of two Records that are the same?

I understand if this was an upsert operation as you can't insert and update and the same time but I am inserting two brand new OpportuntiyLineItem records.

Thanks,
Jason


Message Edited by TehNrd on 09-24-2008 04:48 PM
  • September 24, 2008
  • Like
  • 0