Voting: 
Vote up!
0 Votes
5 Replies
Answered

ERROR: Cannot read property 'generateUUID'

Question asked by Thu Đoàn on Jul 11, 2017 05:46 EDT

Hi Team. I am facing the issue while running the SPA application in browser which is built in KonyVisualizer 7.2.1 Please see attached file. Please suggest me to resolve the issue. Thank you so much  

Vote up!
0 votes
Vote down!

This error comes when you try to access the application locally . It has been addressed in the below set of plugins . Please consume these to overcome this issue

Please take these sets of 7.3 HF plugins for the fix. 
Hotfix Windows site : http://download.kony.com/studio/70/hotfixsite.xml 
Hotfix MacOS site : http://download.kony.com/studio/70/hotfixmacsite.xml

Kony Studio Core IDE : 7.3.0.3 GA
Kony Studio Viz Integration : 7.3.0.3 GA 
Kony FPreview : 7.3.0.2 GA
Kony Desktopweb : 7.3.0.3 GA
Kony SPA : 7.3.0.2 GA

Replied by: Jul 12, 2017 13:22 EDT
Vote up!
0 votes
Vote down!

Hi Radhika Yennam

When I Update hotfix, It show pending (please see attached file). Am I wrong?

Please suggest me to resolve the issue.

Thank you.

 

 

Replied by: Jul 12, 2017 21:38 EDT
Vote up!
0 votes
Vote down!

Initially it will take time to get the plugins , If this is not the case then please check if you have proxy and all the proxy setting has been configured properly . Alternative is try to connect from different network and try the same.

Replied by: Jul 13, 2017 01:15 EDT
Vote up!
0 votes
Vote down!

Issue has been resolved.

Thank you.

Replied by: Jul 20, 2017 02:11 EDT
Vote up!
0 votes
Vote down!

To launch the application in local , please follow the below steps ( Not publish in mobile fabric after build spa)

Please do the below modifications and then launch the application, it should resolve your issue.

Please be noted that solution  is a workaround that we are providing for you to overcome generateUUID error.

  1. Please go to your visualizer enterprise workspace folder -> open webapps\YOUR_APPLICATION\spaandroid\appjs. Here you can see app.js file.
  2. Open app.js file and search for below code

if (!deviceID) {

            deviceID = kony.license.generateUUID().toString();

            kony.ds.save(deviceID, "deviceID");

        }              

 Modify the above as below and save app.js file.

if (!deviceID) {

            deviceID = “spa

            kony.ds.save(deviceID, "deviceID");

        }

Replied by: Jul 20, 2017 02:41 EDT