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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Cannot post because you did not specify which entry to apply. AL issue

(1) ShareShare
ReportReport
Posted on by 173
Hi all,
Am getting this eeror in AL code when posting a document after which I expect the application process to happen after 
Codeunit.Run(Codeunit::"Gen. Jnl.-Post Batch", GenJnLine);
has been called.
I've two types of custom payment documents that have the similar process, once is posting and applying without errors but the other is showing the error message.
Below is the error
 
Cannot post because you did not specify which entry to apply. You must
specify an entry in the Applies-to ID field for one or more open
entries.
 
kindly assist
I have the same question (0)
  • Verified answer
    KAYKAY Profile Picture
    173 on at
    Cannot post because you did not specify which entry to apply. AL issue
    Hi all, 
    I've realized that I was using different customers on the both documents that I was settling against each other. What day and half wasted.

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,869 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,484

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,242

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans