When there are no existing online stores, if we try to open Online store form in USRT > Retail and commerce, a new store is created. As the Mandtory property of fields 'DefaultCustAccount' and 'InventLocation' is Yes. So it throws an error when trying to leave the form.
As the 'Insert If Empty' property of root DS table RetailOnlineChannelTable is yes, so it will call initValue() method automatically to generate a record when we open the form with no previous records. So we can set the property with No. When entering the form, there will not be records generated.