cancel
Showing results for 
Search instead for 
Did you mean: 

failed to load 'sap.viz.ui5.library' from ./resources/sap/viz/ui5/library.js: 404 - Resource could not be found!

Former Member
0 Kudos

Hi all,

I am trying to implement sap.viz chart in my UI5 application.

While the error message is clear that it is failing to load the sap.viz library, I am not able to determine how to fix it.

Any pointers?

Thanks and regards,

Kapil.

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor

In the index file in bootstrap script did you add

data-sap-ui-libs = "sap.ui.commons,sap.viz

Regards

Raja

Former Member
0 Kudos

Hi,

Thanks for your replies.

I have tried updating the index file with 'sap.viz' in the bootstrap script.

I get following error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC LM 8; InfoPath.3)

Timestamp: Wed, 29 May 2013 10:44:18 UTC

Message: found in negative cache: 'sap.viz.library' from ./resources/sap/viz/library-preload.json/sap.viz.library: Error: found in negative cache: 'sap.ui.thirdparty.d3' from ./resources/sap/ui/thirdparty/d3.js: TypeError: Object doesn't support this property or method

Line: 70

Char: 1

Code: 0

URI: http://localhost:61800/SITMIL/resources/sap-ui-core.js

Hi Frank,

How and where can I check the version of SAPUI5? I am using plugin integrated with SAP NWDS.

Please let me know.

Thanks for replying guys. Appreciate your time.

regards,

Kapil.

former_member293602
Active Participant
0 Kudos

Hi Kapil,

I'm working with Eclipse Juno. There you can find the SAPUI5 version via the menu "Help -> About Eclipse". Then you will see a pop-up with a button "Installation Details". If you press this button, you get a list with the installed software. There you should be able to find SAPUI5 Runtime with version information.

If you replace the value of the attribute src in the bootstrap with "src="https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js", which points to the current (1.12?) version, do you still get the error above?

Regards, Frank

Former Member
0 Kudos

It shows version - 1.8.4.

I reckon I m missing viz library file that should be added to the project but not sure if it is correct or where can I go to check this.

former_member293602
Active Participant
0 Kudos

I would recommend that you do an update to get the current version, which is 1.12.

Former Member
0 Kudos

Ok.

From where can I get this latest version?

I had got the current version set-up files from a colleague.. I guess I got to connect to service marketplace and download the version. Am I right? else advise the best feasible way to do this.

Thanks for replying to me, Frank.

You have been great help.

Regards,

Kapil.

former_member293602
Active Participant
0 Kudos

Hi Kapil,

yes, the service marketplace is one option. If you are "just trying things out" you might as well choose the Evaluatoin Package which you can find on the start page of this space.

Regards, Frank

Former Member
0 Kudos

Exaclty !!
It works now

Answers (2)

Answers (2)

0 Kudos

It works with

In the index file in bootstrap script did you add

data-sap-ui-libs = "sap.ui.commons,sap.viz


However, running as Fiori Sandbox mode using Component.js has still error. I am running with Personal WedIDE.


former_member293602
Active Participant
0 Kudos

Hi Kapil,

are you using the most current UI5 version?

I've attached a small example for using the sap viz library. If you create a new SAPUI5 project and use the content of this file as "index.html" you should be able to see the result. I hope this helps.

Regards, Frank