Here is some code that throws this error. Why is it happening? I don't have a clue.
//Fan Statuses vs. Occupancy graphs
For( j = 1, j <= N Items( var ), j++, //Outer loop to cycle within list of variables
v1 = Char( "Time " || var[j] || "_FanStatus" );
v2 = Char( var[j] || "_FanStatus" );
obj = Graph Builder(
Size( 1400, 800 ),
Variables(
X( Column( v1 ) ),
X( :Time Final, Position( 1 ) ),
Y( Column( v2 ) ),
Color( :Occupancy )
),
Elements(
Line( X( 1 ), Y, Color( 0 ), Legend( 2 ), Connection( "Step" ) ),
Heatmap( X( 2 ), Legend( 3 ) )
),
SendToReport(
Dispatch( {"Line"}, "", OutlineBox, {Close( 0 )} ),
Dispatch( {"Heatmap"}, "", OutlineBox, {Close( 0 )} ),
Dispatch(
{},
v1,
ScaleBox,
{Min( :Time Final[1] ), Max( :Time Final[N Rows( :Time Final )] ), Interval( "Minute" ),
Inc( 15 ), Minor Ticks( 0 ), Label Row( Label Orientation( "Angled" ) )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
3,
Properties( 0, {Transparency( 0.5 )}, Item ID( "Occupied", 1 ) ),
Properties( 1, {Fill Color( 4 ), Transparency( 0.5 )}, Item ID( "OptStart", 1 ) ),
Properties( 2, {Fill Color( 2 ), Transparency( 0 )}, Item ID( "Unoccupied", 1 ) )
)}
),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "Raney " || v2 || " vs. Occ" )} )
)
);
obj << Journal << Close Window;
);