---
title: "General FAQ of FlexConnect"
canonical: "https://help.fieldbuddy.com/space/FBDOCS/2078310797/General%20FAQ%20of%20FlexConnect"
format: markdown
---
> Macro (toc)

### Common Questions

#### **Question**: How to check which FlexConnect version is installed?

**Answer**: Go to Setup → Apps → Packaging → Installed Packages and check for FlexConnect  


![image-20240731-151101.png](media://42042ac8-b970-410b-9107-ab5df42c51fd)

 

#### **Question**: How to check which user is authorised in ExactOnline/ FlexConnect

**Answer**: If version of FlexConnect is >= 1.17.3  - go to Service Provider and click View User Information

If version of FlexConnect is <= 1.17.3 -  go to an API tool, and user following request -   `https://start.exactonline.nl/api/v1/current/Me`

In the response, it will show what is the username  
> Macro (inline-media-image)



#### **Question**: When scheduling a Service Provider. Is it only downloading the object mapping of the Service Provider or for all?

**Answer**: Only for that specific Service Provider.

#### **Question**: In case if I want to schedule multiple service providers in one org, how can I do that?

**Answer**: As for now, in 1.12.x-1.17.x version, only one provider can be scheduled via button. But it is possible to schedule job manually, for example via following execute anonymous apex snippet.  
Please use Service Provider records ID (Salesforce Id) and Schedule Interval (CRON, for example `0 0 2 * * ?`) 

```
String job_name = 'Inbound Data Sync: My Provider';
System.schedule(job_name, '<cron>', new FBCONNECT.cls_FBInboundProcessSchedule('<provider id>'));
```

But in version **1.18.x** - it is possible!

### Audit Trail errors

Bellow are common errors that could be observed in audit trails for Exact Online integration

| **Error** | **Request** | **Result** | Explanation |
| --- | --- | --- | --- |
| 403 Forbidden | Update of any record (Outbound Integration or even inbound) | ```
403 Forbidden {
“error”: {
“code”: “”, 
“message”: {
“lang”: “”,
 “value”: “Forbidden - WrongDivision”
}
}
}
``` | 1. Authenticated (to Exact Online user)  is/got deactivated
2. Authenticated (to Exact Online user)  lost permission to administration
3. Authenticated (to Exact Online user)  do not have an access to created/update appropriate object<br>For example, when you don't have the right to create an invoice but try to create one through the API, you will receive a **403 Forbidden** error.<br>When applicable, an extra header "reason" will display to provide more information about the error. Some possible values for this header are:<br>- BlockedUser - The user has been marked as blocked and cannot access any data.
- InactiveUser - The user is no longer active in Exact Online
- BlockedCustomer - The customer has been marked as blocked and cannot access any data.
- LicenseExpired - The license of the customer has expired in Exact Online.
- DivisionBlocked - The company has been marked as blocked and cannot be accessed.
- NoDivisionAccess - The user does not have access to the requested division.
- DivisionArchived - The company has been marked as archived and cannot be accessed via APIs.<br>You can check it by re-trying same payload in API tools |
| 500 Internal Server Error | Update of any record (Outbound Integration) | ```javascript
500 Internal Server Error {
"error": {
"code": "", "message": {
"lang": "",
 "value": "No order lines. Order lines must be supplied to create a new order."
}
}
}
``` | In case you are inserting a SalesOrder, you require to insert SalesOrderLines. |
| 400 Bad Request | Inbound integration for Accounts (or other entities) wihout filtetring | ![image](media://21d285d1-0bc0-4b25-99ff-cec10d17cab4) | use Sync API → update endpoint of object mapping from `/crm/Accounts` to `/Sync/CRM/Accounts`<br>![image](media://90d8bea8-701c-43cb-8f21-81f1cc47637e)<br>This due to [https://support.exactonline.com/community/s/knowledge-base?language=en_GB#All-All-DNO-ReleaseNote-rn-2107-rn-appcenter-mandatoryfiltering](https://support.exactonline.com/community/s/knowledge-base?language=en_GB#All-All-DNO-ReleaseNote-rn-2107-rn-appcenter-mandatoryfiltering)<br>More info here – [https://support.exactonline.com/community/s/article/All-All-DNO-ReleaseNote-rn-2005-rn-appcenter-syncapis?language=en_GB](https://support.exactonline.com/community/s/article/All-All-DNO-ReleaseNote-rn-2005-rn-appcenter-syncapis?language=en_GB) |
| 400 Bad Request | Update of any record (Outbound Integration) – Update<br>```javascript
PUT  
https://start.exactonline.nl/api/v1/xxxxxx/salesorder/SalesOrders(guid'7253bc9e-048c-42f4-bd3b-4f2d609b06e6')
{
  "SalesOrderLines" : [ {
    "Item" : "1d3e5e28-de2e-460b-af9d-023ee3d694f1",
    "Quantity" : null
  } ],
  "Remarks" : null,
  "StatusDescription" : "In Progress",
  "Description" : null,
  "OrderedBy" : "4a0e3e96-8006-4510-ae8f-8af888257b46"
}
``` | ```javascript
400 Bad Request {
"error": {
"code": "", "message": {
"lang": "", 
"value": "Error processing request stream. Binding to new entities is not supported in PUT operations."
}
}
} 
``` | In case you are updating a SalesOrder, and sending SalesOrderLines. |
| Het artikel en het magazijn zijn niet gekoppeld. | Update of any record (Outbound Integration) - Create<br>```javascript
POST  https://start.exactonline.nl/api/v1/xxxxxx/salesorder/SalesOrders
{
  "SalesOrderLines" : [ {
    "Item" : "783df452-0803-45c0-be56-9a4ac0e3dae9",
    "Quantity" : 1.00
  } ],
  "WarehouseID" : "090b244d-7a4b-4a52-8c3d-1ea8f5ad3bf9",
  "OrderedBy" : "7a0034a1-4e33-4711-97e4-30f0ec6740f0"
}
``` | ```javascript
500 Internal Server Error {
"error": {
"code": "", "message": {
"lang": "", "value": "Het artikel en het magazijn zijn niet gekoppeld."
}
}
}
``` | In case you are inserting a SalesOrder, and sending SalesOrderLines.<br>Solution: Go to Exact, Voorraad, Search the item and add it to a Magazijn. |
| ```
Er ontbreken verplichte velden:
 [FIELDBUDDY__Work_Order__c]
``` | ```javascript
Request:
{

"uri": 
"https://start.exactonline.nl/api/v1/xxxxxxx/salesorder/SalesOrderLines(guid'0c735b71-c5b7-4d31-8214-000429386fc1')",
 "type": "Exact.Web.Api.Models.SalesOrderLine"

}, "Description": "LCP12:Bedieningspaneel", "ID": 
"0c735b71-c5b7-4d31-8214-000429386fc1", "OrderID": 
"367f37d9-c9dc-4137-8cf3-e118bcc8bce0", "Quantity": 2

}
``` | ```javascript
Er ontbreken verplichte velden: [FIELDBUDDY__Work_Order__c]
``` | Try to insert Work Order Part from EOL, the EOL Work Order ID was not filled in on Work Order, results in this error. Always check if EOL Work Order ID's are filled on on Work Order |
| Resource not found for the segment 'SalesOrders' |  | ```
404 Not Found { 
"error": { 
"code": "", "message": { 
"lang": "", "value": "Resource not found for the segment 'SalesOrders'." 
} 
} 
}
``` | Endpoint API is incorrect |
| Autrorisation issue – invalid_grant<br>The user is not active |  |  | the  EOL user that was used to authenticate in FlexConnect is deactivated.<br>It is necessary to re-authenticate with active user |
| Missing External Mapping field for Child Mapping object |  | Problem with request generation: {  
"a5Q9M0000003NXxUAM" : [ "Missing External Mapping field for Child Mapping object Invoice_Line_Items__r" ]  
} | In your child object mapping there should be at least one field that has the checkbox ‘Is External Mapping Field’ set to TRUE.<br>The selected field should contain an unique value. For example the external ID:<br>![image-20240423-121329.png](media://4c73a852-23c8-45e8-99bc-a44c6d1ce750) |
| `System Error: You have uncommitted work pending. Please commit or rollback before calling out. Stacktrace: (FBCONNECT)` | Any | Any | It could be that Exact Online user that is configured for integration is disabled<br>During re-auth following issue might occur<br>![image-20250409-162810.png](media://89945117-1c97-4736-a934-e0f79eed3d0d) |

Exact Online Errors are described here as well - [https://support.exactonline.com/community/s/knowledge-base#All-All-DNO-Content-respcodeserrorhandling](https://support.exactonline.com/community/s/knowledge-base#All-All-DNO-Content-respcodeserrorhandling) 

### API Tool Errors

Below are common errors that might occur using API tool

| Error | Request | Result | Explanation |
| --- | --- | --- | --- |
| ```javascript
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
 <code></code>
 <message xml:lang="">Media type requires a '/' character.</message>
</error>
``` | - | - | This is when doing communication with an EOL endpoint without headers. Add headers to the request.<br>Requests:<br>Content-Type:application/json<br>Accept:application/json |
| ```
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request</h2>
<hr><p>HTTP Error 400. The request is badly formed.</p>
</BODY></HTML>


``` | [https://start.exactonline.nl/api/v1/688961/salesorder/SalesOrders?$filter=](https://start.exactonline.nl/api/v1/688961/salesorder/SalesOrders?$select=OrderID,DeliverTo,Description,InvoiceTo,WarehouseCode&$filter=)(Description eq 'WO-005126') |  | Encode every space as %20<br>[https://start.exactonline.nl/api/v1/688961/salesorder/SalesOrders?$filter=](https://start.exactonline.nl/api/v1/688961/salesorder/SalesOrders?$select=OrderID,DeliverTo,Description,InvoiceTo,WarehouseCode&$filter=)(Description%20eq%20'WO-005126') |
| If the response is empty. You probably have the wrong Exact org Id. Or check developer logs |  |  |  |