Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Unanswered

The Gen. Journal Template does not exist. Identification fields and values: Name=''

Posted on by 42

Hi

Getting below error while inserting gen. Jornal form web services any idea??

"The Gen. Journal Template does not exist. Identification fields and values: Name=''.

Same journal i am able to insert wiht API page.

Categories:
  • GaneshN Profile Picture
    GaneshN 5 on at
    RE: The Gen. Journal Template does not exist. Identification fields and values: Name=''

    I am also having similar issue. But I need to use the OData 4 Web Service page 39 option only. Since we have several customers who are using ODATA 4 web service for page 39, so we can't migrate to API page. We need to resolve this issue for this one customer who is getting this error for some reason even when the Gen. Journal Template exists.  

    Could you please help with this?

  • YUN ZHU Profile Picture
    YUN ZHU 69,639 Super User 2024 Season 2 on at
    RE: The Gen. Journal Template does not exist. Identification fields and values: Name=''

    Hi, I tested it, and it works.

    pastedimage1666592393058v1.png

    Get: api.businesscentral.dynamics.com/.../GeneralJournals

    pastedimage1666592549982v2.png

    Post: api.businesscentral.dynamics.com/.../GeneralJournals

    Body:

    {
       "Journal_Template_Name""GENERAL",
       "Journal_Batch_Name""DEFAULT",
       "Line_No"30000,
       "Posting_Date""2022-04-11",
       "Document_No""221024",
       "Account_Type""Customer",
        "Account_No""10000"
    }

    pastedimage1666592695932v3.png

    pastedimage1666592722129v4.png

    pastedimage1666592740704v5.png

    As the error message suggests, you should have missed the Gen. Journal Template ("Journal_Template_Name").

    Hope this helps.
    Thanks.

    ZHU

  • Mohd Anas Profile Picture
    Mohd Anas 42 on at
    RE: The Gen. Journal Template does not exist. Identification fields and values: Name=''

    Hi YUN,

    I tried with the API page and it's working but what could be the reason why it's not working with the 39 pages directly if you know??

  • Mohd Anas Profile Picture
    Mohd Anas 42 on at
    RE: The Gen. Journal Template does not exist. Identification fields and values: Name=''

    Hi YUN,

    I tried with the API page and it's working but what could be the reason why it's not working with the 39 pages directly if you know??

  • YUN ZHU Profile Picture
    YUN ZHU 69,639 Super User 2024 Season 2 on at
    RE: The Gen. Journal Template does not exist. Identification fields and values: Name=''

    Hi, if you publish General Journal (39, Worksheet) page directly in Web Service, it's not the same code as the API page.

    Personally, I recommend using API page because it has better performance.

  • Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,744 Moderator on at
    RE: The Gen. Journal Template does not exist. Identification fields and values: Name=''

    You need to give a valid value for the Gen.Journal Template field. That can not be empty because it is part of the primary key of the journal line table.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans