Guides

How to fix “Field not found” in a 1C:Enterprise query with AI

Trace a missing order-number field from a query alias to the actual database metadata. Test the change against one known order in BAS or 1C:Enterprise.

Identify the failing expression

Give your BAS Bridge assistant the query text, the platform’s exact error and the configuration name. In this example the report selects Заказ.НомерЗаказа. Find that expression in the query’s field list or filter. If the exception instead comes from a BSL module accessing an object property, start by checking the object’s type at the failing line.

Resolve the alias and identify the number you need

An internal order number can differ from the customer’s purchase order number. Ask the assistant to identify the source behind the alias Заказ, list its available fields and show which one holds the internal number in this database. Request read-only access. If the source is a temporary table, inspect the column names produced by the query that populated it.

Test the replacement on one order

Suppose your sample database contains Документ.ЗаказКлиента and its standard Номер field. For the internal number, try replacing Заказ.НомерЗаказа with Заказ.Номер. Filter on the reference of one known order and compare the result with the number on that document’s form. Your configuration may use different metadata names.

Distinguish a permissions error from an empty result

If the platform denies access, check the database user’s read rights and the permissions for this database in Bridge. If the query succeeds with no rows, check the reference and filters. Update the report after the test returns the expected number.

Ready to connect your database?

Sign in, link an issued key or submit an access request. Download the package after approval.