Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

RE: X++ code to create General Journal (The main account 0 does not exist.) , Error found when validating record.

$
0
0

I tried as u said but also gave me error (The main account 1204010101 does not exist.)

this photo of manual  insert in ax form

when i tried to insert  by x++ by the next code 

    journalTrans.parmAccountType(LedgerJournalACType::Ledger);
    acctPattern = ["2107032000","2107032000",0];
    journalTrans.parmLedgerDimension(AxdDimensionUtil::getLedgerAccountId(acctPattern));

    journalTrans.parmOffsetAccountType(LedgerJournalACType::Bank );
    offSetAcctPattern = ["1204010101","1204010101",0];
    journalTrans.parmOffsetLedgerDimension(AxdDimensionUtil::getLedgerAccountId( offSetAcctPattern));

Error is (The main account 1204010101 does not exist.)

1204010101 is wrote right as first photo 
also please tell me why you repeated the number  "1101010000" in this container in your replay 

["1101010000", "1101010000", 0]

thank you sir


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>