Desktop version

Main > Knowledge Base > Developer resources > Development recommendations > Applied objects > Predefined data: troubleshooting > Developer resources > Development recommendations > Applied objects > Predefined data: troubleshooting > Developer resources > Development recommendations > Applied objects > Predefined data: troubleshooting

Predefined data: troubleshooting

While working with predefined data, you can come across the following issues:

Troubleshooting

It is recommended that you enable recording events of "Information" level to the event log at all times.

Predefined data items are not found

Filter the event log by metadata object whose data is missing and by the following event types:

Events in the list can show why the predefined item is not found.

If the log contains an event of Data.Modify predefined data type, which has an empty string as a predefined data-name, it means that a user or 1C:Enterprise script fragment cleared the predefined data-name, making the item not predefined. To restore the item, return the previous value to the PredefinedDataName property. It is recommended that you correct your configuration in order to prevent this situation in the future (for example, change access rights or modify the script fragment).

If the log contains an event of Data.Delete predefined data type,  it means that predefined data was deleted by a user or from 1C:Enterprise script. To correct this, create the missing predefined item. It is recommended that you correct your configuration in order to avoid the deletion of predefined data that is used in the application algorithms.

If the log contains an event of Data.Set predefined data initialization type where a predefined data initialization flag is set, it means that setting the flag was attempted from 1C:Enterprise script but some (or all) of the predefined items were not created. It is recommended that you correct your configuration (ensure that either all of the predefined data items are created or the missing items are never accessed).

If the log contains an event of Infobase.Predefined data update type that includes the comment "Predefined data update disabled", it means that the predefined data update is disabled at Infobase, node, or metadata object level. In this scenario the platform does not perform the restructuring of predefined data. To identify the source of the issue:

Duplicate predefined data items.

Duplicates can appear only in data load mode (DataExchange.Load set to True). In this scenario the platform does not check whether predefined data items are unique.

If the event log contains records of Data.Add predefined data type with duplicate PredefinedDataName values, it means that predefined data duplicates are created from 1C:Enterprise script, for example, they were loaded during data exchange.

If the event log contains records of Data.Modify predefined data type with duplicate PredefinedDataName values, it means that duplicates of predefined data are created by a user or from 1C:Enterprise script, for example, they were loaded during data exchange or the load mode specified in the item form is incorrect and the user was able to specify a duplicate name.

To correct the issue, first decide which item is the correct one (for example, by checking the references to predefined data items), and then make the other item regular (not predefined) by clearing the PredefinedDataName field. Before deleting the item, check whether a replacement of references to this item with the references to the correct item is required.

Guidelines for working with predefined data

If you do not plan to manage predefined data from 1C:Enterprise script and you assume that it is always in the database, do the following:

Remember that the platform does not create predefined data items in subordinate nodes. Instead, they come from the central node. Thus, when you develop applications that run as distributed Infobases, pay attention to the predefined data update at the first start of the application and ensure that the application does not attempt to access the predefined data when it is not yet loaded from the central node.

Next page: Tips on choosing between a subordinate catalog and a tabular section




© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.