• Esp-MP
  • NEWBIE
  • 0 Points
  • Member since 2013

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

 

Hi, I am trying to create a managed package in a Dev Org but the problem is as soon as I create the managed package and compile all the classes in the org, i get the below error. Surprisingly when I comment these lines also, i get the same error . Looks like it is being picked from cache.

line 39, column 24: quotefieldset is not a fieldSet of Quote
line -1, column -1: Previous load of class failed: Espresso_MP.cloneQuoteController: line 39, column 24: quotefieldset is not a fieldSet of Quote
line -1, column -1: Previous load of class failed: Espresso_MP.cloneQuoteController: line 39, column 24: quotefieldset is not a fieldSet of Quote
line -1, column -1: Previous load of class failed: Espresso_MP.cloneQuoteController: line 39, column 24: quotefieldset is not a fieldSet of Quote
line -1, column -1: Previous load of class failed: Espresso_MP.cloneQuoteController: line 39, column 24: quotefieldset is not a fieldSet of Quote

This field set is part of the managed package. So not sure what is the issue here ? I see this issue everywhere where field sets are used. We need to create the managed package and deliver it to the testing team ASAP so that it can be delivered to the client. Any help would be highly appreciated. Below are the Org details.

Org Id : 00Db0000000XxKP
Instance : eu2

Important Note : I have tried deploying all the code in 3 different Dev orgs and everywhere I got the same error.\

 

 

-Vik

Might have missed a tutorial on this but I need to move an account object from a dev to config sandbox through IDE. Any suggestions?

Hi,

I have a custom checkbox Lost__c on opportunity product so when you edit the product added on the opportunity, you can set that the product isn’t sold.

I want that if the checkbox is true:

1)Copy Unit Price in a custom field named OfferedPrice__c

2) Set  UnitPrice to zero;

I have written the following code,

trigger LostProduct on OpportunityLineItem (before update)
 {
   Set<Id> Ids = new Set<Id>();
   \\ GET THE NEW OPPORTUNITY lINE ITEM ID  
    
       for (OpportunityLineItem oppli: Trigger.new){
            Ids.add(oppli.id);
           }     
   \\ GET THE OLD OPPORTUNITY lINE ITEM                 
   List <OpportunityLineItem> oppsec=[Select Id,OfferedPrice__c,UnitPrice From OpportunityLineItem  Where id in: Ids]; 
   
   List<OpportunityLineItem> ListOpp = new List<OpportunityLineItem>();           
                   
    for (OpportunityLineItem opproduct: Trigger.new){  
             if (opproduct.Lost__c==True){
             opproduct.OfferedPrice__c= opproduct.UnitPrice;
              Listopp.add(opproduct);        
           }  
             }  
    \\ SET FIELDS OF THE OLD RECORD          
         oppsec[0].OfferedPrice__c=Listopp[0].OfferedPrice__c;
         oppsec[0].UnitPrice=0;                 
           
          update(Oppsec);
            

}

 

 

but i get this error message:

 

Apex trigger LostProduct caused an unexpected exception, contact your administrator: LostProduct: execution of BeforeUpdate caused by: System.DmlException: Update failed. First exception on row 0 with id 00kJ0000006in6cIAA; first error: SELF_REFERENCE_FROM_TRIGGER, Object (id = 00kJ0000006in6c) is currently in trigger LostProduct, therefore it cannot recursively update itself: []: Trigger.LostProduct: line 23, column 1

 

 

 Where i am wrong? Do is necessary get the old record?

 

Thank you in advance.

BR

  • May 20, 2013
  • Like
  • 0

 

Hi, I am trying to create a managed package in a Dev Org but the problem is as soon as I create the managed package and compile all the classes in the org, i get the below error. Surprisingly when I comment these lines also, i get the same error . Looks like it is being picked from cache.

line 39, column 24: quotefieldset is not a fieldSet of Quote
line -1, column -1: Previous load of class failed: Espresso_MP.cloneQuoteController: line 39, column 24: quotefieldset is not a fieldSet of Quote
line -1, column -1: Previous load of class failed: Espresso_MP.cloneQuoteController: line 39, column 24: quotefieldset is not a fieldSet of Quote
line -1, column -1: Previous load of class failed: Espresso_MP.cloneQuoteController: line 39, column 24: quotefieldset is not a fieldSet of Quote
line -1, column -1: Previous load of class failed: Espresso_MP.cloneQuoteController: line 39, column 24: quotefieldset is not a fieldSet of Quote

This field set is part of the managed package. So not sure what is the issue here ? I see this issue everywhere where field sets are used. We need to create the managed package and deliver it to the testing team ASAP so that it can be delivered to the client. Any help would be highly appreciated. Below are the Org details.

Org Id : 00Db0000000XxKP
Instance : eu2

Important Note : I have tried deploying all the code in 3 different Dev orgs and everywhere I got the same error.\

 

 

-Vik