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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 08.02.2012, 01:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: 4. Solving Fill Utility errors on Microsoft Dynamics AX 2012 - Error executing code: Wrong argument types for comparison (another scenario)
Источник: http://blogs.msdn.com/b/axsupport/ar...-scenario.aspx
==============

Scenario:
A user wishes to update the Item group for a released product.

They right-click on the Item group field and selects the Record Info menu item.

In the Record information form they click the Fill Utility button.

And get the following error:


Error executing code: Wrong argument types for comparison.

Stack trace

(C)\Forms\SysFillUtility\Methods\initializeMainQuery - line 69

(C)\Forms\SysFillUtility\Methods\init - line 53

....






What happened?
This stack trace is similar to another cause of the issue detailed here. However in this scenario it was genuinely caused when comparing two different data types, a string type value to an enum type value.



How did we resolve this?
To fix the error in this scenario, the following change in bold was made in Forms\ SysFillUtillity\ InitializeMainQuery method:

...

else
{
Querybuffer = queryBuildRange.value();

if(querybuffer != queryValue(formDataSource.cursor().(mainTablePrimaryField)))
{

If (querybuffer)

...


Disclaimer:
This programming example is for illustration purposes only. Microsoft disclaims all warranties and conditions with regard to use of the programming example for other purposes. Microsoft shall not, at any time, be liable for any special, direct, indirect or consequential damages, whether in an action of contract, negligence or other action arising out of or in connection with the use or performance of the programming example. Nothing herein should be construed as constituting any kind of warranty.





Other related articles:

1. Solving Fill Utility errors on Microsoft Dynamics AX 2012 - SysDictFieldGroup object not initialized

2. Solving Fill Utility errors on Microsoft Dynamics AX 2012 - Fill Utility incorrectly updates a field that is not in the field list of the main datasource

3. Solving Fill Utility errors on Microsoft Dynamics AX 2012 - Error executing code: Wrong argument types for comparison





--author:Erco van Harn--reviewer:Mansour Yahya Mohamad Mansour




Источник: http://blogs.msdn.com/b/axsupport/ar...-scenario.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 08.02.2012, 09:04   #2  
gl00mie is offline
gl00mie
Участник
MCBMSS
Most Valuable Professional
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
3,684 / 5788 (200) ++++++++++
Регистрация: 28.11.2005
Адрес: Москва
Записей в блоге: 3
Судя по списку связанных статей, то ли в 2009-й, где появилась утилита заполнения, ею никто не пользовался, что маловероятно, то ли в 2012-й ее отдали переписать индусам, не видевшим прежде Аксапту; только ли ее? "...И я минздрав благодарю, что он предупредил!" © м/ф "Остров сокровищ"
Старый 08.02.2012, 09:21   #3  
Vadik is offline
Vadik
Модератор
Аватар для Vadik
Лучший по профессии 2017
Лучший по профессии 2015
 
3,631 / 1849 (69) ++++++++
Регистрация: 18.11.2002
Адрес: гражданин Москвы
Цитата:
Сообщение от gl00mie Посмотреть сообщение
Судя по списку связанных статей, то ли в 2009-й, где появилась утилита заполнения, ею никто не пользовался, что маловероятно, то ли в 2012-й ее отдали переписать индусам, не видевшим прежде Аксапту; только ли ее? "
Похоже на второе, и не только
__________________
-ТСЯ или -ТЬСЯ ?
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
dynamics-ax: (Recap of) Microsoft Dynamics AX 2012 - Public Sector Blog bot DAX Blogs 0 07.06.2011 19:11
DynamicsAxSCM: Service products in Microsoft Dynamics AX 2012 Blog bot DAX Blogs 2 02.06.2011 13:36
axinthefield: Dynamics AX Event IDs Blog bot DAX Blogs 0 01.03.2011 22:11
semanticax: Dynamics AX 2009 Installation - Application Blog bot DAX Blogs 0 22.12.2010 08:11
Developer for Microsoft Dynamics AX Certification Roadmap Blog bot DAX Blogs 1 13.05.2009 16:17
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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