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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 18.06.2014, 10:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Short System Data Type "IdentifierName" resulting in false Best Practice checks
Источник: http://blogs.msdn.com/b/axsupport/ar...ce-checks.aspx
==============

Symptom:

If you have e.g. a form grid control name which is longer than 40 characters, the MorphX Best Practice check

fails with error like:

"Unknown data source "

Cause:

The reason that the problem occurs is that the Best Practice check class that is generating this error

(SysBpCheckFormEditControl) uses variable of type "IdentifierName" to hold the name of the

datasource used on the control. The IdentifierName EDT is a 40 characters string but the datasource name

is several characters longer than this. Consequently, the datasource name from the control is truncated

so it does not match when compared against the actual datasource available on the form

(which are not being held in "IdentifieName" variable).

Resolution:

If you change the type of datasource from identifierName to unbounded str in

SysBPCheckFormEditControl.checkReference() method, this issue can be resolved.



Another option is adding the Best Practice error into AOT/Macros/SysBPCheckIgnore, the issue will be
resolved. E.g. add this line:





This is because that the errors are in the ignoreMap which is defined in SysBPCheck class. And the ignoreMap is

initialized according to the AOT/Macros/SysBPCheckIgnore Macro.




Источник: http://blogs.msdn.com/b/axsupport/ar...ce-checks.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: SEPA affected objects Blog bot DAX Blogs 0 29.11.2013 13:11
emeadaxsupport: "An exchange rate cannot be found for exchange rate type XXX between currencies YYY and ZZZ on exchange date." when you attempt to process in Microsoft Dynamics AX 2012 Blog bot DAX Blogs 0 26.09.2012 07:15
emeadaxsupport: AX 2012 Retail: Creating Offline Database fails Blog bot DAX Blogs 0 14.05.2012 17:11
Удаленная работа с CRM и расширеный поиск ASheff Dynamics CRM: Разработка 64 04.06.2010 17:44
Ошибка бизнес-процесса Tarasov E Dynamics CRM: Разработка 9 18.02.2010 14:02
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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