Data-Shapes Multi Input UI - Unhandled Exception has occurred

Hi All,

I am currently trying to utilize the Data-Shapes package to improve a scrips UI. I have followed the guide on the data-shapes website, however, once trying to run it i come across this error shown below. The script worked before, i changed the UI. So its got to be something I’ve done wrong with the multi input portion.

If anyone could help that would be great,

Thanks, Harry

image

Hi Harrison,

I’ll take a guess at this. An invalid literal could mean an unintended space in one of the values within one of the lists being input into one of the ports.

One thing I’m curious of are the inputs to the Width and LabelWidth. If you hover your mouse over the input ports, you’ll see default values. It looks like there are String nodes with empty values plugged into the ports. These values want to be numbers rather than strings. If you disconnect both Width and LabelWidth nodes from the inputs, the Data-Shapes node should use the minimum values to build the dialog box.

The other part I’m curious of is the list of Levels you’re using for the Keys. I’ll usually get the Level Names and Elevations as Strings, clean the lists up a little (and round off the Level Elevations), and use the combined list of Strings for the Keys, rather than the list Elements themselves.

I’d first try disconnecting the Width and LabelWidth inputs. If there is still an invalid literal, you can have a closer look at the values in one of the lists in the Inputs, and see if there is an unintended space where there shouldn’t be.

Good luck with it!

2 Likes