"VALUES" error when generating a Z-report or X-report
What the «VALUES» error means in Z-/X reports
The «VALUES» error when generating or viewing a Z report / X report indicates a critical incompatibility between Torgsoft and the outdated SQL Server 2005. In this state, the Z report / X report cannot be printed from Torgsoft or opened for viewing.
This material is intended for users and system administrators who have basic skills in working with the operating system, Windows services, and Microsoft SQL Server. All actions described are performed at your own risk: incorrect changes to settings, services, or the database may result in data loss or the program becoming inoperable. Before making changes, it is recommended to create an up-to-date database backup, check available disk space, and make sure there are no active users in the system. If you are not confident in the correctness of your actions or in understanding the consequences — contact technical support.
When it occurs
-
After updating Torgsoft (to the stable version 2022.0.48 or to the beta version 2022.4.7 and later)
-
When trying to:
-
close the cash register day on a software ECR (Generate the Z report)
-
view the X report or a previously created Z report
-
Always — if the database is running on SQL Server 2005
How it looks: symptoms and error text
-
Unable to generate or open the Z report / X report for viewing
A message appears:
[FireDAC][Phys][ODBC][Microsoft][SQL Native Client][SQL Server]
Неправильный синтаксис около ключевого слова "VALUES"
-
Work with the Z report / X report on the software ECR in Torgsoft is blocked
Why it happens: cause and compatibility context
-
Outdated DBMS (SQL Server 2005)
SQL Server 2005 does not support modern SQL syntax used in current versions of Torgsoft. -
Updated fiscal reporting logic
After changes in requirements for fiscal receipts and reports, the program uses more complex SQL queries that are incompatible with the old engine. -
SQL Server 2005 Express limitations
-
Maximum database size — 4 GB
-
High risk of errors when working with reports and large tables
How to fix it: SQL Server upgrade (step-by-step)
The only correct solution — upgrade SQL Server
Basic workflow
-
Create a backup (archive) of the database
-
Detach the database from SQL Server 2005
-
Upgrade SQL Server 2005 on the PC to SQL Server 2008/2014 or later. Or remove SQL Server 2005 entirely and install SQL Server 2008/2014 or later
-
Attach the database to the upgraded/new SQL Server instance
-
If needed, change the database connection address in Torgsoft
-
Check Z and X report generation in Torgsoft
Operating system limitations (IMPORTANT)
-
SQL Server 2014 cannot be installed on outdated operating systems
(for example, Windows XP, Windows Server 2008 without updates) -
If the OS is outdated:
-
you need to upgrade Windows, or
-
temporarily use SQL Server 2008 as a compromise solution
Technical notes for administrators (rare cases)
After upgrading SQL Server, you may need to install or update the component
SQL Server Native Client 11.0 so that Torgsoft can connect to the database correctly.
If the error did not disappear after migration
For an administrator or technical support:
-
Check the database Compatibility Level in SQL Server Management Studio
-
If the compatibility level remains 90 (SQL Server 2005) — change it to:
-
100 — for SQL Server 2008
-
120 — for SQL Server 2014
An incorrect Compatibility Level can cause errors even after upgrading SQL Server.
Verification: how to confirm the issue is resolved
-
The Z report is generated without errors
-
The X report opens correctly
-
The VALUES message no longer appears
Prevention: how to avoid recurrence
-
Do not use SQL Server 2005 with current versions of Torgsoft
-
Plan SQL Server upgrades together with program updates
-
Consider OS compatibility before upgrading the server
-
Using SQL Server 2005 in 2026 carries additional risks due to the lack of security updates
Summary: decision rule
If a “VALUES” error appears in the Z or X report → the database runs on SQL Server 2005 → you need to upgrade SQL Server (2008 / 2014), taking into account the OS and compatibility level.
-
05.03.2026
Cashier's job description for using Software ECR (pECR) in the Torgsoft system
Cashier's instructions for the pECR at Torgsoft: equipment inspection, fiscalization of sales and returns, offline limits, Z-report
-
29.01.2026
How to check the relevance of the pECR key and replace it in time?
Guide: check QES validity for software pECR, register a new key with the State Tax Service (STS), and update it in Torgsoft to avoid sales downtime
-
05.01.2026
"VALUES" error when generating a Z-report or X-report
«VALUES» error in Torgsoft Z/X reports: incompatibility with SQL Server 2005 and step-by-step SQL upgrade to 2008/2014+









Go back to the previous step