AnsweredAssumed Answered

Error on Update at SYNCHRONIZE REPLICA

Question asked by mtw.nda@hotmail.com on Jul 17, 2015
Latest reply on Jul 30, 2015 by WCrick-esristaff

Hello guys, i'm having a trouble on sending a update of a feature that i have created (the feature does not exist in SDE.DEFAULT).

 

I can create but can not update.

 

Here's my request edit  to add.

[

   {

      "features":{

         "adds":[

{

               "attributes":{

                  "SISTEMA_CULTIVO":1,

                  "IDADE":0.0,

                  "ID_TALHAO":"test",

                  "EMPRESA":null,

                  "NOME_PROPRIETARIO":null,

                  "MACADAME":1,

                  "ANO_VENCIMENTO":0,

                  "AREA_HA":0.0,

                  "ACEITA_MUDANCA_CONTRATO":1,

                  "COD_POL":null,

                  "IDADE01":0,

                  "IDADE02":0,

                  "TIPO_LAUDO":1,

                  "LETRA_CONTRATO":null,

                  "RECURSOS_PROPRIOS":1,

                  "AREA_PROJETO":0.0,

                  "PODA":null,

                  "INTERVENCAO":1,

                  "STATUS_Cor":null,

                  "SINISTRO_AFETOU":0.0,

                  "TELEFONE":0.0,

                  "DATA_CONTRATO":"1437091200",

                  "GENERO02":1,

                  "GENERO01":1,

                  "VISITA_APREMAV":1,

                  "ANO_P":0.0,

                  "TELEFONE02":0.0,

                  "GlobalID":"{FF33A294-4BA0-4E46-A0EB-5E8BDD79B400}",

                  "LOCALIDADE":null,

                  "NUMERO_CONTRATO":0,

                  "ACAO":1,

                  "CLASS_NAME":"Cunninghamia",

                  "DATA_LAUDO":"1437091200",

                  "ACESSO":1,

                  "RECONHECE_DIVIDA":1,

                  "POTENCIAL_PRODUTIVO":1,

                  "OBSERVACAO":null,

                  "FORMA_ENTREGA":1,

                  "MUNICIPIO":null,

                  "MUNICIPIO01":1,

                  "ESPACAMENTO01":1,

                  "ESPACAMENTO02":1,

                  "ARRENDAMENTO":1,

                  "SINISTRO":1,

                  "STATUS_PLANTIO":1,

                  "RESPONSAVEL_LAUDO":1,

                  "NOME_PROPRIEDADE":null,

                  "CHAVE":0,

                  "PONTO_REFERENCIA":null,

                  "CELULAR01":0.0,

                  "MODALIDADE_FOMENTO":1,

                  "CELULAR02":0.0,

                  "RAIO":null,

                  "ESPECIE02":1,

                  "CROQUI":1,

                  "ESPECIE01":1,

                  "DESBASTE":null,

                  "FAZENDA":null

               }

            }

 

         ],

         "deleteIds":[

 

 

         ],

         "updates":[

         

         ]

      },

      "id":0

   }

]

 

and my response

{ "transportType": "esriTransportTypeEmbedded", 
"replicaID": "A14A9A7E-6AE4-4D10-BC4D-F61D2DBF612D",
"replicaServerGen": 3,
"responseType": "esriReplicaResponseTypeEdits",
"edits": [{ "id": 0, "features": { "adds": [], "updates": [], "deleteIds": [], "addResults": [] } }] }

(The feature now is on the server's replica)

 

 

 

 

and my request to update


[

{

      "features":{

         "adds":[

         ],

         "deleteIds":[

         ],

         "updates":[

            {

               "attributes":{

                  "SISTEMA_CULTIVO":1,

                  "IDADE":0.0,

                  "ID_TALHAO":"555test",

                  "EMPRESA":null,

                  "NOME_PROPRIETARIO":null,

                  "MACADAME":1,

                  "ANO_VENCIMENTO":0,

                  "AREA_HA":0.0,

                  "ACEITA_MUDANCA_CONTRATO":1,

                  "COD_POL":null,

                  "IDADE01":0,

                  "IDADE02":0,

                  "TIPO_LAUDO":1,

                  "LETRA_CONTRATO":null,

                  "RECURSOS_PROPRIOS":1,

                  "AREA_PROJETO":0.0,

                  "PODA":null,

                  "INTERVENCAO":1,

                  "STATUS_Cor":null,

                  "SINISTRO_AFETOU":0.0,

                  "TELEFONE":0.0,

                  "DATA_CONTRATO":"1437091200",

                  "GENERO02":1,

                  "GENERO01":1,

                  "VISITA_APREMAV":1,

                  "ANO_P":0.0,

                  "TELEFONE02":0.0,

                  "GlobalID":"{FF33A294-4BA0-4E46-A0EB-5E8BDD79B400}",

                  "LOCALIDADE":null,

                  "NUMERO_CONTRATO":0,

                  "ACAO":1,

                  "CLASS_NAME":"Cunninghamia",

                  "DATA_LAUDO":"1437091200",

                  "ACESSO":1,

                  "RECONHECE_DIVIDA":1,

                  "POTENCIAL_PRODUTIVO":1,

                  "OBSERVACAO":null,

                  "FORMA_ENTREGA":1,

                  "MUNICIPIO":null,

                  "MUNICIPIO01":1,

                  "ESPACAMENTO01":1,

                  "ESPACAMENTO02":1,

                  "ARRENDAMENTO":1,

                  "SINISTRO":1,

                  "STATUS_PLANTIO":1,

                  "RESPONSAVEL_LAUDO":1,

                  "NOME_PROPRIEDADE":null,

                  "CHAVE":0,

                  "PONTO_REFERENCIA":null,

                  "CELULAR01":0.0,

                  "MODALIDADE_FOMENTO":1,

                  "CELULAR02":0.0,

                  "RAIO":null,

                  "ESPECIE02":1,

                  "CROQUI":1,

                  "ESPECIE01":1,

                  "DESBASTE":null,

                  "FAZENDA":null

               }

            }

         ]

      },

      "id":0

   }

]

 


And my Response :

 

 

 

{ "replicaID": "{A14A9A7E-6AE4-4D10-BC4D-F61D2DBF612D}",
"transportType": "esriTransportTypeEmbedded",
"responseType": "esriReplicaResponseTypeNoEdits",
"replicaServerGen": 4, "edits": [] }

 

 

 

 

Others values

Replica ID:
Transport Type:Embbeded
Close Replica:false
Return Ids For Adds:true

 

Return Attachments Data By Url:false
Sync Asynchronously:false
Sync Direction:upload
Sync Layers:empty
Edits Upload Id:empty
Edits Upload Format:json
Data Format:json
Rollback on Failure:true
Format:json



Can anyone Help-me ??

 

Mensagem editada por: Matheus Carvalho

Outcomes