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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Json based Custom service API max size

(0) ShareShare
ReportReport
Posted on by 21
Hi,
 
I created a json-based custom service api interface.
Access: <d365fnourl>api/services/ServiceGroup/Service/PartnerInterface
If the size of the request is 40MB or less, the function will run. Above 40MB, I get the error message RequestEntityTooLarge.
Where can the limitations be set?
 
Regards
László
I have the same question (0)
  • MuthukumaranAX Profile Picture
    2,903 on at
  • Kevin Xia Profile Picture
    Microsoft Employee on at
    Hi,
    As the error message indicates, the amount of data requested is too large. You can solve this problem in several ways:
    • Compress data: Use data compression algorithms such as Gzip or Deflate to compress the data in the request. This can significantly reduce the size of the data and reduce the bandwidth required for transmission.
    • Use pagination or batch processing: If possible, break down larger requests into smaller ones. You can use pagination, iterations, or batch processing to handle large amounts of data. This helps distribute the size of the requests and improves the efficiency of processing.
    Best regards,
    Kevin
  • Suggested answer
    Community member Profile Picture
    2 on at
     
    This will give you a general overall idea on what type of endpoint you should be using based on the general task you are trying to complete. Generally speaking an API should really be processing a single request at a time and should be a small quick payload. It sounds like you need to rethink your approach as you shouldn't be trying to send 40mb+ via a single api call. Doesn't matter what platform you are dealing with it sounds like you may be violating general web best practices. If you do want to stick to the json/soap api structure... Instead of processing the entire payload try breaking it down record by record. 

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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans