Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module Upload Error #544

Closed
RaghavendraMarelle opened this issue May 2, 2024 · 7 comments
Closed

Module Upload Error #544

RaghavendraMarelle opened this issue May 2, 2024 · 7 comments

Comments

@RaghavendraMarelle
Copy link

OData Version

OData V2

Draft

Yes

Scenario

Excel Upload - User Data

Environment

BAS and BTP Workzone

UI5 Spreadsheet Component

V0_33_4

What happened?

We consumed this Spreadsheet Module in our Custom Module and we did all the steps suggested in the below document. It was working good when we run the application. But when deployed into the Cloud Foundry we are facing the issue. Module Load Error. Please need your help as soon as possible.

URL:
Steps we followed: https://docs.spreadsheet-importer.com/pages/Button/

Error:
"severity": "error",
"text": "Error in application dependency 'cc.spreadsheetimporter.v0_33_4': No descriptor was found"

Error likely caused by:
ModuleError: failed to load 'cc/spreadsheetimporter/v0_33_4/Component.js' from ../18e1a763-6b87-4098-848a-0388d13dc63d../020524193055+0000/thirdparty/customControl/spreadsheetImporter/v0_33_4/Component.js: 404

Thank you.

Relevant log output

Log-dbg.js:499 2024-05-02 14:45:07.951500 The issue is most likely caused by application <Our Project Module Name>. Please create a support incident and assign it to the support component of the respective application. - Failed to load UI5 component with properties: '{
    "name": "<Our Project Module Name>",
    "url": "/18e1a763-6b87-4098-848a-0388d13dc63d.<Our mta project>.<Our Project Module Name>/~020524193055+0000~/",
    "manifest": true,
    "asyncHints": {
        "libs": [
            {
                "name": "sap.ui.table",
                "lazy": false
            },
            {
                "name": "sap.m",
                "lazy": false
            },
            {
                "name": "sap.suite.ui.generic.template",
                "lazy": false
            },
            {
                "name": "sap.ui.generic.app",
                "lazy": false
            },
            {
                "name": "sap.ui.comp",
                "lazy": false
            },
            {
                "name": "sap.f",
                "lazy": false
            },
            {
                "name": "sap.ui.fl",
                "lazy": false
            }
        ],
        "components": [
            {
                "name": "cc.spreadsheetimporter.v0_33_4",
                "lazy": false
            }
        ],
        "waitFor": []
    },
    "messages": [
        {
            "severity": "error",
            "text": "App '<Our Project Module Name>' has errors and will possibly not run properly"
        },
        {
            "severity": "error",
            "text": "Error in application dependency 'cc.spreadsheetimporter.v0_33_4': No descriptor was found"
        }
    ],
    "version": "0.0.1",
    "id": "application-so_ma_cr_dr_req-display-component",
    "componentData": {
        "startupParameters": {}
    }
}'. Error likely caused by:
ModuleError: failed to load 'cc/spreadsheetimporter/v0_33_4/Component.js' from ../18e1a763-6b87-4098-848a-0388d13dc63d.<Custom MTA Project>.<custom module name>/~020524193055+0000~/thirdparty/customControl/spreadsheetImporter/v0_33_4/Component.js: 404
    at we (https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:15:6645)
    at ge.failWith (https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:15:4709)
    at qe (https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:15:13312)
    at Oe (https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:15:15314)
    at Object.r [as require] (https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:15:18696)
    at https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:451:36449
    at new Promise (<anonymous>)
    at https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:451:36416
    at async Promise.all (index 0)
    at async Promise.all (index 8)
Caused by: XHRLoadError: 404
    at n (https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:15:9251)
    at XMLHttpRequest.<anonymous> (https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:15:9504)
    at je (https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:15:9596)
    at qe (https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:15:13287)
    at Oe (https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:15:15314)
    at Object.r [as require] (https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:15:18696)
    at https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:451:36449
    at new Promise (<anonymous>)
    at https://sapui5.hana.ondemand.com/1.120.8/resources/sap/fiori/appruntime-min-0.js:451:36416
    at async Promise.all (index 0)

Spreadsheet Component Init

<core:ComponentContainer 
      id="_compcont" 
      width="100%" 
      usage="spreadsheetImporter" 
      propagateModel="true" 
      async="true"
      settings="{
          standalone:true,
          columns: ['COLUMN1', 
                    'COLUMN2', 
                    'COLUMN3'
                     ],
          componentContainerData:{
            uploadButtonPress:'uploadButtonPress',
            buttonText:'Excel Upload'
            }
          }"
      />
      <Button id="_IDGenButton1" text="Submit" class="btn_name"
              press="onPressSubmit"
              ariaDescribedBy="defaultButtonDescription genericButtonDescription" />

Manifest

MANIFEST.JSON BELOW CODE ADDED 

"resources": {
            "css": [
                {
                    "uri": "css/style.css"
                }
            ]
        },
        "componentUsages": {
            "spreadsheetImporter": {
                "name": "cc.spreadsheetimporter.v0_33_4",
                "settings": {},
                "componentData": {},
                "lazy": false
            }
        },
        "resourceRoots": {
            "cc.spreadsheetimporter.v0_33_4": "./thirdparty/customControl/spreadsheetImporter/v0_33_4"
        },

PACKAGE.JSON WE DID BELOW

    "dependencies": {
        "ui5-cc-spreadsheetimporter": "^0.33.4"
    },
@marianfoo
Copy link
Member

Hi,
did you follow the Guide and did the BTP specific part:
https://docs.spreadsheet-importer.com/pages/GettingStarted/#btp-environment-deployment

Please check again if you followed all parts

@RaghavendraMarelle
Copy link
Author

Hi Marian, Thank you for your response, we missed this step you mentioned, we implemented it and it is working now. Thank you for your help. Also do you have any sample error handling example kindly share the link :) . Thank you again for your help.

@marianfoo
Copy link
Member

What kind of error handling? Backend error?

@marianfoo marianfoo added consulting and removed bug Something isn't working labels May 16, 2024
@marianfoo
Copy link
Member

no response

@marianfoo marianfoo closed this as not planned Won't fix, can't repro, duplicate, stale May 27, 2024
@RaghavendraMarelle
Copy link
Author

Hi Marian

From BAS we are able to deploy the application and we can see the preview of the application all good. But at the Build Workzone the application is not available. when we synced we got the below error regarding spreadsheet.

It was working good but when we did the redeployment we were facing this issue. Kindly respond as early as possible.


"AppId_cc.spreadsheetimporter.v0_33_4": {
"error": [
"Replication failed
for HTML5 app 'zmacreditdebitrequest' and manifest 'thirdparty/customControl/spreadsheetImporter/v0_33_4/manifest.json'",
"Service name 'spreadsheetimporter_v0_33_4' and public setting 'true' in embedded manifest.json have to be equal to service name 'ManualAdjustment' and public setting 'true' of root manifest.json"
],
"warning": []
}


Error_Spreadsheet_at Workzone

@marianfoo
Copy link
Member

I´ve seen this from another customer.
I´d recommend the standalone deployment.
If you like you can open a ticket on this one with SAP and report back. I have not got a feedback on that one.

@RaghavendraMarelle
Copy link
Author

RaghavendraMarelle commented May 31, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants