# DotSquares Error Code

**URL:** <https://community.hubspot.com/t/dotsquares-error-code/61460>\
**Category:** CMS Development\
**Created:** [July 21, 2022, 4:47pm UTC](https://community.hubspot.com/t/dotsquares-error-code/61460 "2022-07-21T16:47:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MVillarreal43](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@MVillarreal43](https://community.hubspot.com/u/MVillarreal43)\
**Post date:** [July 21, 2022, 4:47pm UTC](https://community.hubspot.com/t/dotsquares-error-code/61460/1 "2022-07-21T16:47:08Z")

</div>

Hello,

When attempting to create a new custom object, I receive this error code. Does anyone know how to fix this?

Error Code

**Invalid input JSON on line 1, column 1274: Cannot build OptionInput, some of required attributes are not set [value]**

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [July 22, 2022, 6:31am UTC](https://community.hubspot.com/t/dotsquares-error-code/61460/2 "2022-07-22T06:31:00Z")

</div>

Hi @MVillarreal43,

sounds like your “default”-value is not set.

If you set an option to required:true you need to type in something in “default”.

```lia-code-sample
{
"name": "option_1",
"label": "Option 1",
"required": false, <-- if this is set to true
"locked": false,
"display": "select",
"inline_help_text": "",
"help_text": "",
"choices": [
["option1", "Option 1"],
["option1", "Option 2"]
],
"type": "choice",
"placeholder": "",
"default": "option1" <-- this a) can't be empty and b) has to be one of your selectable values
}

```

Could you please post the affected JSON part for better support?

best,

Anton
