I have a function to set a lookup field which works for the classic version of the form but not in the unified interface version.
This error is thrown in UI: UciError: Value should be of type: entityType: Parameter Name: value[0].entityType
The error appears to be thrown in one of the UCI scripts: