AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 30.03.2012, 13:41   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006


While preparing myself for teaching a NAV Development class in over 8 years I stumbled across this issue various times. As the topic was already on my possible-subjects-to-blog-about list for so long it's clearly time now to write it.


So what's this about?
Never noticed that when you have developed a report or a page and for one reason or another you have to rename it - i.e. change the object id - that when you call the object from RTC you get the following error message:

The Object Metadata does not exist. Identification fields and values: Object Type='<object type>',Object ID='[list=1]'

Needles to say that <object type> indicates the type of the object you are calling. However [list=1] clearly shows the former id of this object even though you are calling the renamed object.


Reason
Apparently renaming an CSIDE object does not update the metadata of that object. Having read Lars Lohndorf-Larsen's post on the NAV Team Blog I first thought the Object Metadata table (2000000071) was missing a record for the renamed object. But no, a record for the renamed object was present. Just to check I deleted the record and tried to call the object again. This clearly raises a different error message:

Object of type <object type> with id <new object id> could not be found.

Note that this message references the new object id!


Solution
Nothing special, no rocket science. To get the metadata updated you just have to (re)compile the object, which will update the metadata linked to my object's metadata record in the Object Metadata table (2000000071).


Reference
About Object Metadata, and why I can't see object changes in RTC



Читать дальше
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 00:26.