Skip to main content
Community site session details

Community site session details

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

(This transaction has been marked for settlement by Customer Payment XX-000000765 in company xxx.)

(1) ShareShare
ReportReport
Posted on by 5
Hi ,
 
The REQUIREMENT is to import the customer payment journal lines.
 
 
Getting Error while importing customer payment journal lines with more than 1 lines having same invoice id and diff amount  .
I am trying to import the data like below using the custom data entity (exact copy of standard customer payment journal lines entity ) with little changes like having extra fields like sales id.
 
CUSTACCOUNT INVOICETOBEMARKED CUSTPAYMMODE CREDIT SalesId
ABC INV001 CC 1000 s001
ABC INV001 CASH 2000 s001
 
But getting this error in DMF for each lines This transaction has been marked for settlement by Customer Payment XX-0(00000765  in company xxx.)
 
Is it possible to import such journal lines and post it successfully ?
I am able to make such journal line manually using the settlement transactions menu and editing the settle amount for each payment journal line.
 
 
please suggest the X++ code to import the journal lines correctly .
 
  • Suggested answer
    BillurSamdancioglu Profile Picture
    18,106 Most Valuable Professional on at
    (This transaction has been marked for settlement by Customer Payment XX-000000765 in company xxx.)
    You can not have two lines with the same invoice number.
    You can not do manually and by DMF.
    It is not possible to do with X++,
    You may first post one line with a journal, And then post in another journal.
  • Poonam Verma Profile Picture
    74 on at
    (This transaction has been marked for settlement by Customer Payment XX-000000765 in company xxx.)
    See if this resolves the issue: try running the Marked Transaction Detail under Periodic Tasks in the Accounts Receivable module by customer account. If the invoice is selected for settlement in a different journal, you should be able to unmark the transaction from there.
     
  • Suggested answer
    Anton Venter Profile Picture
    20,136 Super User 2025 Season 1 on at
    (This transaction has been marked for settlement by Customer Payment XX-000000765 in company xxx.)
    Hi,
     
    Please explain how you are getting the DMF import to do customer payment settlements? To answer your question about how to do the settlements in code, have a look at  CreditCardPaymentJournal class, settlePayment method as an example. This code needs to be adapted to handle multiple payments instead of just a single payment.
     
     
     

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 565

#2
Martin Dráb Profile Picture

Martin Dráb 536 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 402 Super User 2025 Season 1

Product updates

Dynamics 365 release plans