Script transform giving ScriptEval errors with seemingly valid dictionary manipulation

You can’t modify the value passed in.

	newValues = []
	for x in value:
		newValue = {}
		for k, v in x.iteritems():
			if k == "source":
				newValue[k] = v.split(':')[-1]
			else:
				newValue[k] = v
		
		newValues.append(newValue)
	
	return newValues
3 Likes