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
BsosabarillasBsosabarillas 

help with uploading a package

when I want to upload an Apex class, gives me the following error:

 

<p>

 

System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Faltan campos obligatorios: [C_digo_del_Producto__c]: [C_digo_del_Producto__c]

Class.TesttriggerSaleDetail.myUnitTest: line 32, column 9 

 

</p> 

SelectedPartnerSelectedPartner
You have to provide a value to a required filed. 
gv007gv007
You need to handle the cause of exception in the code.and need to handle the exception  using try catch block.