Wednesday, January 11, 2012

AIF: Execute messages on demand

Sometimes when you try to debug problems with an AIF message, you'd like to just execute it rather than wait for the batch server to pick it up.

This job can do just that. It requires the GUID of the message and a call to \Classes\AifInboundProcessingService\processAsUser:
static void debugAIF(Args _args)
    AifMessageId    messageId = str2guid("8D2D6B9C-B0A9-48FA-B58E-0CAAD415E65B");



meyaki said...


Is there any option to run and debug again a processed message, which I logged before?

This solution is only available if the message is in AifGatewayQueue...

Best regards,

Palle Agermark said...

If the message is processed, I'd assume you'd have to submit again to the queue again with a new GUID.