web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Account number for transaction type Bank does not exist.

(0) ShareShare
ReportReport
Posted on by 596

Hi,

I'm creating customer payment journal through code X , currently I have error when post the journal (by code) of saying like this : 

Account number for transaction type Bank does not exist. Validation was performed on ledger account  with record ID 5637328577.;Posting results for journal batch number P-000000421 Posting has been canceled.

I suspect this is because of the offset account whereby I'm using Bank for the Offset account type.

The value / field assignment by code for the offset account it self is like this : 

ledgerJournalTrans.OffsetAccountType        =  CustPaymModeTable::find(ledgerJournalTrans.PaymMode).AccountType
ledgerjournaltrans.OffsetCompany            =  curExt();
ledgerjournalTrans.OffsetLedgerDimension    =  CustPaymModeTable::find(ledgerJournalTrans.PaymMode).PaymentLedgerDimension;

and the setup of the Method of payment it self is like this : 

pastedimage1681222644873v1.png_2D00_640x480.png

Anyone know what is wrong ? When Account type is bank, there is no setup for account but to choose the bank account, And in that bank account, I did setup the main account ->
pastedimage1681224069092v1.png

Thanks

I have the same question (0)
  • Suggested answer
    BillurSamdancioglu Profile Picture
    19,703 Most Valuable Professional on at

    Hi,

    The GL account assigned to bank account may not be valid. Need to check the account structures.

  • Voltes Profile Picture
    596 on at

    Hi,

    The GL account is setup in Account Structures and its Active

    pastedimage1681224244238v1.png

    Thanks

  • Frank Hamelly | MVP, MCP, CSA Profile Picture
    46,625 Super User 2025 Season 2 on at

    Can you manually create the same payment journal?  If so, then something in your code is missing.  

  • CU02050725-0 Profile Picture
    20 on at
    It's best not to try to solve the problem yourself. Contact support to get started. I myself recently dealt with integrations with open banking providers, I found https://dashdevs.com/blog/integrations-with-open-banking-providers/ answers here. But in fact, it's better to immediately ask someone who knows about this topic. I spent so much time on this. I would do everything differently for my friend right now!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans