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...
Suggested answer

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

(3) ShareShare
ReportReport
Posted on by 10
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
 
 
I have the same question (0)
  • Suggested answer
    KasparsSemjonovs Profile Picture
    4,711 Super User 2025 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)
     
     
  • Suggested answer
    YUN ZHU Profile Picture
    94,131 Super User 2025 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
    Community member Profile Picture
    10 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 
  • Jim Oskarsson Profile Picture
    120 on at
    Gen.PostType must not be Purchase in GenJnlLine JnlTempName=CASHRCPT,JnlBatchName=GENERAL,Line No=
    Hi all,
     
    I have run into same issue when helping a customer so rather than creating a new ticket I will join this one.
     
    In a Cash Receipt Journal we register payments that have come in through a payment service provicer (Klarna) and apply them to invoices in the system.
    On the third and second last rows we register Klarna's charge/fee on a G/L account and on that charge/fee there is VAT we set the corresponding posting fields for that on the same rows so that BC will create VAT transactions.
    On the last row we set the total amount paid från Klarna.
     
    I all looks very good but when we post we get error message saying: Gen. Posting Type must not be Purchase in Gen. Journal Line
     
     
    I have struggled to understand what causes this error and sometimes I can post with Gen Posting Type = Purchase through the Same Cash Receipt Jounal. I believe it works when I first make the journal balance and then create new rows underneath with the purchase row. But this is not a solution that I can make our customers use, I must work without a lot of manual adjustments.
     
    So all you BC experts our there, please take a look at this and help us out :-)
     
    Thanks and regards,
     
    Jim
  • Suggested answer
    YUN ZHU Profile Picture
    94,131 Super User 2025 Season 2 on at
    Gen.PostType must not be Purchase in GenJnlLine JnlTempName=CASHRCPT,JnlBatchName=GENERAL,Line No=
    I suggest you ask the developer to debug it first, it seems to be a data problem, but it is not ruled out that it is a problem caused by customization.
     
    Thanks.
    ZHU
  • Jim Oskarsson Profile Picture
    120 on at
    Gen.PostType must not be Purchase in GenJnlLine JnlTempName=CASHRCPT,JnlBatchName=GENERAL,Line No=
    Hi ZHU,
    Thanks for the advice, i will make a test in a totally clean environment so that we can (or can not) rule out customization as source of the issue.
    I will get back with the outcome.
    Thanks.
    Jim
  • Suggested answer
    Jainam M. Kothari Profile Picture
    13,586 Super User 2025 Season 2 on at
    Gen.PostType must not be Purchase in GenJnlLine JnlTempName=CASHRCPT,JnlBatchName=GENERAL,Line No=
    Hello,
     
    In Microsoft Dynamics 365 Business Central, the "Gen. Posting Type" field can be left blank for certain transactions, especially those not involving VAT or GST, such as internal cost distributions or accruals. This flexibility allows for accurate posting as long as the relevant posting groups are correctly set up, ensuring the transaction is recorded properly in the general ledger. This is particularly useful for cash receipt journals that may not always require a "Gen. Posting Type" if they are not related to sales or purchases.
     

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,553

#2
Sumit Singh Profile Picture

Sumit Singh 2,057

#3
YUN ZHU Profile Picture

YUN ZHU 1,915 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans