We have a custom setting with multiple fields which we use in validation rules and flows. One of the fields in the setting is "Validation Enabled" which we use to disable validation rules to allow initial import of test data in scratch orgs.
When we create a scratch org, if we try to upload certain data which doesn't respect validation rules, validation fails even if the custom settings org defaults has not been created yet on the org, because Validation Enabled default value is true
Additionally
MySettings.getOrgDefaults()
does not return null even if the instance has not been created, suggesting somehow Salesforce there is a record for the defaults even before you create it on the UI. On the other side, when we access the settings from the flow through a "Get Record" that step completes with "Failed to find record", as if a default instance is not existing in the org.
Is it a particule, or is it a wave? Is it Metadata or is it an sObject?