Skip to main content

Notifications

Announcements

No record found.

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
    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 77,925 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
    KasparsSemjonovs 4,070 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans