web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

General Journal Web Service cannot remove data

(0) ShareShare
ReportReport
Posted on by 5

Hi All,

When I wanted to delete data of General Journal through calling General Joural Web Service,

It responsed "The Gen. Journal Line does not exist" like this.

pastedimage1636514771322v1.png

The Web Service worked well a few days ago but it couldn't work today.

And when I used GET method to query data with the same url, it could get correct data.

Is this a bug ? Or what did I do wrong ?

Could anyone help me?

Thanks.

I have the same question (0)
  • Lars Lohndorf-Larsen Profile Picture
    Microsoft Employee on at

    Hello,

    I guess the problem is with "special" characters here for template name and batch name. Verify that this journal actually exist, and maybe they get interpreted different from the web service, but especially the firs sign in template name looks not like the ohter signs.

  • NickLin666 Profile Picture
    5 on at

    Thank you for your reply.

    I'm sure that Journal Template Name and Journal Batch Name are actually exist.

    If the problem is with special characters, the similar errors would occur by using GET method.

    The DELETE method worked well before today but it couldn't work now. It was weird!

    Sincerely,

    Nick

  • KentHuang Profile Picture
    5 on at

    I’m Nick’s colleague and the problem has been solved!

    The reason is that we have written trigger OnDeleteRecord in the general journal extension, and have executed DeleteAll on the selected general journal, so the web service returns the code "Internal_RecordNotFound", and the data seems to be rolled back.

    Write the condition at the beginning of OnDeleteRecord to solve:

    if CurrentClientType in [CLIENTTYPE::SOAP, CLIENTTYPE::OData, CLIENTTYPE::ODataV4, CLIENTTYPE::Api] then
        exit;

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,870 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,138 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 915 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans