Skip to Content

On premise launchpad; Found in negative cache on app extension

Hi,

I've built a "base" application that has been extended into several other applications. If I clear all the caches, all my apps work fine and there's no drama. Then the launchpad caches things and it breaks the "base" application.

Error: found in negative cache: 'encollab/dp/parts/enquiry/Component.js' from undefined/encollab/dp/parts/enquiry/Component.js: Error: failed to load 'encollab/dp/base/Component.js' from /sap/bc/ui5_ui5/ui2/ushell/resources/~20171109155700~/encollab/dp/base/Component.js: 404 - NOT FOUND

It kind of looks like that 20171109155700 cache is used for the UI5 libraries. My base app is just loaded as a UI5 app like any other.

This is my manifest:

{
	"_version": "1.8.0",
	"sap.app": {
		"id": "encollab.dp.parts.enquiry",
		"type": "application",
		"i18n": "i18n/i18n.properties",
		"applicationVersion": {
			"version": "1.0.0"
		},
		"title": "{{appTitle}}",
		"description": "{{appDescription}}",
		"sourceTemplate": {
			"id": "ui5template.basicSAPUI5ApplicationProject",
			"version": "1.40.12"
		},
		"dataSources": {
			"MAIN": {
				"uri": "/sap/opu/odata/sap/Y_DP_PART_SRV/",
				"type": "OData",
				"settings": {
					"odataVersion": "2.0",
					"localUri": "localService/Y_DP_PART_SRV/metadata.xml"
				}
			},
			"CORE": {
				"uri": "/sap/opu/odata/sap/Y_DP_CORE_SRV/",
				"type": "OData",
				"settings": {
					"odataVersion": "2.0",
					"localUri": "localService/Y_DP_CORE_SRV/metadata.xml"
				}
			}
		},
		"crossNavigation": {
			"inbounds": {
				"intent1": {
					"signature": {
						"parameters": {
							"message": {
								"required": true
							},
							"language": {
								"required": true
							}
						},
						"additionalParameters": "allowed"
					},
					"semanticObject": "ydp_i_c",
					"action": "update"
				}
			}
		}
	},
	"sap.ui": {
		"technology": "UI5",
		"icons": {
			"icon": "",
			"favIcon": "",
			"phone": "",
			"phone@2": "",
			"tablet": "",
			"tablet@2": ""
		},
		"deviceTypes": {
			"desktop": true,
			"tablet": true,
			"phone": true
		},
		"supportedThemes": ["sap_hcb", "sap_belize"],
		"fullWidth": true
	},
	"sap.ui5": {
		"rootView": {
			"viewName": "encollab.dp.base.pages.app.App",
			"type": "XML"
		},
		"dependencies": {
			"minUI5Version": "1.30.0",
			"libs": {
				"sap.ui.layout": {},
				"sap.ui.core": {},
				"sap.m": {},
				"sap.uxap": {}
			},
			"components": {
				"encollab.dp.base": {
					"minVersion": "1.0.0"
				}
			}
		},
		"extends": {
			"component": "encollab.dp.base",
			"extensions": {
				"sap.ui.controllerExtensions": {
					"encollab.dp.base.pages.main.Main": {
						"controllerName": "encollab.dp.parts.enquiry.pages.main.Main"
					}
				},
				"sap.ui.viewReplacements": {
					"encollab.dp.base.pages.main.Main": {
						"viewName": "encollab.dp.parts.enquiry.pages.main.Main",
						"type": "XML"
					}
				}
			}
		},
		"contentDensities": {
			"compact": true,
			"cozy": true
		},
		"models": {
			"i18n": {
				"type": "sap.ui.model.resource.ResourceModel",
				"settings": {
					"bundleName": "encollab.dp.parts.enquiry.i18n.i18n"
				}
			},
			"": {
				"type": "sap.ui.model.odata.v2.ODataModel",
				"settings": {
					"defaultOperationMode": "Server",
					"defaultBindingMode": "TwoWay",
					"defaultCountMode": "Inline"
				},
				"dataSource": "MAIN",
				"preload": true
			},
			"core": {
				"type": "sap.ui.model.odata.v2.ODataModel",
				"settings": {
					"defaultOperationMode": "Server",
					"defaultBindingMode": "TwoWay",
					"defaultCountMode": "Inline"
				},
				"dataSource": "CORE",
				"preload": true
			}
		},
		"resources": {
			"css": [{
				"uri": "css/style.css",
				"id": "style"
			}]
		}
	}
}
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 21 at 03:27 AM

    What if you declare your resourcepath to your namespace in the component.js file?

    Add comment
    10|10000 characters needed characters exceeded