Orgchart - Invalid argument - Large Array

21 views
Skip to first unread message

Andrew Hobson

unread,
Jun 1, 2018, 3:50:56 PM6/1/18
to Google Visualization API
Hi All,
I am getting an "Invalid argument" message for an OrgChart render. In this case its different from those that work in that this has over 900 elements in the array and the array value key has "&" character. Could any tell me if the problem is likely to be size of array or the "&" characters? Also, I assume the size of the v: key could be an issue?

Appreciate any help, sorry if this is Noob question and has been covered somewhere.

Andrew

Auto Generated Inline Image 1

Andrew Hobson

unread,
Jun 2, 2018, 3:51:24 AM6/2/18
to Google Visualization API
I have checked it is not the & embedded in the v: key. I also put in a check to only show 2 levels if the array is more than 300 elements and it now renders :) . So it could be size of the array, but it could also be some "overflow" problem with the size of the v: key...because I concat long strings to build the key. I should try changing that to be the index from the array which will be much smaller in size and theory the same results.

Andrew
Reply all
Reply to author
Forward
0 new messages