# Importing table through migration API always throwing validation error

**URL:** https://community.prismic.io/t/importing-table-through-migration-api-always-throwing-validation-error/20223
**Category:** Developing with Prismic
**Tags:** custom-types-api
**Created:** [July 10, 2026, 4:34am UTC](https://community.prismic.io/t/importing-table-through-migration-api-always-throwing-validation-error/20223 "2026-07-10T04:34:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![theplaygroundmedia](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/theplaygroundmedia/32/6333_2.png) [@theplaygroundmedia](https://community.prismic.io/u/theplaygroundmedia)
#### Post date: [July 10, 2026, 4:34am UTC](https://community.prismic.io/t/importing-table-through-migration-api-always-throwing-validation-error/20223/1 "2026-07-10T04:34:22Z")

</div>

## Describe your question/issue in detail

When reporting bugs, we recommend you do a recording of your issue with the Jam Chrome plugin:

> **[Jam - Chrome Web Store](https://chromewebstore.google.com/detail/jam/iohjgamcilhbgmhbnllfolmkmmekfmci)**
>
> Jam is the smart screen recorder for software teams.

This will give us lots of dev information to help debug your issue. You can remove it once you're done 🙂

cannot get table to import properly into prismic via Migration Api

```auto
{

  "error": {

"message": "Validation failed",

"details": [

      {

"property": "data.sections.1",

"value": {

"paragraph": [

            {

"type": "paragraph",

"text": "Budgets are for family of 4, 2 nights. Hotel budgets use mid-range options; camping where available.",

"spans": [{ "type": "em", "start": 0, "end": 100 }],

"direction": "ltr"

            }

          ],

"heading": "At a Glance: All 7 Destinations",

"blockquote": [],

"image": {},

"table": {

"type": "table",

"value": [

              [

"Destination",

"Distance",

"Drive",

"Budget (Hotel)",

"Budget (Camping)",

"Best For"

              ],

              [

"Prescott",

"99 mi",

"1.5-2h",

"$398-448",

"$260-310",

"Closest, history, hiking"

              ],

              [

"Lake Havasu",

"200 mi",

"3-3.5h",

"$440-490",

"$225-275",

"Beach, water sports"

              ],

              [

"White Mountains",

"190 mi",

"3.5-4h",

"$440-490",

"$210-260",

"Summer cool-down"

              ],

              [

"Tucson",

"113 mi",

"1.5-2h",

"$492-542",

"$350-400",

"Desert museums, culture"

              ],

              [

"Flagstaff",

"145 mi",

"2.5-3h",

"$558-608",

"$300-350",

"Mountains, heat escape"

              ],

              [

"Williams",

"165 mi",

"2.5-3h",

"$583-633",

"N/A",

"Grand Canyon Railway"

              ],

              [

"Sedona",

"118 mi",

"2-2.5h",

"$806-856 standard, $310-360 budget",

"$250-300",

"Red rocks, hiking"

              ]

            ]

          },

"includeDividers": true

        },

"error": "The value must be an object"

      }

    ]

  }

}

```

### Impacted feature

Migration API

### What steps have you taken to resolve this issue already?

try multiple schemas to try and import tables as

### Errors

### Your Role

### Hosting provider

### Package.json file

### Steps to reproduce

import a document containing a table

---

<div class="post-metadata">

### Author: ![theplaygroundmedia](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/theplaygroundmedia/32/6333_2.png) [@theplaygroundmedia](https://community.prismic.io/u/theplaygroundmedia)
#### Post date: [July 10, 2026, 4:33pm UTC](https://community.prismic.io/t/importing-table-through-migration-api-always-throwing-validation-error/20223/2 "2026-07-10T16:33:14Z")

</div>

I resolved issue.

Shape of table should be similar to this:

`{"head":{"rows":[{"key":"db400c55-a6f9-40ce-9b01-f9252a849710","cells":[{"key":"148a0585-f985-4f53-b716-9a014b2f970e","type":"header","content":[{"type":"paragraph","text":"Destination","spans":``,"direction":"ltr"}]}]}]},"body":{"rows":[{"key":"95cfad7a-d406-4e2f-bc60-55d25441dc0e","cells":[{"key":"d3accd11-41bc-454d-96e1-99e76cb9b146","type":"data","content":[{"type":"paragraph","text":"` **`Prescott`** `","spans":``,"direction":"ltr"}]}]}]}}`
