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
Sunita PhadnisSunita Phadnis 

Required field missing error on validating deployment

I have added a lookup field to the Quote object, I have set this field as required. Now the test class for the QuoteLineItem object trigger is giving an error that a required field is missing at the following line:
Quote q1 = [select Id from Quote order by CreatedDate desc limit 1]; 

Please let me know, how I can fix this error. Thank you.