# Defining constant variables from excel using function\_takes too much time for other nodes using the variables

**URL:** https://forum.dynamobim.com/t/defining-constant-variables-from-excel-using-function-takes-too-much-time-for-other-nodes-using-the-variables/29022
**Category:** Uncategorized
**Created:** [November 28, 2018, 12:36pm UTC](https://forum.dynamobim.com/t/defining-constant-variables-from-excel-using-function-takes-too-much-time-for-other-nodes-using-the-variables/29022 "2018-11-28T12:36:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![petter.navik](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/petter.navik/32/61337_2.png) [@petter.navik](https://forum.dynamobim.com/u/petter.navik)
#### Post date: [November 28, 2018, 12:36pm UTC](https://forum.dynamobim.com/t/defining-constant-variables-from-excel-using-function-takes-too-much-time-for-other-nodes-using-the-variables/29022/1 "2018-11-28T12:36:53Z")

</div>

Hi,

I have tried different methods to define constant variables in dynamo, and tried I had it when I wrote a function importing the variables from an excel-file, and then saving the values into what dynamo calls methods. My problem now is that it seems like the script goes through even though I get a lot of errors in the code blocks using the variables…

 ![Dynamo_def_constant_variables](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/0/f0fe234e45c4544347187e6b492362abbf8c6ca9.png)
