-
Couldn't load subscription status.
- Fork 1.5k
Closed
Description
Expected behavior
The default value is set on the (newly created) DataObject
Actual behavior
Pimcore\Model\Element\ValidationException: Empty mandatory field [ fieldName ]
Steps to reproduce
With (currently latest versions) Pimcore v10.5.20, DataHub v1.5.6 and DataImporter v1.7.5
- Create a class definition, with
a. Mark one field as mandatory field and also give it a default value (e.g. a status dropdown with default value "New") - Create a data importer definition, with
a. Resolver configuration with a valid "Element Creation" config
b. Resolver configuration publish strategy set to "Always publish" or "Publish new"
c. Valid mapping configuration so that it can create new DataObjects (mainly, the system key should be set)
d. Important: don't map the field created in step 1a. - Run an import