- **ABP Studio - 0.7.5
 - UI Type: MVC
 - Database System: EF Core (SQL Server)
 - Tiered (for MVC) or Auth Server Separated (for Angular): yes
 - Exception message and full stack trace:
 
TypeError: Cannot read properties of undefined (reading 'getCoreUserLookup') at Object.serviceMethod (<anonymous>:42:73) at Object.initModal (<anonymous>:18:55) at _initAndShowModal (modal-manager.js?_v=638579335540000000:135:60) at modal-manager.js?_v=638579335540000000:168:33 at UrlInfo.handleCallbacks (abp.jquery.js?_v=638580777474340000:317:33) at _loadFromUrl (abp.jquery.js?_v=638580777474340000:363:25) at Object._loadScript [as loadScript] (abp.jquery.js?_v=638580777474340000:375:13) at HTMLDivElement.<anonymous> (modal-manager.js?_v=638579335540000000:167:48) at HTMLDivElement.<anonymous> (jquery.js?_v=638491862888070000:10243:14) at Function.each (jquery.js?_v=638491862888070000:383:19)
- Steps to reproduce the issue: In ABP Suite, create module (AthletesSocial.Core). Add two entities (Athlete, CoreUser). Create 1:n relationship between CoreUser to Athlete with Modal UI Pick type. Create new Athlete, try to pick CoreUser. Javascript error above occurs.
 
Issue seems to be in /Pages/Core/createModal.js and editModal.js
This line doesn't work (what is generated by ABP Suite): return window.athletesSocial.core.athletes.athletes.getCoreUserLookup;
This line does (manually changed - notice the second athlete, not athletes): return window.athletesSocial.core.athletes.athlete.getCoreUserLookup;
3 Answer(s)
- 
    0
Hi, thanks for the explanation I'll try to reproduce the problem and fix it asap.
 - 
    0
Were you able to reproduce this?
 - 
    0
Were you able to reproduce this?
Unfortunately, I could not reproduce it. By any chance, can you share your entity metadata so I can try to generate the same entities as yours?