# FAQ

Here you will find questions and answers to various scenarios.

# Master data cannot be synchronized

### Checking the squeeze masterdata tables in BC

In the setup for the [Squeeze master data tables](https://docs.squeeze.one/books/squeeze-for-dynamics-365-bc-en-us/page/squeeze-master-data-tables), you can see which master data tables are to be synchronized or have already been synchronized. You can also deactivate synchronization with Squeeze for individual tables there.

### Checking the order synchronization

Orders are not transferred immediately but every 5 minutes by the job queue entry "DEXPRO SQUEEZE - Master Data Synchronisation". A released order can therefore take up to 5 minutes to appear in Squeeze. Check in the job queue entries whether this entry exists and has the status "Ready". If it is missing, create it with the [Create Jobs](https://docs.squeeze.one/link/329#bkmrk-background-jobs) action in the SQUEEZE Setup.

### Checking the Squeeze Master Data

On the Squeeze page, you can check whether all master data tables already exist. If any are missing, a 404 error may occur during the synchronization attempt. This is avoided in the latest app version by subsequently creating the table in Squeeze in case of doubt.

[![image-1749561672224.png](https://docs.squeeze.one/uploads/images/gallery/2025-06/scaled-1680-/image-1749561672224.png)](https://docs.squeeze.one/uploads/images/gallery/2025-06/image-1749561672224.png)

### Checking the setup

#### Squeeze Setup

[![image-1749562273855.png](https://docs.squeeze.one/uploads/images/gallery/2025-06/scaled-1680-/image-1749562273855.png)](https://docs.squeeze.one/uploads/images/gallery/2025-06/image-1749562273855.png)

Does the [Squeeze URL](https://docs.squeeze.one/link/329#bkmrk-api) match? Is the correct squeeze system stored? Check the URL for this.

What is the connection status? Is the tick green? If not, get a current [API key](https://docs.squeeze.one/link/329#bkmrk-get-api-key).

Has the [initial master data upload](https://docs.squeeze.one/link/329#bkmrk-upload-master-data-f) already taken place?

#### Document class Setup

Are the [API settings](https://docs.squeeze.one/link/331#bkmrk-api-setup) of the document class correct? Please check whether the IDs entered match those on the DEXPRO platform.

[![image-1749562319945.png](https://docs.squeeze.one/uploads/images/gallery/2025-06/scaled-1680-/image-1749562319945.png)](https://docs.squeeze.one/uploads/images/gallery/2025-06/image-1749562319945.png)

##### Checking the Documentclass Id

##### [![image-1742550596879.png](https://docs.squeeze.one/uploads/images/gallery/2025-03/scaled-1680-/image-1742550596879.png)](https://docs.squeeze.one/uploads/images/gallery/2025-03/image-1742550596879.png)

#####  

##### Checking the Export Interface id

[![image-1742550837407.png](https://docs.squeeze.one/uploads/images/gallery/2025-03/scaled-1680-/image-1742550837407.png)](https://docs.squeeze.one/uploads/images/gallery/2025-03/image-1742550837407.png)

##### Checking the Line Table id

[![image-1742551047798.png](https://docs.squeeze.one/uploads/images/gallery/2025-03/scaled-1680-/image-1742551047798.png)](https://docs.squeeze.one/uploads/images/gallery/2025-03/image-1742551047798.png)

# Documents are not retrieved from Squeeze and remain there in the export step

### Checking the import queue

Is there already an entry in the [import queue](https://docs.squeeze.one/books/squeeze-for-dynamics-365-bc-en-us/page/import-queue-entries) with the Squeeze docId? Please also remove the system filtering when checking.

[![image-1749562174154.png](https://docs.squeeze.one/uploads/images/gallery/2025-06/scaled-1680-/image-1749562174154.png)](https://docs.squeeze.one/uploads/images/gallery/2025-06/image-1749562174154.png)

Click on “Show system filter” to display the system filters.

[![image-1749562235142.png](https://docs.squeeze.one/uploads/images/gallery/2025-06/scaled-1680-/image-1749562235142.png)](https://docs.squeeze.one/uploads/images/gallery/2025-06/image-1749562235142.png)

As soon as these filters have been removed, all documents are displayed across all clients. Check whether the Squeeze docid exists in the “Document Id” column and whether the entry has already been processed. If so, it cannot be downloaded again. The document must then be manually set to the “Processed” step on the Squeeze page (DEXPRO platform).

If the document is not in the list, the uncollected document can be pulled directly via the import buffer.

### Checking the setup

#### Squeeze Setup

[![image-1749562273855.png](https://docs.squeeze.one/uploads/images/gallery/2025-06/scaled-1680-/image-1749562273855.png)](https://docs.squeeze.one/uploads/images/gallery/2025-06/image-1749562273855.png)

Does the [Squeeze URL](https://docs.squeeze.one/link/329#bkmrk-api) match? Is the correct squeeze system stored? Check the URL for this.

What is the connection status? Is the tick green? If not, get a current API key.

#### Document class Setup

Are the [API settings](https://docs.squeeze.one/link/331#bkmrk-api-setup) of the document class correct? Please check whether the IDs entered match those on the DEXPRO platform.

[![image-1749562319945.png](https://docs.squeeze.one/uploads/images/gallery/2025-06/scaled-1680-/image-1749562319945.png)](https://docs.squeeze.one/uploads/images/gallery/2025-06/image-1749562319945.png)

##### Checking the Documentclass Id

##### [![image-1742550596879.png](https://docs.squeeze.one/uploads/images/gallery/2025-03/scaled-1680-/image-1742550596879.png)](https://docs.squeeze.one/uploads/images/gallery/2025-03/image-1742550596879.png)

#####  

##### Checking the Export Interface id

[![image-1742550837407.png](https://docs.squeeze.one/uploads/images/gallery/2025-03/scaled-1680-/image-1742550837407.png)](https://docs.squeeze.one/uploads/images/gallery/2025-03/image-1742550837407.png)

##### Checking the Line Table id

[![image-1742551047798.png](https://docs.squeeze.one/uploads/images/gallery/2025-03/scaled-1680-/image-1742551047798.png)](https://docs.squeeze.one/uploads/images/gallery/2025-03/image-1742551047798.png)

# Test system retrieves documents from Squeeze

A test system that is connected to the same SQUEEZE instance as the production system – for example because it was created as a copy of production – retrieves documents from there as well.

<p class="callout warning">A retrieved document is marked as processed in SQUEEZE. Documents retrieved by the test system are then missing in the production system.</p>

### Deactivate SQUEEZE in the test system

If the test system should not communicate with SQUEEZE at all, deactivate SQUEEZE there:

1. In the test system, open the [Squeeze Setup](https://docs.squeeze.one/link/329) page.
2. Clear the **Activated** field.

The **Active** field of the DEXPRO SQUEEZE app in the **DEXPRO Apps** part of the **Core Setup** page does the same. The two fields are kept in sync.

The test system then no longer retrieves documents – neither through the job queue nor through the **Download Documents now** action. If the action is run anyway, it shows the message **App DEXPRO SQUEEZE not activated**.

<p class="callout info">No function that calls SQUEEZE is available in the test system then. Because the setup is copied along with every new copy of production, SQUEEZE is activated again afterwards. Repeat the deactivation after every copy – or have it done automatically (see the next section).</p>

### Automatically or only for certain documents

If the test system should detect and prevent the retrieval by itself, or if only certain documents should be held back, a developer can implement this with two integration events, available from SQUEEZE version 2.54.0.0. Description and example: [Events before retrieving and creating SQUEEZE documents](https://docs.squeeze.one/books/squeeze-for-dynamics-365-bc-en-us/page/events-before-retrieving-and-creating-squeeze-documents).

That page also describes how a developer connects the test system automatically to a SQUEEZE test instance of its own after every copy, instead of preventing retrieval.

# Selecting account assignments based on conditions

Account assignments can be linked to conditions, so that SQUEEZE picks the right account assignment setup for a document automatically.

## Setup

Open the [Document Class Setup](https://docs.squeeze.one/books/squeeze-for-dynamics-365-bc-en-us/page/document-classes-setup) of the document class. In the **Rules** section at the bottom, create a new value in the **Account Assignment Code** field.

{add screenshot of Document Class Setup, Rules section, here}

This value is a rule group. From now on, account assignments can be set by rules: in this rule group you create and define individual rules, for example one per vendor.

{add screenshot of the rules of the account assignment rule group here}

## Example

A rule for an insurance company as vendor:

{add screenshot of Rule here}

The upper part of the rule defines the *if*. Your conditions can refer to any field of the SQUEEZE document header and to any information linked to it, compared with the various operators. Conditions can be combined with AND or OR.

Example: if the vendor no. equals 4711 AND the **Description** field of a document line contains "Examination fee", the *then* is applied. It is defined in the lower **DEXPRO Squeeze** part of the rule, where you select the matching [account assignment setup](https://docs.squeeze.one/books/squeeze-for-dynamics-365-bc-en-us/page/account-assignment-setup) in the **Account Assignment Code** field.

## The account assignment setup

The account assignment setup itself defines which VAT rates are taken into account and how they are assigned. This lets you handle the VAT rates of each vendor specifically, so that invoices with several VAT rates are later assigned automatically in one go.

An example for a VAT rate of 19%:

{add screenshot of Squeeze Account Assignment Setup Line here}

- At the top is the **VAT Rate** to be assigned.
- In the middle is the account assignment itself.
- At the bottom are the shortcut dimensions, such as cost centre or cost object, which are also set by the automatic account assignment.

<p class="callout info">Which account assignment setup is used: if a rule of the rule group applies and has an account assignment code, that code is used. Otherwise SQUEEZE takes the account assignment code from the [Vendor Related Setup](https://docs.squeeze.one/books/squeeze-for-dynamics-365-bc-en-us/page/vendor-related-setup) of the vendor and, failing that, the one in the document class setup.</p>

This way, a requirement like the one in the example can be met in the standard app without any programming.

## Assigning accounts to individual lines by rule

The account assignment code above chooses one account assignment setup for the whole document. Line account assignment rules work on each document line on its own: a rule gives every line that matches it an account and dimensions. For example, all lines whose description contains "Freight" can go to a freight G/L account with the cost centre of the logistics department.

### Setup

1. Open the [Document Class Setup](https://docs.squeeze.one/books/squeeze-for-dynamics-365-bc-en-us/page/document-classes-setup) of the document class. In the **Rules** section, create a new value in the **Line Account Assignment** field. Like the account assignment code, this value is a rule group.
2. Create the rules of this rule group. Their conditions can refer to the document line as well as to the SQUEEZE document header and the other linked information. Conditions on the document line are checked against each line on its own, which is why the rule card does not show the **Record Match Type** for these rules.
3. Define the *then* in the lower **DEXPRO Squeeze** part of the rule, group **Line Account Assignment**: 
    - **Account Type** and **Account No.** — the G/L account, item, resource, fixed asset or item charge the line gets. Leave **Account No.** empty to only add dimensions.
    - **Gen. Prod. Posting Group** and **VAT Prod. Posting Group** — replace the posting groups the line takes from the account, for example to match the VAT rate of the document. Leave them empty to keep those of the account.
    - **Dimensions** — the shortcut dimensions the line gets. The **Line Dimensions** action on the rule edits all dimensions of the rule, including those without a shortcut.

{add screenshot of Rule with the Line Account Assignment group here}

### How the rules are applied

The rules run automatically when an invoice, credit memo or order confirmation is imported from SQUEEZE. They run after the other automatic steps of the import, such as autocomplete, the order match and the account assignment by VAT rate, so they see the final lines. They run before an automatic validation, so the assigned accounts are transferred to the target document.

- For each line, the rules are checked in the order of their **Sequence No.** Only active rules that are currently valid count. The first rule whose conditions match is applied, and no further rule is checked for that line. A line that no rule matches stays as it is.
- A matching rule without an account and without dimensions leaves the line unchanged and keeps the rules after it away from that line. Use such a rule to exclude lines.
- A matching rule overrides the account a line already has, including one set by the account assignment setup.
- Quantity, direct unit cost, discounts and line amount stay exactly as read from the document.
- Lines allocated to an order or receipt line are skipped: their account comes from that line.
- The dimensions of the rule are added to those the line already has, for example the default dimensions of the account. If both have a value for the same dimension, the rule wins.
- The **Item Match Method** field of the line shows which rule assigned the account, for example **Assigned by account assignment rule FREIGHT (Freight costs).** The field is hidden by default; add it to the lines by personalising the page.

<p class="callout info">An account that has been blocked since the rule was set up does not stop the import. The [plausibility check](https://docs.squeeze.one/books/squeeze-for-dynamics-365-bc-en-us/page/plausibility-checks) of the document reports it.</p>

### Applying the rules again

After you have changed a rule or corrected the lines, choose **Functions** → **Apply Account Assignment Rules** on the lines of the SQUEEZE document. A message shows how many lines a rule was applied to, for example **The account assignment rules were applied to 3 of 5 lines.**

If the document class has no rule group in the **Line Account Assignment** field, the action stops with **Line Account Assignment is not set up for document class …** followed by the document class.