App Connect Charts Support Product Page

Solved

Uncaught TypeError: this.props.data.map is not a function

Reported 27 Oct 2017 19:58:55
1
has this problem
27 Oct 2017 19:58:55 Dave Smith posted:
Seeing this error in the console. Charts are creating an issue with another Server Connect Action with sporadic display of results (on refresh they disappear occasionally), without the Charts they always show correctly.

Here is the console output:

dmxCharts.js:7 Uncaught TypeError: this.props.data.map is not a function
    at n.<anonymous> (dmxCharts.js:7)
    at Array.map (<anonymous>)
    at n.getData (dmxCharts.js:7)
    at n.update (dmxCharts.js:7)
    at n.$update (dmxAppConnect.js:7)
    at dmxAppConnect.js:7
    at Array.forEach (<anonymous>)
    at n.$update (dmxAppConnect.js:7)
    at dmxAppConnect.js:7
    at dmxAppConnect.js:7
dmxAppConnect.js:7 Formatter hasItems doesn't exist for type object
(anonymous) @ dmxAppConnect.js:7
dmxCharts.js:7 Uncaught TypeError: this.props.data.map is not a function
    at n.<anonymous> (dmxCharts.js:7)
    at Array.map (<anonymous>)
    at n.getData (dmxCharts.js:7)
    at n.update (dmxCharts.js:7)
    at n.$update (dmxAppConnect.js:7)
    at dmxAppConnect.js:7
    at Array.forEach (<anonymous>)
    at n.$update (dmxAppConnect.js:7)
    at dmxAppConnect.js:7
    at dmxAppConnect.js:7
dmxAppConnect.js:7 Formatter hasItems doesn't exist for type object
(anonymous) @ dmxAppConnect.js:7
dmxCharts.js:7 Uncaught TypeError: this.props.data.map is not a function
    at n.<anonymous> (dmxCharts.js:7)
    at Array.map (<anonymous>)
    at n.getData (dmxCharts.js:7)
    at n.update (dmxCharts.js:7)
    at n.$update (dmxAppConnect.js:7)
    at dmxAppConnect.js:7
    at Array.forEach (<anonymous>)
    at n.$update (dmxAppConnect.js:7)
    at dmxAppConnect.js:7
    at dmxAppConnect.js:7


Sorry for being a pain in the backside...

Replies

Replied 28 Oct 2017 08:48:19
28 Oct 2017 08:48:19 Teodor Kuduschiev replied:
Hi Dave,
It is hard to tell what goes wrong, without seeing your page running in my browser.
Please upload it to some testing server and send me a link to where i can check this.
Replied 28 Oct 2017 12:54:58
28 Oct 2017 12:54:58 Dave Smith replied:
After a little debugging this only happens when the Server Connect query produces no results for the Chart to display.
Replied 28 Oct 2017 13:17:23
28 Oct 2017 13:17:23 Teodor Kuduschiev replied:
Hi Dave,
You can put the chart in a conditional region then, and show it only when there are results from the query.
Replied 28 Oct 2017 13:38:36
28 Oct 2017 13:38:36 Dave Smith replied:
Hi Teodor,
Unfortunately that does not solve the issue. I have also adjusted my query for IFNULL results as such:

IFNULL(`Accounts`.`Total`, 0) AS `Total`


Thanks for the suggestion though.
Replied 28 Oct 2017 13:50:24
28 Oct 2017 13:50:24 Dave Smith replied:
The Results that fail to display are set in a Repeat of a Data View with paging set to Repeat across the TR tag within the table.

Not sure if that aids in any assistance but maybe you can replicate this?

I have also tried placing the Charts below the table rather than above it, but to no avail.
Replied 28 Oct 2017 14:36:55
28 Oct 2017 14:36:55 Dave Smith replied:
Am going to have to pull the Charts from the page (for now?) despite my best efforts.

Replied 28 Oct 2017 15:21:41
28 Oct 2017 15:21:41 Teodor Kuduschiev replied:
Hi Dave,
I will need to see your page in order to identify the issue (if any).
Please upload it to some server where i can access this and debug.
Replied 28 Oct 2017 16:15:45
28 Oct 2017 16:15:45 Dave Smith replied:
Hi Teodor,
Thank you. Have mailed support with details for you to view (please check Spam folder as this domain tends to have some issues which we are working on to resolve).

Have also created a new page with the bare basics so as not to confuse the situation.

Regards,
Dave.
Replied 30 Oct 2017 09:10:53
30 Oct 2017 09:10:53 Teodor Kuduschiev replied:
Hi Dave,
I've sent you an update charts.js file, please check your email.
This reply was removed on 10/30/2017 9:49:01 AM.
See the changelog
Replied 30 Oct 2017 09:53:30
30 Oct 2017 09:53:30 Dave Smith replied:
*Removed my earlier reply.

Just to CONFIRM this RESOLVED the issue (after clearing CloudFlare cache).

It was a late night.

Thank you to you and your team for your very kind support it is very much appreciated.
Replied 30 Oct 2017 11:09:09
30 Oct 2017 11:09:09 Teodor Kuduschiev replied:
That's great.
This fix will be included in the next update.
Replied 02 Nov 2017 15:18:16
02 Nov 2017 15:18:16 Teodor Kuduschiev replied:
Please get the 1.0.1 update, the issue has been fixed there.

Reply to this topic