Dynamic List - illegal ID string error

Posted on
Fri Sep 15, 2017 4:13 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Dynamic List - illegal ID string error

I am looking at an interesting bug. :?

If I create a dynamic list valuesDict with a comma included in the text, e.g.:
[(u'virtual camera,|Virtual Camera,|891858447', u'Virtual Camera,')]
I am getting an error i.e.:
Alexa-Hue Bridge Error UI dynamic list function returned illegal ID string (ignoring): virtual camera,|Virtual Camera,|891858447


AFAICS I am not doing anything wrong with this. Is it possible that Indigo is using the embedded comma as a separator?

As it turns out, in this context a comma isn't appropriate but it was supplied by user input.
Obviously I can check for a comma in this case and discard it (or replace with a space). :)

Posted on
Fri Sep 15, 2017 8:14 am
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Dynamic List - illegal ID string error

Yeah, those python dicts get mapped to an internal data structure that has a few additional constraints – they cannot contain commas or semicolons. They confuse some logic in a few places that decide the string is a comma separated list so we had to disallow them.

Image

Posted on
Fri Sep 15, 2017 11:24 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Dynamic List - illegal ID string error

... and it's in the documentation :oops:

Thanks for the clarification. :)

Posted on
Fri Sep 15, 2017 12:02 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Dynamic List - illegal ID string error

True, although I did just add it (after my post above) to another section. 8) It was in one place already but to be more clear I added it to another.

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron