Please check the configuration of your Codesys project. There are two options under Project / Options / Symbol Configuration, "Create Symbols" and "Create XML Symbol Table". Both options must be active. Verified for a Codesys 2.3 system (ELAU C400). Translation from German, actual labels of menu items or message texts may differ.