Skip to main content

Notifications

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

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

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
 
 
Categories:
  • Suggested answer
    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
    YUN ZHU 71,565 Super User 2024 Season 2 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
    KasparsSemjonovs 3,828 Super User 2024 Season 2 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans