Open TravelTechCode opened 2 weeks ago
I do have the same issue, I've raised an incident to SAP.
Some logs from the HTML5 importer: {"status":"PARTIAL","contents": {"total":11,"failed":2,"status":"PARTIAL","messages": {"xxxxxx":{"error":["Failed to search xxxxxx"],"warning":[]},"AppId_cc.spreadsheetimporter.v1_0_0": {"error":["Replication failed for HTML5 app 'xxxxxx' and manifest 'thirdparty/customcontrol/spreadsheetimporter/v1_0_0/manifest.json'","Service name 'spreadsheetimporter_v1_0_0' and public setting 'true' in embedded manifest.json have to be equal to service name 'xxxxxxx' and public setting 'true' of root manifest.json"],"warning":[]}},"correlationId":"xxxxxx"},"reportId":{"contextId":"SUB_ACCOUNT","subdomain":"xxxxxx","instanceId":"SAAS_APPROUTER_HTML5_APP_REPO","providerId":"saas_approuter","contextType":"sub_account","identityZoneId":"xxxxxx"},"correlationId":"xxxxxx","providerTitle":"HTML5 Apps","statusText":"Une partie du contenu a été mise à jour."}
@FabienHenique How are your accessing this log?? Is your app getting deployed to html5 repository?? In my case the app is deployed to html5 repo but not available in channel manager of build workzone
"Service name 'spreadsheetimporter_v1_0_0' and public setting 'true' in embedded manifest.json have to be equal to service name 'xxxxxxx' and public setting 'true' of root manifest.json"]
@FabienHenique Had this issue reported before but i am not able to raise a ticket with SAP. Please report back what SAP will respond to this issue.
@TravelTechCode do you have the same issue? If yes, you can also raise a issue ticket with SAP
Current workaround (and recommended) is to deploy the component not in the app itself. This helps with the ABAP Stack and BTP deployment. https://docs.spreadsheet-importer.com/pages/CentralDeployment/#deployment-to-html5-repository-on-btp
@marianfoo, this is answer from SAP: Hi Fabien,
Could you change below setting, rebuild and deploy again? Then update content in workzone content channel and see if issue is resolved.
./thirdparty/customcontrol/spreadsheetimporter/v1_0_0/manifest.json
Old:
"sap.cloud": { "public": true, "service": "spreadsheetimporter_v1_0_0" }
New:
"sap.cloud": { "public": true, "service": "mycloudservicename" }
@FabienHenique How are your accessing this log?? Is your app getting deployed to html5 repository?? In my case the app is deployed to html5 repo but not available in channel manager of build workzone
When you refresh your HTML5 repo, you can download the report and you should see any partial import in the json file.
@FabienHenique the service name mycloudservicename
is your servicename or a generic one?
Is it the same as your name?
I am not sure how to make it possible that every customer can change that
@marianfoo our cloud service name is nagarro.xxx.xxx. I've put mycloudservicename as an example. If we go with a global deployment, we'll not face any issue?
@FabienHenique just i understand correct: SAP want you to have the cloud service name in the spreadsheet importer manifest as in the app? Or what is the problem with "spreadsheetimporter_v1_0_0"?
I ran into this issue and resolved it by using the SAP suggestion above of manually updating the below file: ./thirdparty/customcontrol/spreadsheetimporter/v1_0_0/manifest.json
"sap.cloud": {
"public": true,
"service": "mycloudservicename"
}
(where mycloudservicename is the same as what's in your deployed app)
When you try and update the HTML5 'Content Channels' so the apps are available in the Content Manager, SAP is running this check (not sure why) to make sure that the sap.cloud.service name in the manifest of the component matches that sap.cloud.service name in the manifest of the app.
Ok, i try to fix this with #587 Let me see if that helps so you dont have to do that manually
@dguess @FabienHenique @TravelTechCode can you please try this custom task https://github.com/spreadsheetimporter/ui5-task-btp-manifest
It worked in my test setup. It gets the name from the ["sap.cloud].service and replaces that with the ["sap.cloud].service in the spreadsheetimporter manifest.
# yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json
specVersion: "2.5"
metadata:
name: ui.v4.ordersv4fe
type: application
builder:
customTasks:
- name: ui5-task-btp-manifest
afterTask: replaceVersion
configuration:
prefix: "test"
server:
customMiddleware:
- name: fiori-tools-proxy
afterMiddleware: compression
configuration:
ignoreCertError: false # If set to true, certificate errors will be ignored. E.g. self-signed certificates will be accepted
ui5:
path:
- /resources
- /test-resources
url: https://ui5.sap.com
backend:
- path: /odata/v4/Orders
url: http://localhost:4004
- name: ui5-middleware-ui5
afterMiddleware: compression
configuration:
modules:
ui5-cc-spreadsheetimporter:
configFile: "ui5-serve.yaml"
- name: ui5-tooling-modules-middleware
afterMiddleware: compression
configuration:
debug: "verbose"
addToNamespace: true
prependPathMappings: true
- name: fiori-tools-appreload
afterMiddleware: compression
configuration:
port: 35730
path: webapp
delay: 300
- name: fiori-tools-preview
afterMiddleware: fiori-tools-appreload
configuration:
component: ui.v4.ordersv4fe
ui5Theme: sap_horizon
Hello @marianfoo , is there any specificity with MTA deployment? I got an error message: taskRepository: Unknown Task ui5-task-btp-manifest
Need to install it, see the readme https://github.com/spreadsheetimporter/ui5-task-btp-manifest?tab=readme-ov-file#ui5-task-to-change-spreadsheet-importer-manifest
Hi @marianfoo . I tried this approach , But getting the same issue. Though one hack i found is that ,if i deploy my app first without the ui5 spreadsheet component and then add and deploy the ui5 spreadsheet component in the second deployment, then it's not causing any deployment error and can be access in the content explorer too.
@TravelTechCode can you please check if the service name in the spreadsheet importer and build output change?
Hi @marianfoo yeah so i noticed that there are two manifests file in the /thirdparty/customcontrol/spreadsheetimporter/v33_0_0/manifest.json one where the service name is "spreadsheetimporter_v0_33_0" and the second one where the service name is "myservicename".
I see, please update spreadsheet importer to v1
@marianfoo I need to use importer v0.33.0 version only as the user needs the button icons. Is it not possible to address this issue in version 0.33.0
@TravelTechCode i updated the task so it supports your version as well https://www.npmjs.com/package/ui5-task-btp-manifest/v/0.2.0
a influence was created to change that. SAP dont see an error here https://influence.sap.com/sap/ino/#/idea/326299
OData Version
OData V4
Draft
No
Scenario
Flexible programming model
Environment
BAS
UI5 Spreadsheet Component
0.33.0
What happened?
Hi Marian, I am deploying a cap based fiori app to cloud foundry . The app is successfully deployed and the app is available at the html Applications , but due to some weird reasons the app isnt available in content explorer of build workzone. Regards, Priyanka
Relevant log output
Spreadsheet Component Init
Manifest