AIF - Invalid Message Schema … ??
If you ever encounter this error message in Ax4sp2 and you are one hundred procent certain that there is nothing wrong with your file, check the MessageId tag. This sequence can not just be increased by one all the time, sometimes you come to a combination which simply does not compute..
In \Classes\AifMessage, there is a method called validateGuid() which is called each time an incoming message is read. If in error, this routine throws “The string ‘%1′ is not a valid GUID”, but that is later replaced with “This message cannot be imported: AifGatewayQueue Invalid Message Schema” … !?
After checking my file several times, I started to trace through AIF import handling and found this. Again, might save you some time if you get the same problem. Simply put a breakpoint in validateGuid() method and see how your code goes.
Below simple example shows how you can generate a Guid which will work. Since input and output queues are using different lists, a guid generated inside ax can be used for import right after (just did).
1 2 3 4 5 6 7 8 9 | static void FO_NewGuId(Args _args) { guid myGuid; ; myGuid = newGuId(); print strfmt("The GUID is: %1", myGuid); pause; } |
September 21st, 2008 at 15:08
AIF - Invalid Message Schema:
An alternate way of doing the same stuff.
Edit the Message Id in the generated XML from AIF & replace the last 2 numbers/alphabets with any other numbers/alphabets.
Even this will work out
September 22nd, 2008 at 11:57