Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions markdownpages/profit/en/get-connector.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
author: CLN
date: 2025-11-08
date: 2026-08-31
tags: GetConnector, AppConnector, Integration, Authorization, Hr, Order Management
title: GetConnector
---
Expand Down Expand Up @@ -191,7 +191,8 @@ headers.append("Authorization", "AfasToken token_value_here");

> A good request will be handled within 1000ms

If you retrieve too much data, you will receive an HTTP 500 response with the error message: "Out of String space" or "Out of memory". Therefore, make sure to implement the `Skip` and `Take` parameters in a robust way. By doing this, you prevent retrieval of too much data and avoid excessive requests.
When requesting too much data, you will receive an HTTP 500 response with the error message: "An unexpected error has occurred." In the environment log, the error message is specified as "Insufficient memory to continue the execution of the program." or "Cannot allocate a buffer of size 2147487574.". Even if no error occurs, requesting too much data puts a heavy load on the AFAS servers. This can lead to longer wait times and issues for other connections.
Comment thread
ezw2000 marked this conversation as resolved.
Therefore, make sure to implement the `skip` and `take` parameters in a robust way. By doing this, you prevent requesting too much data and avoid excessive requests.

> **Note:** It is mandatory to sort the retrieved records with the Query parameter `orderbyfieldids` in the request when using `skip` and `take`. By omitting this, the order of the records between calls is not guaranteed. You may end up with records missing and other records being received twice. See below for more information on sorting data.

Expand Down
5 changes: 3 additions & 2 deletions markdownpages/profit/nl/get-connector.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
author: CLN
date: 2025-11-08
date: 2026-08-31
tags: GetConnector, AppConnector, Integration, Authorization, Hr
title: GetConnector
---
Expand Down Expand Up @@ -192,7 +192,8 @@ headers.append("Authorization", "AfasToken PHRva2VuPjx2ZXJzaW9uPjE8L3ZlcnNpb04+P

> Een goede request wordt binnen 1000ms afgehandeld

Wanneer je teveel data ophaalt, krijg je een http 500 response met error message: "Out of String space" of "Out of memory". Zorg daarom dat je de `skip` en `take` parameters op een robuuste manier implementeert. Hiermee voorkom je dat je te veel data ophaalt en vermijd je teveel requests.
Wanneer je te veel data opvraagt, krijg je een HTTP 500 response met error message: "Er is een onverwachte fout opgetreden." In het omgevingslogboek wordt de foutmelding gespecificeerd als "Insufficient memory to continue the execution of the program." of "Cannot allocate a buffer of size 2147487574.". Ook als er geen foutmelding komt, leg je met het opvragen van te veel data een grote druk op de AFAS-servers. Dit kan leiden tot langere wachttijden en problemen bij andere koppelingen.
Zorg daarom dat je de `skip` en `take` parameters op een robuuste manier implementeert. Hiermee voorkom je dat je te veel data opvraagt en vermijd je te veel requests.

> **Let op:** Het is verplicht de op te halen records te sorteren met de Query parameter `orderbyfieldids` in de request als je `skip` en `take` gebruikt. Je kunt er anders namelijk niet vanuit gaan dat de data bij elke call op dezelfde manier gesorteerd wordt. Dat kan tot gevolg hebben dat er regels missen of juist dubbel voorkomen. Zie verderop voor meer informatie over sorteren.

Expand Down
Loading