You need to sign in to do that
Don't have an account?
shan raz
QuoteLineItem TestClass Error : Required fields are missing: [Quantity]: [Quantity]??
So I am writing test class for QuoteLineItems and I keep recieving the following error when Quantity is clearly there:
System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Quantity]: [Quantity]
System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Quantity]: [Quantity]
QuoteLineItem qliliner = new QuoteLineItem(QuoteId=quoteObj.id, Quantity = 1, UnitPrice = 5.00, Product2Id=producto.id, PriceBookEntryID=pbe.Id, Tax_Code__c=taxcode); insert qliliner;
Are you using 'seeAlldata=true' in your test class?
If you are using can you remove and try again.
Thanks,
Vinay Kumar