# I get error message when I import 41 variables into a ntuple

**URL:** <https://root-forum.cern.ch/t/i-get-error-message-when-i-import-41-variables-into-a-ntuple/46270>\
**Category:** TMVA\
**Created:** [August 11, 2021, 5:08am UTC](https://root-forum.cern.ch/t/i-get-error-message-when-i-import-41-variables-into-a-ntuple/46270 "2021-08-11T05:08:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![melodynk](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/ba9def/32.png) [@melodynk](https://root-forum.cern.ch/u/melodynk)\
**Post date:** [August 11, 2021, 5:08am UTC](https://root-forum.cern.ch/t/i-get-error-message-when-i-import-41-variables-into-a-ntuple/46270/1 "2021-08-11T05:08:26Z")

</div>

Hi all,  
I would like to import 41 variables into ntuple.But the ntuple class could only accept 15 variables（as shown in the picture below）. I wonder how could I solve this problem?Thanks so much .

 ![b399e19fd3344939f4adba240b171eb](https://root-forum.cern.ch/uploads/default/original/3X/4/6/46d0cc812390ffe7c280e4ba23327f5cc371d861.jpeg)

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [August 11, 2021, 6:30am UTC](https://root-forum.cern.ch/t/i-get-error-message-when-i-import-41-variables-into-a-ntuple/46270/2 "2021-08-11T06:30:13Z")

</div>

When you fill listing each element, you can only include up to 15, see the [Documentation](https://root.cern/doc/master/classTNtuple.html) (the Fill method with x0 to x14). Maybe you can use `Fill (const Float_t *x)`, i.e. one array of 41 elements. I don’t know if there is a limit to the number of elements (apparently not), but maybe you can consider using a TTree instead of TNtuple.

---

<div class="post-metadata">

**Author:** ![melodynk](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/ba9def/32.png) [@melodynk](https://root-forum.cern.ch/u/melodynk)\
**Post date:** [August 11, 2021, 8:35am UTC](https://root-forum.cern.ch/t/i-get-error-message-when-i-import-41-variables-into-a-ntuple/46270/3 "2021-08-11T08:35:46Z")

</div>

TTree works！Thanks so much!!!
