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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 17.09.2013, 14:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,477 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: In AX 2009 SP1 RU8 - During Excel import, a 64 bit value is placed in a 32 bit integer
Источник: http://blogs.msdn.com/b/axsupport/ar...t-integer.aspx
==============

Issue description:

In AX 2009 SP1 RU8, when importing string values from an Excel-sheet using standard AX functionality; if the value is all numeric and is greater than the maximum number that can be handled by a 32 integer, the value returned is the maximum 32 bit integer value (2147483647).



Workaround suggestion:

From line 223 in \Classes\SysDataExcelCOM\readRow method, make the following code change:

From:

……………

case COMVariantType::VT_R8 :

intValue = any2int(value.double());

commonReadWrite.(tmpExcelColumn.ColFieldId) = int2str(intValue);

break;

……………

To:

……………

case COMVariantType::VT_R8 :

intValue = any2int(value.double());

//commonReadWrite.(tmpExcelColumn.ColFieldId) = int2str(intValue);

commonReadWrite.(tmpExcelColumn.ColFieldId) = int642str(any2int64(value.double()));

break;

……………

Save and compile.

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.




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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11
Rahul Sharma: Install Microsoft Dynamics AX 2009 SP1 on Windows 7 Blog bot DAX Blogs 0 04.05.2011 21:13
emeadaxsupport: Unable to deploy AX 2009 Enterprise Portal on SharePoint 2010 even after patching setup files with hotfix 2278963 Blog bot DAX Blogs 0 08.12.2010 03:14
emeadaxsupport: Resolving some issues you may experience when creating an AX 2009 Role Center and Enterprise Portal Site using SharePoint Server/Foundation 2010 after installing Microsoft Dynamics AX 2009 SP1 hotfix 2278963 Blog bot DAX Blogs 1 24.09.2010 11:34
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05

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

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

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