SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software SAP ABAP Programming and HANA Database Tutorials
Development resources, articles, tutorials, code samples and tools and downloads for ASP.Net, SQL Server, R Script, Windows, Windows Phone, AWS, SAP HANA and ABAP, like SAP UI5, Screen Personas, etc.

Install SAP Free

Failed to Load 'sap/ui/layout/BlockLayout.js'

Uncaught Error: failed to load 'testui5/d2c.controller.js' from ./testui5/d2c.controller.js: Error: failed to load 'sap/ui/layout/BlockLayout.js' from resources/sap/ui/layout/BlockLayout.js: 404 - Resource could not be found!

While working on sample on SAP UI5 Block Layout control shared at SAPUI Explored I have experienced the above SAP UI5 error indicating missing BlockLayout.js resource.

If you are testing your SAP UI5 application on Chrome web browser, switch to developer tools using F12.
On the console where error messages are displayed you will see a error log indicating "Resource could not be found" for the BlockLayout.js javascript file in resources/sap/ui/layout/ folder.

In such a case, when you press Ctrl+Alt+Shift+P hot keys following screen will be displayed.
On the list Javascript SAP UI5 modules which are loaded and the modules failed to load are all displayed.

failed to load sap/ui/layout/BlockLayout.js

<script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"

If sap/ui/layout/BlockLayout.js javascript module is also on the list, check the SAP UI5 library that you are using.
If you change the sap-ui-bootstrap source path to https://sapui5.hana.ondemand.com/resources/sap-ui-core.js and then if it works then you should think of updating the SAP UI5 library you are using.

SAP Tutorials

SAP Tutorial

SAP Forums

SAP Tools

SAP Transaction Codes Table

Meetup Sunumu 1 meetup

Copyright © 2004 - 2020 Eralper YILMAZ. All rights reserved.
Community Server by Telligent Systems