Create Things Name error
Hello,
I am trying to create things reading a infotable, and in this infotable each row has a name that is the "Etapa" field and its properties in the others fields.
var tableLength = myInfoTable.rows.length;
for (var x = 0; x < tableLength; x++) {
var params4 = {
name: myInfoTable
.Etapa /* STRING */, description: undefined /* STRING */,
thingTemplateName: NomeDaObra /* THINGTEMPLATENAME */,
tags: undefined /* TAGS */
};
Resources["EntityServices"].CreateThing(params4);
Things[myInfoTable
.Etapa].Enable(); Things[myInfoTable
.Etapa].Restart(); //inicio
Things[myInfoTable
.Etapa].Inicio = myInfoTable .Inicio; //fim previsto
Things[myInfoTable
.Etapa].FimPrevisto = myInfoTable .FimPrevisto; //Porcentagem de Atraso
Things[myInfoTable
.Etapa].PorcentagemDeAtraso = myInfoTable .DifferencePercentual; //Porcentagem Concluída
Things[myInfoTable
.Etapa].PorcentagemConcluida = myInfoTable .Percentage; };
But when I execute the code, I got the following error: Execution error in service script [LocalizationDT CreateDataStructureFromCSV] : Wrapped java.lang.Exception: No name provided in CreateThing Cause: No name provided in CreateThing
The Etapa field is a STRING, but I can't figure out why it isn't recognizing it as the name of my new Thing.
Thank you,
Vinicius.

