26.11.2012, 18:11 | #1 |
Участник
|
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 |
Banned
|
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 |
Участник
|
Its AX 2009 version..Can you plz explain clearly regards this issue???
|
|
26.11.2012, 20:24 | #4 |
Banned
|
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 |
Участник
|
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 |
Banned
|
Check if your table has a primary key (ordinary or composite).
|
|
27.11.2012, 13:13 | #7 |
Участник
|
Yes,I have given RecId as a Index in the Master table...
|
|
|
|