Skip to main content
Business Central forum
Unanswered

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

editSubscribe (0) ShareShare
ReportReport
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 59,873 Super User 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 59,873 Super User 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,714 Super User 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.

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Sundar…

Industry experts answer burning questions directly from our amazing Community…

Enabling Copilot Case and Conversation…

Agents can easily recap an ongoing chat, transcribe a voice conversation…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,030 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans