# Error changing Dataset using Part in V10

**URL:** <https://community.wolfram.com/t/error-changing-dataset-using-part-in-v10/2590>\
**Category:** Questions\
**Created:** [July 10, 2014, 2:30am UTC](https://community.wolfram.com/t/error-changing-dataset-using-part-in-v10/2590 "2014-07-10T02:30:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![murta](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/murta/32/7023_2.png) [@murta](https://community.wolfram.com/u/murta)\
**Post date:** [July 10, 2014, 2:30am UTC](https://community.wolfram.com/t/error-changing-dataset-using-part-in-v10/2590/1 "2014-07-10T02:30:46Z")

</div>

In the new guide [Computation With Structured Datasets](http://reference.wolfram.com/language/guide/ComputationWithStructuredDatasets.html) we can find this part, on how to change a [Dataset](http://reference.wolfram.com/language/ref/Dataset.html)

![CapturadeTela2014-07-09às22.38.53.png](https://global.discourse-cdn.com/wolfram/original/2X/8/84a1cbd1e45e35a7cd8e9692ecfb0b0d4053b31a.png)

But if we create a Dataset like:

```
ds=Dataset[{<|"a"->1,"b"->"x"|>,<|"a"->2,"b"->"y"|>,<|"a"->6,"b"->"z"|>}];

```

And then make:

```
ds[[1, 1]] = 2

```

Or, closer to my real case test:

```
ds[[All, "a"]] = Accumulate@Normal@ds[[All, "a"]]

```

We get an error:

> ```
> "Part specification ds[[1,1]] is longer than depth of object"
> 
> "Part specification ds[[All,1]] is longer than depth of object. "
> 
> ```

Is this a Bug?

Setting is not working on Dataset as stated by documentation.

Without this operation, it’s very difficult to use Dataset in real world applications.

[Related post in StackExchange](http://mathematica.stackexchange.com/questions/52414)

---

<div class="post-metadata">

**Author:** ![dreiss](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dreiss/32/29094_2.png) [@dreiss](https://community.wolfram.com/u/dreiss)\
**Post date:** [July 10, 2014, 2:12pm UTC](https://community.wolfram.com/t/error-changing-dataset-using-part-in-v10/2590/2 "2014-07-10T14:12:10Z")

</div>

Yes, that appears not to work. Although accessing parts by using things like **ds[[All, “a”]]** does work as expected.

---

<div class="post-metadata">

**Author:** ![brucem](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/brucem/32/26319_2.png) [@brucem](https://community.wolfram.com/u/brucem)\
**Post date:** [July 10, 2014, 6:01pm UTC](https://community.wolfram.com/t/error-changing-dataset-using-part-in-v10/2590/3 "2014-07-10T18:01:16Z")

</div>

Documentation glitch. Thank you for pointing it out.

I reported it to documentation staff.

Sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![dapellegrino](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dapellegrino/32/36738_2.png) [@dapellegrino](https://community.wolfram.com/u/dapellegrino)\
**Post date:** [December 19, 2014, 4:28pm UTC](https://community.wolfram.com/t/error-changing-dataset-using-part-in-v10/2590/4 "2014-12-19T16:28:53Z")

</div>

Can parts of Dataset be assigned new values as of version 10.0.2.0? If so, what is the syntax?

---

<div class="post-metadata">

**Author:** ![murta](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/murta/32/7023_2.png) [@murta](https://community.wolfram.com/u/murta)\
**Post date:** [December 19, 2014, 6:05pm UTC](https://community.wolfram.com/t/error-changing-dataset-using-part-in-v10/2590/5 "2014-12-19T18:05:10Z")

</div>

No upgrade for V10.0.2.0.

---

<div class="post-metadata">

**Author:** ![murta](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/murta/32/7023_2.png) [@murta](https://community.wolfram.com/u/murta)\
**Post date:** [October 7, 2021, 3:26am UTC](https://community.wolfram.com/t/error-changing-dataset-using-part-in-v10/2590/6 "2021-10-07T03:26:11Z")

</div>

7 years have passed! I still miss this functionality in Dataset.  
[https://mathematica.stackexchange.com/q/52414/2266](https://mathematica.stackexchange.com/q/52414/2266)
