Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: Tim MeagherHey,
There were a couple of problems with your python code in the LAE Properties node.
First, the lines:
a = self.properties.getArray(v)
outRec["Value"] = a[0]
Were causing problems if the returned array "a" was empty.
Second, the following line was incorrect:
outRec["Value"] = outRec["Value"] +","+ vv
I think this was just a typo, and you meant to use "v" not "vv".
So that block of code should become:
if self.properties.isArray(v) == True:
a = self.properties.getArray(v)
if (len(a) > 0):
outRec["Value"] = a[0]
for v in a[1:]:
outRec["Value"] = outRec["Value"] +","+ v