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
Clear SkyClear Sky 

FIELD_CUSTOM_VALIDATION_EXCEPTION, Default Settings not defined. Had this issue for few days now. no Custom validation on any of the fields, yet when an insert is run the test fails

Not sure what is going on here, tried maually updating all of the fields, yet get a generaic "Default Settings not defined", when running an insert. Does anyone know if this is an issue or a way of getting a more detailed Exception error?

private static fw1__Invoice__c anInvoiceFor(Decimal amount, Account account, Contact contact){
fw1__Invoice__c invoice = new fw1__Invoice__c(
fw1__Account__c = account.Id,
fw1__Contact__c = contact.Id,
fw1__Invoice_Date__c = Date.today(),
fw1__Terms__c = 10,
fw1__Description__c = 'An invoice',
fw1__Due_Date__c = Date.today(),
fw1__Is_Voided__c = false
);
insert invoice;
Bavadharani GanesanBavadharani Ganesan
Hi Clear Sky,
Please make sure again that you are having any custom validation rule on Account or contact or fw1__Invoice__c.
Once you check, please let me know.