# Could not find function with id list\_to\_tuple

**URL:** <https://community.riskscape.org.nz/t/could-not-find-function-with-id-list-to-tuple/130>\
**Category:** Community\
**Created:** [11 May 2023 02:04 UTC](https://community.riskscape.org.nz/t/could-not-find-function-with-id-list-to-tuple/130 "2023-05-11T02:04:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JPowell](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@JPowell](https://community.riskscape.org.nz/u/JPowell)\
**Post date:** [11 May 2023 02:04 UTC](https://community.riskscape.org.nz/t/could-not-find-function-with-id-list-to-tuple/130/1 "2023-05-11T02:04:24Z")

</div>

I am trying to use the list\_to\_tuple function but riskscape is giving an error that it cannot find it. I do have the beta plugin loaded

```auto
www-data@ip-172-26-1-89:~$ riskscape --version
[WARNING] The 'beta' plugin is enabled. This contains experimental features that may significantly change or be deprecated in future releases.
RiskScape Core Engine v1.2.0
----------------------------
Build time - Fri Jul 29 12:27:23 NZST 2022
Git SHA1 - f406ef1705a1e287867b6ced8325f5d801d42b0b

Plugins:
defaults 1.2.0 nz.org.riskscape.engine.defaults.Plugin
postgis 1.2.0 nz.org.riskscape.postgis.Plugin
beta 1.2.0 nz.org.riskscape.beta.Plugin
wizard 1.2.0 nz.org.riskscape.wizard.WizardPlugin
wizard-cli 1.2.0 nz.org.riskscape.wizard.WizardCliPlugin
jython 1.2.0 nz.org.riskscape.jython.Plugin
cpython 1.2.0 nz.org.riskscape.cpython.CPythonPlugin

System:
Linux 5.15.0-1028-aws
Java 11.0.18 OpenJDK 64-Bit Server VM 11.0.18+10-post-Ubuntu-0ubuntu122.04

```

```auto
There were problems during engine initialization, run riskscape with --show-project-errors for more details
[WARNING] Surplus parameters were given that were ignored: [tankWaterFolder], did you mean one of [RArguments, hazardsCsvFile, tanks_location, scenario_length]?
Failed to validate model for execution
  - Failed to validate 'select({exposure.atoll, exposure.ownership, exposure.Lat_HH, exposure.Long_HH, exposure.geom, exposure.tank_vol, exposure.UtArea_rf, exposure.tank_cond, exposure.HH_tot, hazard, list_to_tuple(consequence.vol_input, 7, 'tank_forecast'), list_to_tuple(consequence.tank_vol, 7, 'tank_vol')}) as event_impact_table' step for execution
    - Failed to validate expression '{exposure.atoll, exposure.ownership, exposure.Lat_HH, exposure.Long_HH, exposure.geom, exposure.tank_vol, exposure.UtArea_rf, exposure.tank_cond, exposure.HH_tot, hazard, list_to_tuple(consequence.vol_input, 7, 'tank_forecast'), list_to_tuple(consequence.tank_vol, 7, 'tank_vol')}' against input type {exposure=>{OBJECTID=>Text, atoll=>Text, ISLAND=>Text, OWNER_NAME=>Text, Lat_HH=>Text, Long_HH=>Text, OCCUPANCY=>Text, UtArea_rf=>Text, tank_vol=>Text, HH_tot=>Text, tank_cond=>Text, ownership=>Text, Sheet=>Text, Consumption=>Text, latitude=>Text, geom=>Point[crs=EPSG:4326], longitude=>Text}, hazard=>List[Nullable[Floating]], consequence=>{vol_input=>List[Nullable[Floating]], tank_vol=>List[Nullable[Floating]]}}
      - Could not find function with id list_to_tuple
      - Could not find function with id list_to_tuple

```

---

<div class="post-metadata">

**Author:** ![JPowell](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@JPowell](https://community.riskscape.org.nz/u/JPowell)\
**Post date:** [11 May 2023 02:09 UTC](https://community.riskscape.org.nz/t/could-not-find-function-with-id-list-to-tuple/130/2 "2023-05-11T02:09:23Z")

</div>

Turns out I was running riskscape under the shiny user not www-data. Adding the plugin line to /home/shiny/.config/riskscape/settings.ini has fixed the issue

---

<div class="post-metadata">

**Author:** ![nickg](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.riskscape.org.nz/nickg/32/4_2.png) [@nickg](https://community.riskscape.org.nz/u/nickg)\
**Post date:** [11 May 2023 21:19 UTC](https://community.riskscape.org.nz/t/could-not-find-function-with-id-list-to-tuple/130/3 "2023-05-11T21:19:00Z")

</div>

Glad you were able to solve that yourself, John. You are running a old-ish version there.
