Before opening a new ticket, please verify SureDone status at https://status.suredone.com and also review our helpful articles below.

Start a new topic

Automation Issue ( automation #1084)

Hi, our file is a PIPE separated CSV.

I am using regex , because we have a space in the file name.


I do not do anything special , it should work but... please advise ( automation #1084)


The error I see:


Unexpected token o in JSON at position 1 GraphQL error: Unexpected token o in JSON at position 1 GraphQL error: Unexpected token o in JSON at position 1 GraphQL error: String cannot represent value: { method: "GET", path: "/v3/automations/1084/run", post_params: "", get_params: { debug: "true", diff: "true", notify: "true", email: "info@3odesign.com" }, response: { result: "success", message: "Automation running, please check logs for progress and /private/files/automation/debug for result", id: "1084" } } GraphQL error: Unexpected token o in JSON at position 1 GraphQL error: Unexpected token o in JSON at position 1 GraphQL error: Unexpected token o in JSON at position 1 GraphQL error: Unexpected token o in JSON at position 1 GraphQL error: String cannot represent value: { method: "GET", path: "/v3/automations/1084/run", post_params: "", get_params: { debug: "true", diff: "true", notify: "true", email: "info@3odesign.com" }, response: { result: "success", message: "Automation running, please check logs for progress and /private/files/automation/debug for result", id: "1084" } } GraphQL error: Unexpected token o in JSON at position 1 GraphQL error: Unexpected token o in JSON at position 1 GraphQL error: Unexpected token o in JSON at position 1 GraphQL error: String cannot represent value: { method: "GET", path: "/v3/automations/1084/run", post_params: "", get_params: { debug: "false", diff: "true", notify: "true", email: "info@3odesign.com" }, response: { result: "success", message: "Automation running, please check logs for progress", id: "1084" } } GraphQL error: Unexpected token o in JSON at position 1 GraphQL error: Unexpected token o in JSON at position 1 GraphQL error: Unexpected token o in JSON at position 1 GraphQL error: Unexpected token o in JSON at position 1 GraphQL error: String cannot represent value: { method: "GET", path: "/v3/automations/1084/run", post_params: "", get_params: { debug: "true", diff: "true", notify: "true", email: "info@3odesign.com" }, response: { result: "success", message: "Automation running, please check logs for progress and /private/files/automation/debug for result", id: "1084" } } GraphQL error: Unexpected token o in JSON at position 1 GraphQL error: String cannot represent value: { method: "POST", path: "/v3/automations/custom", post_params: "{\"draft\":true,\"name\":\"OVS Inventory File\",\"vendor\":\"OVS\",\"type\":\"PRODUCTS\",\"action\":\"IMPORT\",\"active\":false,\"schedule\":\"0 0 * * 0\",\"description\":\"King 4WD, Overland Vehicle Systems & Up Down Air.\"}", get_params: {}, response: { id: 1084, results: [Object] } } GraphQL error: Unexpected token o in JSON at position 1




I have so far:




"file_configs":

{


"regex":"/OVS*.csv/",

"delimiter":"|",

"identifier":"guid",

"headers":[

 "mpn",

 "description",

 "quantity",

 "brand"

],


"diff_update": 1,

"diff_fields":["stock"],

"field_map":{

 "stock":"quantity"

},

"field_run":{

"mpn":"mpn",

"brand":"brand"

},


"value_map": {

 "King 4WD": "HZRD",

 "OVS": "HYDZ",

 "UDA": "HKFJ"

},

"field_format":{

 "guid":{

  "combine":{

   "fields":[

    "brand",

    "mpn"

   ],

  "delimiter":""

  }

 }

},


"stock_field":"stock",

"stock_negative":false,

"update":"relist"

}


Hey Erno,

This seems likely to be related to a bug which we fixed on Friday. Could you try this same thing again and let us know if you're still experiencing this issue?

Excellent, I can see this is working now.

Login or Signup to post a comment