Runtime error 3021: No current record

Which products are affected?
ESP-HMI1-P (HMI Designer Version 1.3 and higher)

What happens?
Via the menu item Page>Page information the dynamic fields of one page can be edited or deleted.

When a field has been selected from the current page and <Delete>in the Cross reference fields dialog has been pressed, the following error message is indicated:
Runtime error '3021': No current record.

After confirmation of the error message the Project Editor of the HMI Designer is closed. If the Project Editor is re-opened the following message appears:
WARNING: Previous editing of project has encountered some problem: Press OK to try to recover the project.

After confirmation with <OK> the following message is indicated:
WARNING: Recover failed and some data may be lost .

The Project Editor is opened. All modifications, which have been stored since the last update of the project, were deleted.

When does the problem occur?
Via the Pages project component a new page on which a dynamic field is situated (e. g. the Figure field) is created in the HMI project. If this field is tried to be deleted via the Cross reference fields dialog (menu item: Page>Page information), the HMI Designer generally ignores that. If, however, this page is the first one of the HMI project, the runtime error 3021 described above will appear.

Fields can only be deleted via the Cross reference fields dialog if the page has been closed once.

Possible diagnostics?
None.

Short-term measures / recommendations?
Before the Cross reference fields dialog is used make sure that all pages in the HMI Project have been closed once at least. Alternatively, close all pages of the project and re-open the page to be edited.

Evaluation:
Due to the runtime error modifications which were already executed in the HMI Project are deleted. In practice, the Cross reference fields dialog is used rather seldom. The runtime error only occurs if the first page is created. Thus it appears when the project creation is started.

URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/200504653/1/
Kontaktformular