Discussion:
AIF Inbount error message
(too old to reply)
newguys
2010-09-16 21:35:03 UTC
Permalink
Hi, I am new in AIF, current using AX 2009. I have created and config AIF
inbound and outbound endpoint, for outbound, I can send XML file out to
folder successful.
but InBound, I always get error, I checked AIF Queue manager the error
message below:
"This message cannot be processed: Invalid Message schema."

I am sending VendGroup document, the find action xml sample I copied for
somewher, please help me to check if there are something wrong. thanks in
advance. (after run batch job, the file at inbound folder already gone)

<?xml version="1.0" encoding="utf-8" ?>
- <Envelope
xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Message">
- <Header>
<MessageId>{C9B8B21D-886B-4624-8B68-5513DD8E63D1}</MessageId>
<SourceEndpointUser>mydomain\myusername</SourceEndpointUser>
<SourceEndpoint>mylocalEndpoing</SourceEndpoint>
<DestinationEndpoint>VendGroupEndpoint</DestinationEndpoint>

<Action>http://schemas.microsoft.com/dynamics/2008/01/services/VendVendGroupService/find</Action>
</Header>
- <Body>
- <MessageParts
xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Message">
- <QueryCriteria
xmlns="http://schemas.microsoft.com/dynamics/2006/02/documents/QueryCriteria">
- <CriteriaElement>
<DataSourceName>VendGroup</DataSourceName>
<FieldName>VendGroup</FieldName>
<Operator>Equal</Operator>
<Value1>10F</Value1>
<Value2 />
</CriteriaElement>
</QueryCriteria>
</MessageParts>
</Body>
</Envelope>
Tony DePalo
2010-09-20 21:01:03 UTC
Permalink
I would check the order of the tags. for example, the schema might be
expecting the operator tag, but is getting the FieldName tag. You can view
thew schema it is expecting and compare it with your xml import file
Good luck
Tony D
Post by newguys
Hi, I am new in AIF, current using AX 2009. I have created and config AIF
inbound and outbound endpoint, for outbound, I can send XML file out to
folder successful.
but InBound, I always get error, I checked AIF Queue manager the error
"This message cannot be processed: Invalid Message schema."
I am sending VendGroup document, the find action xml sample I copied for
somewher, please help me to check if there are something wrong. thanks in
advance. (after run batch job, the file at inbound folder already gone)
<?xml version="1.0" encoding="utf-8" ?>
- <Envelope
xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Message">
- <Header>
<MessageId>{C9B8B21D-886B-4624-8B68-5513DD8E63D1}</MessageId>
<SourceEndpointUser>mydomain\myusername</SourceEndpointUser>
<SourceEndpoint>mylocalEndpoing</SourceEndpoint>
<DestinationEndpoint>VendGroupEndpoint</DestinationEndpoint>
<Action>http://schemas.microsoft.com/dynamics/2008/01/services/VendVendGroupService/find</Action>
</Header>
- <Body>
- <MessageParts
xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Message">
- <QueryCriteria
xmlns="http://schemas.microsoft.com/dynamics/2006/02/documents/QueryCriteria">
- <CriteriaElement>
<DataSourceName>VendGroup</DataSourceName>
<FieldName>VendGroup</FieldName>
<Operator>Equal</Operator>
<Value1>10F</Value1>
<Value2 />
</CriteriaElement>
</QueryCriteria>
</MessageParts>
</Body>
</Envelope>
newguys
2010-09-21 15:39:03 UTC
Permalink
Hi Tony , thank you for the reply. today I tried again and get error like
below,

in AIF exceptions, Subsystem showing: There is no service with namespace = '
in Exception message showing:
http://schemas.microsoft.com/dynamics/2008/01/service' and external name =
'VendGroupService'.

on AOT service node, I see VendVendGroupService external name is
"VendGroupService", so is it means "http://schemas.micro..........." is
wrong? thanks in advance
Post by Tony DePalo
I would check the order of the tags. for example, the schema might be
expecting the operator tag, but is getting the FieldName tag. You can view
thew schema it is expecting and compare it with your xml import file
Good luck
Tony D
Post by newguys
Hi, I am new in AIF, current using AX 2009. I have created and config AIF
inbound and outbound endpoint, for outbound, I can send XML file out to
folder successful.
but InBound, I always get error, I checked AIF Queue manager the error
"This message cannot be processed: Invalid Message schema."
I am sending VendGroup document, the find action xml sample I copied for
somewher, please help me to check if there are something wrong. thanks in
advance. (after run batch job, the file at inbound folder already gone)
<?xml version="1.0" encoding="utf-8" ?>
- <Envelope
xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Message">
- <Header>
<MessageId>{C9B8B21D-886B-4624-8B68-5513DD8E63D1}</MessageId>
<SourceEndpointUser>mydomain\myusername</SourceEndpointUser>
<SourceEndpoint>mylocalEndpoing</SourceEndpoint>
<DestinationEndpoint>VendGroupEndpoint</DestinationEndpoint>
<Action>http://schemas.microsoft.com/dynamics/2008/01/services/VendVendGroupService/find</Action>
</Header>
- <Body>
- <MessageParts
xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Message">
- <QueryCriteria
xmlns="http://schemas.microsoft.com/dynamics/2006/02/documents/QueryCriteria">
- <CriteriaElement>
<DataSourceName>VendGroup</DataSourceName>
<FieldName>VendGroup</FieldName>
<Operator>Equal</Operator>
<Value1>10F</Value1>
<Value2 />
</CriteriaElement>
</QueryCriteria>
</MessageParts>
</Body>
</Envelope>
newguys
2010-09-24 17:20:03 UTC
Permalink
the problem was solved, here is few thing I encountered and just for someone
as reference:
1. <SourceEndpoint> must be Endpoint id which you setup in basic
-->AIF-->Endpoint, <DestinationSourceEndPoint> is your Local Endpoint

2. some exameple files from internet included MS provided, not fill in
souceEndpointUser, SourceEndpoint and DestinationEndpoint, but, I have
encountered a issues said "company not exist" , after traced to the class,
need company from one of user, endpoint or destination endpoint, so, to solve
this issues, I put my Local Endpoint id in <DestinationEndpoint> only, left
<SourceEndpointUser> and <SourceEndpoint> blank.
Post by newguys
Hi, I am new in AIF, current using AX 2009. I have created and config AIF
inbound and outbound endpoint, for outbound, I can send XML file out to
folder successful.
but InBound, I always get error, I checked AIF Queue manager the error
"This message cannot be processed: Invalid Message schema."
I am sending VendGroup document, the find action xml sample I copied for
somewher, please help me to check if there are something wrong. thanks in
advance. (after run batch job, the file at inbound folder already gone)
<?xml version="1.0" encoding="utf-8" ?>
- <Envelope
xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Message">
- <Header>
<MessageId>{C9B8B21D-886B-4624-8B68-5513DD8E63D1}</MessageId>
<SourceEndpointUser>mydomain\myusername</SourceEndpointUser>
<SourceEndpoint>mylocalEndpoing</SourceEndpoint>
<DestinationEndpoint>VendGroupEndpoint</DestinationEndpoint>
<Action>http://schemas.microsoft.com/dynamics/2008/01/services/VendVendGroupService/find</Action>
</Header>
- <Body>
- <MessageParts
xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Message">
- <QueryCriteria
xmlns="http://schemas.microsoft.com/dynamics/2006/02/documents/QueryCriteria">
- <CriteriaElement>
<DataSourceName>VendGroup</DataSourceName>
<FieldName>VendGroup</FieldName>
<Operator>Equal</Operator>
<Value1>10F</Value1>
<Value2 />
</CriteriaElement>
</QueryCriteria>
</MessageParts>
</Body>
</Envelope>
Loading...