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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 26.11.2012, 18:11   #1  
pawan is offline
pawan
Участник
 
11 / 10 (1) +
Регистрация: 20.11.2012
No valid document identified from the entity key In Queue Manager (Status is Error)
Hi ,



I'm facing a problem while generating XML in AIF.

I Created a service through AIF wizard in which couple of class generated in a project.So,now i created a method (updatenow)

in a Axd_CPP class which will insert data into couple of customized Tables..So,now i want to generate the xml of that data which is insert in Customized table..I done the coding for that too..by creating two methods in canXMLsent and sendelectronically method in master table.Now written code for the current record which is inserted in those tables in a job run the job...the data is inserting into tables.But, coming to XML generation part it throwing error of "No valid document identified from the entity key In Queue Manager (Status is Error)".Plz can anyone help me out from this problem...
Старый 26.11.2012, 19:26   #2  
EVGL is offline
EVGL
Banned
Соотечественники
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
 
4,445 / 3001 (0) ++++++++++
Регистрация: 09.07.2002
Адрес: Parndorf, AT
You should let us know the AX version to answer definetely. AxXXXXXX class is missing, I suppose, take a look at
\Classes\AxInternalBase\construct
\Classes\AxInternalBase\tableId2AxBCClassId
Старый 26.11.2012, 20:07   #3  
pawan is offline
pawan
Участник
 
11 / 10 (1) +
Регистрация: 20.11.2012
Its AX 2009 version..Can you plz explain clearly regards this issue???
Старый 26.11.2012, 20:24   #4  
EVGL is offline
EVGL
Banned
Соотечественники
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
 
4,445 / 3001 (0) ++++++++++
Регистрация: 09.07.2002
Адрес: Parndorf, AT
Ok. In AX2009, data from a table cannot be directly exported via XML, you need a special intermediary class called AxYourTableName. Only the fields represented by the parmYourFieldName methods may be exported.

For a simple example, take a look at \Classes\AxCustGroup

AFAIK, the AIF class wizard is able to generate an Ax-Class automatically.

See http://msdn.microsoft.com/en-us/library/aa873749.aspx

By the way, an AX-class with an AXD-class are still not sufficient. You additionally need an AXD-query, which is pretty easy to build.

Последний раз редактировалось EVGL; 26.11.2012 в 20:29.
Старый 26.11.2012, 23:33   #5  
pawan is offline
pawan
Участник
 
11 / 10 (1) +
Регистрация: 20.11.2012
Hi EVGL,

As per below link

http://msdn.microsoft.com/en-us/libr...(v=ax.50).aspx

I followed Every step of above link but part of Coding the Outbound Exchange is done upto table level methods(CanXMLsent and Sendelectronically) and clicked method which is have to created in form level is not done because i hav to generate XML automatically after the completion of insert data into tables by another class(which is not related to this topic)...So i have done that part too..while running the code in the job fetched the current record and called the CanXMLsent and Sendelectronically methods but in Queue Manager I found the Error of No Valid document Identified from the Entity Key...Can you plz tell the solution for this...thanks
Старый 27.11.2012, 03:03   #6  
EVGL is offline
EVGL
Banned
Соотечественники
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
 
4,445 / 3001 (0) ++++++++++
Регистрация: 09.07.2002
Адрес: Parndorf, AT
Check if your table has a primary key (ordinary or composite).
Старый 27.11.2012, 13:13   #7  
pawan is offline
pawan
Участник
 
11 / 10 (1) +
Регистрация: 20.11.2012
Yes,I have given RecId as a Index in the Master table...
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
dynamicsaxtraining: Vendor returns Blog bot DAX Blogs 0 11.10.2012 00:11
axaptasource: From the Dynamics AX Blogs: Key Reasons for ERP; Fixing a Portal Tools Error; AX 2009 Demo Toolkit Update Blog bot DAX Blogs 0 06.11.2010 19:08
daxdilip: Error - Your Microsoft Dynamics Session is no longer valid. Log off your computer and log on again Blog bot DAX Blogs 0 14.10.2010 04:08
Вопрос про 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, время: 03:08.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.