Today I encountered a weird error while working with newly created Enums and Tables in Visual Studio 2015 with a Dynamics 365 for Finance and Operations project. Error message while trying to build my project was: The underlying type 'BKA_Status ' or its base type for table 'BKA_GoalMaster' field 'GoalStatus' does not exist. The underlying type 'BKA_GoalTypes ' or its base type for table 'BKA_GoalMaster' field 'GoalType' does not exist.</Message> However, I had the 'BKA_Status' as well as 'BKA_GoalTypes' Enums already available in my project and even the project is Synchronized with the database. Root cause: To be honest, I was unable to find the root cause for sure. However, I imagine the error has something to do with the refresh of metadata because of the kind of solution which helped to resolve the error. I have had 'Extends' property filled in with another Enum which was not existing in the Current model (or) the referenced models for a brief period. Later, I had cleared 'Extends' property before performing the build - and still ended up in the above error message. Solution/Workaround: I have tried several generic solutions to refresh the cache, like, restarting Visual Studio (in admin mode), rebuilding the solution, clearing the solution, synchronizing project to the database.. however none worked. The solution which finally worked for me was to select a dummy - yet real enum value under the 'Extends' property and build the solution. Later, I removed the dummy enum value from the property and performed a successful rebuild to attain the state I wanted to be in. I know this is a very short and unclear post - but I had to record it as I find so few references while searching for a solution for any problem related to D365Ops. It not like searching for an issue in AX anymore, maybe because of the name 'Dynamics 365 for Finance and Operations' :P :P
- 2018年有D365技术会议吗？ / Is there a D365 Technical conference in 2018?
- 如何获得Microsoft Subscription的管理员权限？ / How to get Admin privileges on Microsoft Subscription?
- 与D365Ops相关的其它应用程序相关的公告 / Announcements related to Other apps related to D365Ops
- 加快D365 / AX的速度 / Getting up to speed on D365/AX
- 包和模型 / Beating the Drum on Packages and Models
- 适用于Dynamics 365财务和运营的MCT（认证培训师）更新 / MCT (Certified Trainer) Dynamics 365 for Finance and operations Update