Error message Name must be supplied when generating / saving Xbuilder project to Vista

Issue

-Can't save Xbuilder project to Vista
-Error message: The project contains errors and was not saved to Vista
-Error message: Name must be supplied, Error building "name"

Product Line

TAC Vista

Environment

TAC Xbuilder

TAC Vista

Cause

If you in Xbuilder add a device that uses a template (for example Modbus) and then give that device the same name as the one in the template itself you will get an error when trying to save it to Vista (saving the project standalone works fine).

Resolution

Change the device name in Xbuilder or in the device template and you can save it to Vista.