4.4. Restarting 1C:Enterprise
In some cases, the client application cannot get access to the infobase. 1C:Enterprise notifies the user of it and prompts to retry the infobase connection in 60 seconds. It happens when:
- You try to start Designer when it is already started for this infobase.
- Exclusive mode is enabled for the infobase.
- Versions of 1C:Enterprise client and server do not match.
- 1C:Enterprise server is not found.
- Database server is not found.
- Connection to the infobase is prohibited:
- Session start is locked using the client application startup command line, the cluster console, or the SetSessionLock() 1C:Enterprise language method.
- External session management service.
If you cannot connect to the infobase, a dialog box with related information is displayed, and the user is prompted to retry starting 1C:Enterprise in 1 minute or close the 1C:Enterprise launcher.
Fig. 23. Waiting for restart
In this dialog box, the situation description can be displayed both as a simple text and as a formatted text. 1C:Enterprise attempts to display the situation description as a formatted string when:
- Exclusive mode is enabled for the infobase. The situation description is displayed as a formatted string if the message text is set to a value of the FormattedString type when you set exclusive mode.
- Session start is locked using the SetSessionLock() method. The situation description is displayed as a formatted string if the SessionsLock.Message parameter is set to a value of the FormattedString type. For more information about session start lock, see article Manually, for all.
- Session start is forbidden by the external session management service. The situation description is displayed as a formatted string if the external session management service returns the ErrorDescription parameter. The parameter value is received from the value of the FormattedString type using the XDTOSerializer.XMLString() expression.
The text message is considered to be a formatted string if the following expression is executed: String(XDTOSerializer.XMLValue(Type("FormattedString"), Text)) <> Text, where Text is a string passed by third party applications (the external session management service, the cluster console, the rac utility, and so on).
If you load the infobase from a DT file in Designer, you will be prompted to restart Designer after the infobase is loaded.
When a critical error occurs in 1C:Enterprise mode, you are prompted to restart the client application with the same parameters as used by the client application that is abnormally terminated.