spreadsheetimporter / ui5-cc-spreadsheetimporter

A UI5 Component to integrate a Spreadsheet Upload for UI5 Apps.
https://spreadsheet-importer.com/
Apache License 2.0
82 stars 16 forks source link

Module Upload Error #544

Closed RaghavendraMarelle closed 4 months ago

RaghavendraMarelle commented 5 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

What kind of error handling? Backend error?

marianfoo commented 4 months ago

no response

RaghavendraMarelle commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

Many thanks Marian for your response.

Standalone Deployment means deploying from the SAP BAS directly? Even then we are facing the issue. How can we fix this? SAP tickets will take time.

On Thu, May 30, 2024 at 6:04 AM Marian Zeis @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter/issues/544#issuecomment-2139310466, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIHUI4FGFU2GLBABA6WOV4LZE4BTNAVCNFSM6AAAAABHELN56CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZZGMYTANBWGY . You are receiving this because you authored the thread.Message ID: <spreadsheetimporter/ui5-cc-spreadsheetimporter/issues/544/2139310466@ github.com>

-- Best Regards Raghavendra Marelle 309 445 4901