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

Notifications

Announcements

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)
  • 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;

  • 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

  • Lars Lohndorf-Larsen Profile Picture
    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.

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,457

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 742 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 669 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans