JavaScript CreateThing - Thing is not running
Hi,
I encounter problem when implementing service for creating Things based on my template.
Part of the script with changed strings:
var params = {
thingTemplateName: 'XXXTemplate' /* THINGTEMPLATENAME /,</div><div> description: 'description' / STRING /,</div><div> name: 'xxx-11' / STRING */
};
// no return
Resources["EntityServices"].CreateThing(params);
// no return
Things[newNodeName].EnableThing();
When I called another service via REST API I get an error:
Wrapped com.thingworx.common.exceptions.InvalidRequestException: Thing /xxx-11 is not running Cause: Thing /xxx-11 is not running
When I open this newly created Thing in Composer and save without changing anything - it works.
When I go to .../Thingworx/Things/xxx-11 it also exists. Webpage says it is enabled.
Where is the problem? How to run this new Thing?

