Our support engineers have assembled the top recommended solutions for you.
Microsoft Dynamics AX 2012CRM Connector in Microsoft Dynamics AX 2012Financials Management in Microsoft Dynamics AX 2012Upgrading to Microsoft Dynamics AX 2012
Microsoft Dynamics AX 2009
Application Object Server (AOS)
Enterprise Portal and Role Centers
Inventory Costing in Microsoft Dynamics AX 2009
Invoice Settlements/Discounts/Reversals
SSRS and SSAS Integration
Workflow
Hi,
I'm trying to use the AIF to place all invoices from a specific customer into a folder which I have set up but I seem to be having some difficulty, as when I raise an invoice from a sales order, it doesn't appear in my folder. I'll show you the steps I have taken:
1) Basic > Setup > AIF
2) Set Transport adapter to FileSystemAdapter
3) Created a channel, direction outbound, active and set the address where I want the file to be place: c:\axInvoices\myCustomer\
4) Enabled the SalesSalesInvoiceService
5) Endpoint, created a new one for this customer and set the constraint ID to the customer account
6) Added the .read action and enabled it, set the output fields I want to be output from data policies.
Am I doing this wrong or what am I missing out here? Because when I raised an invoice from the Sales Order my folder location was empty?
Any help would be appreciated! Thanks.
The message is not sent automatically, it's just queued. What you need is to run few AIF batch jobs.
[ Goshoom.NET Dev Blog ]
I've setup a batch job to run in 15 minutes, I added the AifGatewaySendService and AifOutboundProcessingService as tasks. I think that's correct? I'll let you know if it runs successfully..
No this didn't seem to run, I did set the status to waiting too, as suggested in the article you linked
Edit: I checked the Batch Job History for that batch job and it didn't seem to run for some reason? The only reason I can think of is that there was nothing in the queue? Which means my settings must be wrong, not sure what though
When you setup the batch job, are they in a specific batch group?
Have you check the server setting that this particular batch group is handled by one (or more) of the AOSes?
My blog | PBC
This posting is provided "AS IS" with no warranties, and confers no rights.
It seems that invoices don't get added to the queue, I checked the queue manager under periodic and my test invoices weren't there even though I didnt check the "Print Invoice" box when I posted an sales order to invoice?
Callum:
did you ever resolve this issue? if so, can you share your steps with me?
Hi Paul,
Yes I did, you have to make sure that when you're creating the invoice, that you're not printing to screen. So you go to printer setup in the posting form and select any option other than Screen. The Invoice should then appear in the Queue Manager ready for processing via a Batch Job
Thanks Callum:
And your other steps are as listed in your initial post?
Yup, you just then have to set up the batch job to process the queue and then it'll output the xml into the desired folder
you need 2 batches, but have a look at youtube
I only have 1 Batch Job, but it has 2 tasks: AifOutboundProcessingService and AifGatewaySendService (has a condition set which relies on the first task to have ended). This is for AX 2009 by the way..
lets add somde debugging:
• modify the ‘Classes\AifOutboundProcessingService\runAsWrapper’ method (line 22)
• replace the code sample:
runas(runAsUserId,
classnum(AifOutboundProcessingService),
staticmethodstr(AifOutboundProcessingService, processAsUser),
messageIdContainer,
runAsCompany);
by the code line:
AifOutboundProcessingService::processAsUser(messageIdContainer);
try to run next lines in a job
new AifOutboundProcessingService().run();
new AifGatewaySendService().run();
now debug your process and see what went wrong
Hi Dick Wenning,
My solution is actually working now, I was just replying to Paul Topham who was having difficulties
Can you provide a bit deeper dive on the steps below (AOT?)
Thanks
Paul