This message was deleted.
# community-help
s
This message was deleted.
k
Hi Sandip. Please provide a small snippet that reproduces the error you are getting.
s
sure
Copy code
"ts_schema": {
        "name": "candidates",
        "enable_nested_fields": true,
        "fields": [
            {
                "name": "id",
                "type": "string",
                "facet": true,
                "infix": true
            },
            {
                "name": "first_name",
                "type": "string",
                "facet": true,
                "infix": true
            },
            {
                "name": "last_name",
                "optional": true,
                "type": "string",
                "facet": true,
                "infix": true
            },
            {
                "name": "description",
                "optional": true,
                "type": "string",
                "facet": true,
                "infix": true
            },
            {
                "name": "email",
                "optional": true,
                "type": "string",
                "facet": true,
                "infix": true
            },
            {
                "name": "phone",
                "optional": true,
                "type": "string",
                "facet": true,
                "infix": true
            },
            {
                "name": "country_code",
                "optional": true,
                "type": "int32",
                "facet": true
            },
            {
                "name": "extension",
                "optional": true,
                "type": "int32",
                "facet": true
            },
            {
                "name": "source",
                "optional": true,
                "type": "object",
                "facet": true,
                "infix": true
            },
            {
                "name": "custom",
                "optional": true,
                "type": "object",
                "facet": true,
                "infix": true
            },
            {
                "name": "attached_jd",
                "optional": true,
                "type": "string",
                "facet": true,
                "infix": true
            },
            {
                "name": "created_at",
                "optional": true,
                "type": "int64",
                "facet": true,
                "infix": true
            },
            {
                "name": "updated_at",
                "optional": true,
                "type": "int64",
                "facet": true,
                "infix": true
            }
        ]
    },
This is my schema here I have custom field with object type
Copy code
{
  "id": "w20c78ad-df17-4412-b73e-1ca636b21867",
  "first_name": "sandip",
  "last_name": "efwsc",
  "description": "",
  "email": "fwcs@workship.tech",
  "phone": "",
  "country_code": 91,
  "extension": 0,
  "sys_org_id": "e77dbad8-a752-4085-83c2-d8beb1e1ec9a",
  "source": {
    "name": "Tacitbase"
  },
  "custom": {
    "exp": 2
  }
}
this document i want to create, here exp key has 2 (int type value)
Error:
Copy code
[status  400 response  {\"message\" \"Field `custom.exp` must be a string.\"}]"
k
A field can have only one type in the collection. An earlier record must have been indexed as string for that field.