2 risposte
This is a bug in lightning:inputField with Master-Detail relationship. The same error has been rasied 3 months ago already: https://salesforce.stackexchange.com/questions/207479/anyone-got-a-lightninginputfield-working-for-a-lookup/207935
Sadly Salesforce doesn't care about this bug so it is not fixed.
The only solution is:1. Check "Allow reparenting" checkbox for the Master-Detail field on the child object2. Change the relationship to a lookup