Note that there are some explanatory texts on larger screens.

plurals
  1. POThe update from my AIF Webservice for SalesAgreementHeader [AX 2012] fails
    primarykey
    data
    text
    <p>Hello I've created a query with only the <code>SalesAgreementHeader</code> as table. Then I used the wizard to create a document aif webservice. The webservice works fine, but the update always reports an "<code>Invalid xml document.</code>" error. This error is thrown by the method <code>moveToNextElement</code> in the class <code>AxdBaseCreate</code>. </p> <p>The reason for the exception is, that </p> <pre><code>reader.fieldName() = AgreementClassification </code></pre> <p>and </p> <pre><code>_expectedElementName = AgreementRelationType. </code></pre> <p>How can I fix this? Or is there any good way to debug this?</p> <p>Before I created the query with only the <code>SalesAgreementHeader</code> I had an more complex query and had the same error. Then I created a new one and reduced it to only the <code>SalesAgreementHeader</code>.</p> <p><strong>Update:</strong> A haven't solved the problem yet, but I think the problem could be because <code>SalesAgreementHeader</code> extends the <code>AgreementHeader</code> and the field <code>RelationType</code> is not visible in the AOS, but if you look directly in the DB.</p> <p><strong>Update 2:</strong> This is the call stack:</p> <p>[s] \Classes\AxdBaseCreate\moveToNextElement 9</p> <p>[s] \Classes\AxdBaseCreate\readSurrogateForeignKeyValue 37</p> <p>[s] \Classes\AxdBaseCreate\readProperty 14</p> <p>[s] \Classes\AxdBaseCreate\readProperties 122</p> <p>[s] \Classes\AxdBaseUpdate\deserializeTopEntity 25</p> <p>[s] \Classes\AxdBaseUpdate\deserializeDocument 131</p> <p>[s] \Classes\AxdBaseUpdate\updateDocumentList 42</p> <p>[s] \Classes\AxdBase\updateList 64</p> <p>[s] \Classes\AifDocumentService\updateList 34</p> <p>[s] \Classes\SalesAgreementService\update 4</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload