Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Non-responsive Dynamics365BusinessCentral custom query

(1) ShareShare
ReportReport
Posted on by 3

The custom query is joining two tables:

21 (Cust. Ledger Entry)

254 (VAT Entry)

using documentNo in a left join condition, the purpose is to get the VAT amount for relevant transactions.

It has worked fine for a number of different companies but with one particular company it is non-responsive. The company has a lot of data, I know it has around 330K customers.

Is there anything I can do to extract the data for this company?
I am filtering by postingDate.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 76,911 Super User 2025 Season 1 on at
    Non-responsive Dynamics365BusinessCentral custom query
    It is recommended to add some filters in Query.
    For example,
    Filtering in Query objects
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 7,593 Super User 2025 Season 1 on at
    Non-responsive Dynamics365BusinessCentral custom query
  • Suggested answer
    Mustafa Omerbegović Profile Picture
    Mustafa Omerbegović 1,188 Super User 2025 Season 1 on at
    Non-responsive Dynamics365BusinessCentral custom query
    Hello,
     
    Try to set some additional filters and run query few times to get your data.
     
    If you paste your code we could give you better answer for sure.
     
    Also, you have all that data in the GL entries and you can filter by source type and source no for more specific customer no so you would not have a need for joining tables.
     
    Greetings

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

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,971 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,846 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans