Skip to main content

Notifications

Community site session details

Community site session details

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

Gen.PostType must not be Purchase in GenJnlLine JnlTempName=CASHRCPT,JnlBatchName=GENERAL,Line No=

(1) ShareShare
ReportReport
Posted on by 2
Hi All,
 
Gen. Posting Type must not be Purchase in Gen. Journal Line Journal Template Name='CASHRCPT',Journal Batch Name='GENERAL',Line No.='20000'.
 
I have getting the error when posting the Cash receipt journal, I have set the Gen Posting Type as Purchase,
I want to do customization on the error, I have created one boolean field on the general ledger setup page if that field value is true then I don't want to show the above error and want to Post a cash receipt journal without error.  
 
Please let me know if there are any solutions.
 
Thanks
 
 
  • Suggested answer
    Community member Profile Picture
    2 on at
    Gen.PostType must not be Purchase in GenJnlLine JnlTempName=CASHRCPT,JnlBatchName=GENERAL,Line No=
    Hi Yun Zhu,
     
    I checked that there are event before the error message.
    Could you advise on how to develop logic for this?
     
    Thank you 
  • Suggested answer
    YUN ZHU Profile Picture
    81,415 Super User 2025 Season 1 on at
    Gen.PostType must not be Purchase in GenJnlLine JnlTempName=CASHRCPT,JnlBatchName=GENERAL,Line No=
    Hi, just for reference, as shown below, generally this kind of TestField error cannot be skipped.
    You can debug it and see if there are any events before the error code. If not, even customization will not be able to meet your needs.
     
    Hope this helps as well.
    Thanks.
    ZHU
  • Suggested answer
    KasparsSemjonovs Profile Picture
    4,177 Super User 2025 Season 1 on at
    Gen.PostType must not be Purchase in GenJnlLine JnlTempName=CASHRCPT,JnlBatchName=GENERAL,Line No=
    Creating such boolean field and skipping the error is a very bad choice.
     
    The error is because You have filled in one of the posting group fields on the line or for the Balancing account posting groups, but don't have provided if the transaction is Sales or Purchases - so system doesn't know which account to take from Posting Setups.
     
    Easiest way to avoid this kind of error - is to put the checkmark for the Journal Batch - ~"Don't copy posting groups". This will not fill the groups from GL account cards.
     
    Other option- if you want to create a custom process - would be just to clear all 10 fields for posting groups/type (Gen.Posting type, Gen.Bus.zposting group, Gen.Prod.Posting Group, VAT Bus.Posting group, VAT Prod.Posting group - and the same 5 with "Bal."In front)
     
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,120 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans