AnsweredAssumed Answered

Error 1060

Question asked by endlessdsire on Aug 24, 2016
Latest reply on Aug 24, 2016 by endlessdsire

Hello, i have the following script and im getting an error 1060 that goes like this:

{"addResults":[{"success":false,"error":{"code":1060,"description":"Rowbuffer creation failed."}}],"updateResults":[],"deleteResults":[]} error

 

What im doing wrong?

 

My script to add a new feature using ajax.

function agregarFact(f, callback){aaa

var myAttributes = {
Rut : "1231556165-5",
Nombre : "a",
Apellido : "b",
Telefono : "84031822",
Email: "aa@aa.CL",
Tipo_cliente : "INDUSTRIAL",
Tipo_contribuyente : "AUTOCONSUMO",
Rotulo : "131551077",
Tramo : "CD35-CD35-CD35",
Empalme : "SUBTERRANEO",
Fase : "TRIFASICO",
Potencia : 6.0,
Capacidad_empalme : 6.6,
Capacidad_interruptor : 10,
Tiempo_empalme : "DEFINITIVO",
Tipo_empalme: "BT",
Cantidad_empalme : 3,
ID_Direccion : 4855875,
Direccion: "AVENIDA ARGENTINA 1",
Potencia_calculada : 18,
DistRotuloMedidor: 15,
DistDireccionMedidor : 22,
Comuna : "VALPARAISO",
Alimentador: "BARON",
Idnodo : 131551077,
Estado_tramite: "NUEVA",
Tipo_factibilidad: "FACTIBILIDAD ASISTIDA",
Tipo_mejora : "",
Zona : "ZONA VALPARAISO",
Origen_factibilidad : "OFICINA COMERCIAL",
Sed :0,
PotenciaDispSed :-325.27305331396866
}
console.log(myAttributes)
let geox = f.factigisGeoCliente.x;
let geoy= f.factigisGeoCliente.y;
const data = {
f: 'json',
adds: JSON.stringify([{ attributes: myAttributes, geometry: {"x":geox , "y": geoy}}]),
token: token.read()
};
jQuery.ajax({
method: 'POST',
url: "http://myserver/arcgis/rest/services/FACTIBILIDAD/FACTIGIS/FeatureServer/0/applyEdits",
dataType:'html',
data: data
}).done(d =>{
if(d.includes("error")){
console.log(d,"error");
return callback(false);
}
if(d.includes("success")){
console.log(d,"adds");
return callback(true);
}
return callback(false)
})
.fail(f=>{
console.log(f,"no pase");
return callback(false)
});

}

Outcomes