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
cherry.yan1.3940871137009277E12cherry.yan1.3940871137009277E12 

common.exception.SfdcSqlException: ORA-20067: OPPORTUNITY_LINEITEM.PRICEBOOK_ENTRY_ID ORA-06512:

I met an error when I cloning an opportunity from a exist opportunity, the error says:

  common.exception.SfdcSqlException: ORA-20067: OPPORTUNITY_LINEITEM.PRICEBOOK_ENTRY_ID ORA-06512: at "BASHFUL.SOPPLINEITEM", line 696 ORA-06512: at line 1{call sOppLineItem.insert_opplineitems(?,?,?,?,?,...)} {call sOppLineItem.isert_opplineitems(?,?,?,?,...)}

 Who know that?
cherry.yan1.3940871137009277E12cherry.yan1.3940871137009277E12
BTW, the clone button is a standard button.
ministe_2003ministe_2003
Are the products and/or pricebook on the existing opportunity all still active and available?  I recently had a similar error and found that it was because it was an old opportunity and had an inactive pricebook against it.