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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 10.05.2010, 21:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Project module Excel pivot table fails with error 0x80070057 E_INVALIDARG
Источник: http://blogs.msdn.com/emeadaxsupport...nvalidarg.aspx
==============

Today I was investigating an issue with the Excel pivot table functionality, in the French language, it was failing with the error:

"La méthode ''createPivotTable'' de l''objet COM de classe ''PivotCache'' a retourné le code d''erreur 0x80070057 (E_INVALIDARG), qui signifie : Un ou plusieurs arguments ne sont pas valides"


This applies to AX2009, to explain in more detail about exactly the steps that lead to this, here's the steps that I have been following:

1. Go to "projet" module
2. Open the "Details du projet" form (the project details form)
3. Select project 10005 in the top grid pane (this is with the standard AX2090 demo data)
4. Click the "Controle du projet" button and then "Statistiques de projet" option.
5. A new form will open, click "Calculer" button in the top right.
6. In the same form click the "exporter vers Microsoft Office Excel" a new from will open.
7. Change the "Releve de projet" drop down to "Travaux en cours" (this is WIP in french).
8. Select a file name in the "nom de fichier" box at the top of the form.
9. Click ok.
10. Error message appears.

So I analyzed the code used here and then resolved the issue in my environment by modifying the label @SYS50076 from "Travaux en cours" to "TravauxEnCours", just removing the spaces.

This is the label used for the enum ProjExportToExcelWorksheet, the element StatWIP, all other French label values for these elements already have the spaces removed in the same way, it appears to be just this one that was perhaps missed.

The problem stemmed from Classes\ProjExportToExcelPivot\generatePivotReport() line 44, where Excel will not accept a tableDestination which contains spaces.

This issue will be addressed in the standard product in a future version of the product and has been officially logged with our development team.



There have been several other issues we've addressed of a similar type, so perhaps if this one above doesn't fit your specific issue then perhaps one of the related KB articles below will help you (partnersource/customersource login is required):

AX2009: Export project statement to Excel fails with COM error

https://mbs.microsoft.com/knowledgeb...b;en-us;959901

Project statement export to Excel does not work with spanish office

https://mbs.microsoft.com/knowledgeb...b;en-us;969714

AX2009: Export Cost Control to Excel fails with COM error

https://mbs.microsoft.com/knowledgeb...b;en-us;974282





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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: Identifying damaged Table objects in the AOT MetaData Blog bot DAX Blogs 0 16.03.2010 21:05
emeadaxsupport: Export to Excel can fail on a Windows Terminal Server Blog bot DAX Blogs 0 27.01.2010 13:05
Microsoft Dynamics CRM Team Blog: (Simplified) Pivot Table Integration Blog bot Dynamics CRM: Blogs 0 27.09.2008 02:05
Говорят вышел SP2 для Axapta 3. Кто нибуть что знает на эту тему? soin DAX: Прочие вопросы 10 13.10.2003 10:43

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

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

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