InventTransferJournalService Error - AIF AX 2012

Hi,

I’m trying to post to the InventTransferJournalService and I get the following error:

No default name for stock transfer journal is specified in AIF parameters

What does this mean? Here is my code:

var client = new TransferJournalServiceClient();

var context = new CallContext {Company = “btn”};

var journalHeader = new AxdEntity_InventJournalTable {JournalNameId = “COR”};

var inventJournalTrans = new AxdEntity_InventJournalTrans {ItemId = “01020-11018”};

var inventDimIssue = new AxdEntity_InventDimIssue {InventSiteId = “OST”, InventLocationId = “ZZ002”};

inventJournalTrans.InventDimIssue = new AxdEntity_InventDimIssue[1] {inventDimIssue};

var inventDimReceipt = new AxdEntity_InventDimReceipt {InventSiteId = “OST”, InventLocationId = “ZZ002”};

inventJournalTrans.InventDimReceipt = new AxdEntity_InventDimReceipt[1] {inventDimReceipt};

journalHeader.InventJournalTrans = new AxdEntity_InventJournalTrans[1] {inventJournalTrans};

try

{

client.create(context, new[] {journalHeader});

}

catch (Exception e)

{

var error = e.Message;

Console.ReadLine();

}

Hi,

Include the journal name in “Inventory & warehouse Mgmt” → parameters → AIF