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