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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 03.07.2012, 00:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Dynamics AX 2012 Services: How to process big messages using File adapter
Источник: http://blogs.msdn.com/b/axsupport/ar...e-adapter.aspx
==============

Sometimes when you try to process big XML messages using File adapter you can get error:

The request failed with the following error: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://schemas.microsoft.com/dynamic...es:serviceName. The InnerException message was 'Maximum number of items that can be serialized or deserialized in an object graph is '65536'. Change the object graph or increase the MaxItemsInObjectGraph quota. '. Please see InnerException for more details.
The issue happens because we are hitting the configured WCF settings. To change the settings we need to:

1. Unfortunately with Dynamics AX 2012 RTM version there is no way to set up WCF settings (like timeouts, MaxIremsInObjectGraph, etc.) To achieve it we need to install application hotfix delivered with KB 2708687 (the fix is also included in Cumulative Update 3 available here:Microsoft
Dynamics AX 2012 Cumulative Update 3 (KB2709934)
). Please contact Microsoft Dynamics Ax Support if you want only separate hotfix and it is still not available on PartnerSource. After installing hotfix on "Inbound ports" form for File Adapter you should find new button "Configure AOS" which will allows you to open WCF editor.

2. Go to System administration > Setup > Services and Application integration framework > Inbound ports

3. Disable your file adapter port (if it is enabled)

4. Click on button “Configure AOS” (this button has been added together with hotfix)

- In WCF editor go to: Advanced > Endpoint behaviors

- Click on "New Endpoint behavior Configuration"

- Change name to FileSystemBehaviour

- Click on "Add" button

- Select dataContractSerialiazer

- Double click on dataContracSerializer

- Change property value MaxItemsInObjectGraph from 65536 to 534288:



- Select Client > Endpoints > DefaultServiceGroupEndpoint and change property: BehaviorConfiguration to FileSystemBehaviour:



- go to: Advanced > Service behaviors > DefaultServiceGroupBehavior

- Right click and select "Add Service behavior Element Extension"

- Select dataContractSerialiazer

- Double click on dataContracSerializer

- Change property value MaxItemsInObjectGraph from 65536 to 534288



After applying above changes and enabling the port again you should not get the issue any more.

To learn more about MaxItemsInObjectGraph please follow: http://msdn.microsoft.com/en-us/libr...jectgraph.aspx










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

 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11
dynamics-ax: Interview with Microsoft's Lachlan Cash on his new role, AX 2012 and more Blog bot DAX Blogs 6 22.04.2011 14:55
axinthefield: Dynamics AX Event IDs Blog bot DAX Blogs 0 01.03.2011 22:11
daxdilip: Whats New in Dynamics AX 2012 (A brief extract from the recently held Tech Conf.) Blog bot DAX Blogs 7 31.01.2011 12:35
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:40.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.