Siemens Industry Online Support
Siemens AG
Entry type: FAQ, Entry ID: 2021437, Entry date: 03/29/2000

Generating error - Error Create Variables for Connections

  • Entry
  • Associated product(s)

When generating, what is the cause of the error: Error Create Variables for Connections?

An invalid Registry entry for the setting of the substitute character strategy of the AS-OS Engineering can lead to an error when generating with ProAgent. In this case the message "Error Creating Variables for Connections" is entered in the ProAgent diagnostics file PaGen.log. You can set the Registry entry back to a valid value if you call the AS-OS Engineering from STEP7 and start to transfer AS-OS connection data. For this, in STEP7 you call the menu Tools -> AS-OS Connection Data -> Transfer. Experienced users can also change the Registry entry manually.

You can check the Registry entry in the following path:

[HKEY_CURRENT_USER\Software\Siemens\STEP7\2.0\Applications\AS-OS Engineering\Settings]

If "CharacterSet" has the value 1, the character "’\" and the blank are substituted by "$". This substitute character strategy should be used for new projects.
If "CharacterSet" has the value 0, the character "’\+-*/" and the blank are substituted by "$".

This Registry setting is user-specific. If the user changes, they must be made again.

In general, no warranty can be given for direct changes in the registry database, because this is entirely the responsibility of the user. In any case it is recommended to make a backup of the registry before proceeding as described below. Furthermore, these settings are computer-specific. This means that when copying the project to another computer, the settings have to be made again.

Security information
In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about industrial security, please visit