最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

D365Ops错误: 字段 ‘xxx’ 不存在 / Error: Field ‘xxx’ does not exist in D365Ops

网络文摘 William 1977浏览 0评论
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
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址