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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.12.2013, 01:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
axStart: Unretrieved values on the companyinfo Table in AX 2012R2.
Источник: http://www.axstart.com/unretrieved-v...e-in-ax-2012r2
==============

In AX 2012 R2, table inheritance tables are all stored in the same table.



So the Company Info table is on SQL level stored in the table DirPartyTable. They did this for performance reasons. But what happens when you insert a new Colom on that table. We get unretrieved values like below screen.



Normal fields in AX tables are not allowed to be NULL, so there is always an empty string or a zero value in it.  (Note DirParTable fields are of not null)



The fields are NULL  so the will not use disc storage.

So how do you solve this. In the next example I added an field on DirOrganizationBase,  So all derived table records needs to be updated

UPDATE DIRPARTYTABLE SET YOURFIELD =   WHERE YOURFIELD IS NULL and (
INSTANCERELATIONTYPE = 6886 or — DirOrganizationBase
INSTANCERELATIONTYPE = 2975 or — DirPerson
INSTANCERELATIONTYPE = 41   or — CompanyInfo
INSTANCERELATIONTYPE = 2978 or — DirOrganization
INSTANCERELATIONTYPE = 2376 or — OMInternalOrganization
INSTANCERELATIONTYPE = 2377 or — OMOperatingUnit
INSTANCERELATIONTYPE = 5329    – OMTeam
)

In case of a number or enum it is SET YOURFIELD = 0



Источник: http://www.axstart.com/unretrieved-v...e-in-ax-2012r2
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 22.12.2013, 02:14   #2  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
axStart: Unretrieved values on the companyinfo Table in AX 2012R2.
Источник: http://www.axstart.com/unretrieved-v...e-in-ax-2012r2
==============

In AX 2012 R2, table inheritance tables are all stored in the same table.



So the Company Info table is on SQL level stored in the table DirPartyTable. They did this for performance reasons. But what happens when you insert a new Colom on that table. We get unretrieved values like below screen.



Normal fields in AX tables are not allowed to be NULL, so there is always an empty string or a zero value in it.  (Note DirParTable fields are of not null)



The fields are NULL  so the will not use disc storage.

So how do you solve this. In the next example I added an field on DirOrganizationBase,  So all derived table records needs to be updated

UPDATE DIRPARTYTABLE SET YOURFIELD =   WHERE YOURFIELD IS NULL and (
INSTANCERELATIONTYPE = 6886 or — DirOrganizationBase
INSTANCERELATIONTYPE = 2975 or — DirPerson
INSTANCERELATIONTYPE = 41   or — CompanyInfo
INSTANCERELATIONTYPE = 2978 or — DirOrganization
INSTANCERELATIONTYPE = 2376 or — OMInternalOrganization
INSTANCERELATIONTYPE = 2377 or — OMOperatingUnit
INSTANCERELATIONTYPE = 5329    – OMTeam
)

In case of a number or enum it is SET YOURFIELD = 0



Источник: http://www.axstart.com/unretrieved-v...e-in-ax-2012r2
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axStart: Unretrieved values on the companyinfo Table in AX 2012R2. Blog bot DAX Blogs 0 22.12.2013 02:14
atinkerersnotebook: Walkthrough & Tutorial Summary Blog bot DAX Blogs 1 09.09.2013 09:11
amer-ax: It was a great day! Blog bot DAX Blogs 3 29.12.2012 01:02
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11
axinthefield: Dynamics AX Event IDs Blog bot DAX Blogs 0 01.03.2011 22:11
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 14:00.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.