# \[TileDB::Task\] Error: Caught std::exception: vector too long (on Azure array)

**URL:** <https://forum.tiledb.com/t/tiledb-task-error-caught-std-vector-too-long-on-azure-array/658>\
**Category:** Uncategorized\
**Created:** [February 9, 2024, 6:29am UTC](https://forum.tiledb.com/t/tiledb-task-error-caught-std-vector-too-long-on-azure-array/658 "2024-02-09T06:29:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![slbteam08](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/slbteam08/32/316_2.png) [@slbteam08](https://forum.tiledb.com/u/slbteam08)\
**Post date:** [February 9, 2024, 6:30am UTC](https://forum.tiledb.com/t/tiledb-task-error-caught-std-vector-too-long-on-azure-array/658/1 "2024-02-09T06:30:00Z")

</div>

I am hitting a vector too long error when calling tiledb.consolidate() of TileDB-Py on an array hosted in Azure Blob Storage. There were no errors when I do the same on an identical array located on local hard disk. I have tried different config values of sm.consolidate.\*, sm.memory.\* and vfs.azure.\*, but no luck.

```auto
    tiledb.consolidate(array_uri, ctx=ctx)
  File "tiledb\libtiledb.pyx", line 3396, in tiledb.libtiledb.consolidate
  File "tiledb\libtiledb.pyx", line 3483, in tiledb.libtiledb._consolidate_timestamp
  File "tiledb\libtiledb.pyx", line 350, in tiledb.libtiledb._raise_ctx_err
  File "tiledb\libtiledb.pyx", line 335, in tiledb.libtiledb._raise_tiledb_error
tiledb.cc.TileDBError: [TileDB::Task] Error: Caught std::exception: vector too long

```

[Update] I tried to rebuild the array from scratch and try to run consolidate with steps=1 repeatedly, until I hit errors again. This time I am getting

```auto
[TileDB::Task] Error: Caught std::exception: bad allocation

```

Could anyone give me some hints?

---

<div class="post-metadata">

**Author:** ![ihnorton](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.tiledb.com/ihnorton/32/23_2.png) [@ihnorton](https://forum.tiledb.com/u/ihnorton)\
**Post date:** [February 9, 2024, 2:10pm UTC](https://forum.tiledb.com/t/tiledb-task-error-caught-std-vector-too-long-on-azure-array/658/2 "2024-02-09T14:10:02Z")

</div>

Hi @slbteam08,

Thanks for getting in touch. Would it be possible to share either:

1. a reduced test case (example code demonstrating the issue)  
or
2. Details of your Array schema (sparse/dense, dimensions, tiling, number of attributes) and the write pattern you encounter this with - number of writes, size of each write (cells, or number of bytes for var-size data)
