Hi All,
I need your help to resolve below mentioned issue in our AX2012 R2 with CU6 environment.
Subsystem: Line=1, Pos=411, Xpath=/CustPaymJournal/LedgerJournalTable[1]/LedgerJournalTrans[1]
Exception message: Company does not exist.
I am getting this exception while using create operation of LedgerCustPaymJournalService via file system adapter. Used XML file is attached for reference.
<?xml version="1.0" encoding="utf-8"?>
<Envelope xmlns="http://schemas.microsoft.com/dynamics/2011/01/documents/Message">
<Header>
<MessageId>{1AA736D7-0271-4EE9-A83D-67A18B5E8242}</MessageId>
<Action>http://schemas.microsoft.com/dynamics/2008/01/services/CustPaymJournalService/create</Action>
</Header>
<Body>
<MessageParts xmlns="http://schemas.microsoft.com/dynamics/2011/01/documents/Message">
<CustPaymJournal xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/CustPaymJournal">
<LedgerJournalTable class="entity">
<CurrencyCode>KES</CurrencyCode>
<DefaultDimension xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<JournalName>SCBKR</JournalName>
<JournalTotalCredit>200</JournalTotalCredit>
<JournalTotalDebit>200</JournalTotalDebit>
<Name>Test AIF</Name>
<LedgerJournalTrans class="entity">
<AccountType>Cust</AccountType>
<AmountCurCredit>200</AmountCurCredit>
<Company>sil</Company>
<DefaultDimension xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<LedgerDimension>
<DisplayValue xmlns="http://schemas.microsoft.com/dynamics/2008/01/sharedtypes">C1251</DisplayValue>
<Account xmlns="http://schemas.microsoft.com/dynamics/2008/01/sharedtypes">C1251</Account>
<Values xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" xmlns="http://schemas.microsoft.com/dynamics/2008/01/sharedtypes" />
</LedgerDimension>
<MarkedInvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<OffsetAccountType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<OffsetDefaultDimension xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<OffsetLedgerDimension xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<PaymMode>Cash</PaymMode>
<TransDate>2017-02-15</TransDate>
<Txt>Test</Txt>
<CustVendPaymJournalFee class="entity">
<FeeCurrency>Fe1</FeeCurrency>
<FeeId>FeeId1</FeeId>
</CustVendPaymJournalFee>
<CustTransOpen class="entity">
<Company>sil</Company>
</CustTransOpen>
</LedgerJournalTrans>
</LedgerJournalTable>
</CustPaymJournal>
</MessageParts>
</Body>
</Envelope>