[Spotfire Developer]- Keep getting null reference error when defining inputs for a data function.

 myFunction.Inputs.SetInput(guideAreaParameter, "DocumentProperty(\"" + guideAreaProperty.Name + "\")");

In Visual Studio, I'm using the data functions api. When I run and test this code on spotfire I keep getting an error on this line saying null reference. I have a script that will be taking in inputs. I'm defining inputs over here from the document properties. Basically taking a "guide.area" property value and using that as an input. What possibly is the cause for this null refernce? When I do guideAreaProperty.Value, I do get a valid string back instead of null. Any help would be appreciated!!! :)

(1) Answer

Login