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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 13.03.2012, 18:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: SSRS error in AX2012 - An item with the same key has already been added
Источник: http://blogs.msdn.com/b/axsupport/ar...een-added.aspx
==============

Recently came across this issue which was that a particualr report would no longer run -at all. Everytime you run it an error is recorded in the SSRS error log (default location is: C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles) that looks something like this:

webserver!ReportServer_0-12!598!03/01/2012-17:57:57:: e ERROR: Reporting Services error Microsoft.ReportingServices.Diagnostics.Utilities.RSException: An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'PurchPurchaseOrderDS'. ---> System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at Microsoft.Dynamics.Framework.Reports.SetQueryProjectionVisitor.ProcessQueryFieldMetadata(AxQuerySchemaAnalysisElement fieldElement, QueryFieldMetadata queryField)
…


I have cut the error short here as it was pretty long, but this top part is the interesting part - basically the call stack that is shown here, this is a report being run trying to build metadata caches, specifically lists of enum values or similar. It fails here trying to insert a duplicate into a list. We didn't know exactly which enum/ist as we didn't need to get as far as debugging this component.

Redeploying the report here resolved the issue. Before redeploying we had already restarted the AOS that was providing the WCF services for SSRS - but it made no difference.

So from this we can deduce that it wasn't AOS cache, or SSRS cache causing the failure - redeploying the report resolved it therefore the report metadata deployed to SSRS is likely to have been out of step with the related objects in the AOT, redeploying brought everything back into line and no more problem.




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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: Dynamics AX 2009 Retail: Violation of PRIMARY KEY constraint while replicating an A-job Blog bot DAX Blogs 0 09.02.2012 17:11
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11
dynamicsaxtraining: Item setup: Inventory dimension group Blog bot DAX Blogs 1 05.10.2010 15:35
Вопрос про Demand Planner slava09 DAX: Функционал 4 25.09.2006 11:43
при построении перекрёстных ссылок выдаётся сообщение об ошибках mmmax DAX: Программирование 10 21.01.2005 12:42

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

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

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