spreadsheetimporter / ui5-cc-spreadsheetimporter

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

[Bug]: deployment is failing #498

Closed prakashnahar closed 4 months ago

prakashnahar commented 5 months ago

OData Version

OData V2

Draft

No

Scenario

i am using in app to upload data

Environment

s4hana public cloud

UI5 Spreadsheet Component

0.32.0

What happened?

its giving error while deployment to s4hana public cloud using BAS.

loy-task ZSD_CW_DESPU IGNORE : thirdparty/customControl/spreadsheetImporter/v0_32_0/controller/Util.ts (Not uploaded as binary/text type is unknown: Adjust content of files .UI5RepositoryTextFiles and .Ui5RepositoryBinaryFiles) info abap-deploy-task ZSD_CW_DESPU IGNORE : thirdparty/customControl/spreadsheetImporter/v0_32_0/enums.d.ts (Not uploaded as binary/text type is unknown: Adjust content of files .UI5RepositoryTextFiles and .Ui5RepositoryBinaryFiles) info abap-deploy-task ZSD_CW_DESPU IGNORE : thirdparty/customControl/spreadsheetImporter/v0_32_0/enums.d.ts.map (Not uploaded as binary/text type is unknown: Adjust content of files .UI5RepositoryTextFiles and .Ui5RepositoryBinaryFiles) info abap-deploy-task ZSD_CW_DESPU IGNORE : thirdparty/customControl/spreadsheetImporter/v0_32_0/enums.ts (Not uploaded as binary/text type is unknown: Adjust content of files .UI5RepositoryTextFiles and .Ui5RepositoryBinaryFiles) info abap-deploy-task ZSD_CW_DESPU IGNORE : thirdparty/customControl/spreadsheetImporter/v0_32_0/index.d.ts (Not uploaded as binary/text type is unknown: Adjust content of files .UI5RepositoryTextFiles and .Ui5RepositoryBinaryFiles) info abap-deploy-task ZSD_CW_DESPU IGNORE : thirdparty/customControl/spreadsheetImporter/v0_32_0/types.d.ts (Not uploaded as binary/text type is unknown: Adjust content of files .UI5RepositoryTextFiles and .Ui5RepositoryBinaryFiles)

Relevant log output

loy-task ZSD_CW_DESPU *** IGNORE *** : thirdparty/customControl/spreadsheetImporter/v0_32_0/controller/Util.ts (Not uploaded as binary/text type is unknown: Adjust content of files .UI5RepositoryTextFiles and .Ui5RepositoryBinaryFiles)
info abap-deploy-task ZSD_CW_DESPU *** IGNORE *** : thirdparty/customControl/spreadsheetImporter/v0_32_0/enums.d.ts (Not uploaded as binary/text type is unknown: Adjust content of files .UI5RepositoryTextFiles and .Ui5RepositoryBinaryFiles)
info abap-deploy-task ZSD_CW_DESPU *** IGNORE *** : thirdparty/customControl/spreadsheetImporter/v0_32_0/enums.d.ts.map (Not uploaded as binary/text type is unknown: Adjust content of files .UI5RepositoryTextFiles and .Ui5RepositoryBinaryFiles)
info abap-deploy-task ZSD_CW_DESPU *** IGNORE *** : thirdparty/customControl/spreadsheetImporter/v0_32_0/enums.ts (Not uploaded as binary/text type is unknown: Adjust content of files .UI5RepositoryTextFiles and .Ui5RepositoryBinaryFiles)
info abap-deploy-task ZSD_CW_DESPU *** IGNORE *** : thirdparty/customControl/spreadsheetImporter/v0_32_0/index.d.ts (Not uploaded as binary/text type is unknown: Adjust content of files .UI5RepositoryTextFiles and .Ui5RepositoryBinaryFiles)
info abap-deploy-task ZSD_CW_DESPU *** IGNORE *** : thirdparty/customControl/spreadsheetImporter/v0_32_0/types.d.ts (Not uploaded as binary/text type is unknown: Adjust content of files .UI5RepositoryTextFiles and .Ui5RepositoryBinaryFiles)

Spreadsheet Component Init

sap.ui.define([], function () {
    "use strict";
    return {

        fn_Excelupload: async function (oEvent) {

            this.getView().setBusyIndicatorDelay(0);
            this.getView().setBusy(true);

            this.spreadsheetUpload = await this.getView()
                .getController()
                .getOwnerComponent()
                .createComponent({
                    usage: "spreadsheetImporter",
                    async: true,
                    componentData: {
                        context: this,
                        activateDraft: true,
                        showBackendErrorMessages: false
                    }
                });

            // event to check before uploaded to app
            this.spreadsheetUpload.attachCheckBeforeRead(function (oEvent) {
                // example
                const sheetData = oEvent.getParameter("sheetData");
                let errorArray = [];
                for (const [index, row] of sheetData.entries()) {
                    //check for invalid price
                    for (const key in row) {
                        if (key.endsWith("[price]") && row[key].rawValue > 100) {
                            const error = {
                                title: "Price too high (max 100)",
                                row: index + 2,
                                group: true,
                                rawValue: row[key].rawValue,
                                ui5type: "Error"
                            };
                            errorArray.push(error);
                        }
                    }
                }
                oEvent.getSource().addArrayToMessages(errorArray);
            }, this);

            // event to change data before send to backend
            this.spreadsheetUpload.attachChangeBeforeCreate(function (oEvent) {
                let payload = oEvent.getParameter("payload");
                // round number from 12,56 to 12,6
                if (payload.price) {
                    payload.price = Number(payload.price).toFixed(1);
                }
                oEvent.getSource().setPayload(payload);
            }, this);

            this.spreadsheetUpload.attachRequestCompleted(function (oEvent) {
                const success = oEvent.getParameter("success");
                if (success) {
                    console.log("Request Completed");
                } else {
                    console.log("Request Failed");
                }
            }, this);

            this.spreadsheetUpload.openSpreadsheetUploadDialog();
            this.getView().setBusy(false);
        },
        submit: async function () {
            const type = "ZUI_SD_CBENI_DESP_O2.ZC_SD_CBENI_DESP";
            const payload = {

            };
            const model = this.getView().getModel();
            const binding = this.byId("ui.v2.zsd_cw_despupload::sap.suite.ui.generic.template.ListReport.view.ListReport::ZC_SD_CBENI_DESP--responsiveTable").getBinding("items");
            const context = binding.create(payload, /*bAtEnd*/ true, { inactive: false, expand: "" });
            // const context2 = binding.create(payload);
            await model.submitChanges();
            await context.created();
            // await context2.created();

            const draftController = new sap.ui.generic.app.transaction.DraftController(model);
            await draftController.activateDraftEntity(context, true);
            binding.refresh();

            // const operation = context.getModel().bindContext("OrdersService.draftActivate" + "(...)", context, { $$inheritExpandSelect: true });
            // const operation2 = context2.getModel().bindContext("OrdersService.draftActivate" + "(...)", context2, { $$inheritExpandSelect: true });
            // operation.execute("$auto", false, null, /*bReplaceWithRVC*/ true);
            // operation2.execute("$auto", false, null, /*bReplaceWithRVC*/ true);
            console.log(context);
        },
        fn_Print: function (oEvent) {
            // Assuming you have a method to get the selected item
            debugger;

            var oTable = this.getView().byId("GridTable"); // Adjust with your actual Grid Table ID
            var oPlugin = oTable.getPlugins()[0]; // Assuming the selection plugin is the first plugin

            // Check if the plugin is a MultiSelectionPlugin and act accordingly
            if (oPlugin.isA("sap.ui.table.plugins.MultiSelectionPlugin")) {
                var aSelectedIndices = oPlugin.getSelectedIndices();

                // Proceed similar to the previous approach, now using aSelectedIndices from the plugin
                if (aSelectedIndices.length === 0) {
                    sap.m.MessageToast.show("Please select at least one item to print.");
                    return;
                }

                // Example: Accessing the model and getting data for the first selected index
                var oModel = oTable.getModel();
                var sPath = oTable.getContextByIndex(aSelectedIndices[0]).getPath();
                var invoiceData = oModel.getProperty(sPath);

                // Continue with your printing logic...
            } else {
                // Handle case where a different plugin or no plugin is used
                sap.m.MessageToast.show("Selection plugin not found or unsupported.");
            }

            // Create a window or an iframe for printing
            var printWindow = window.open('', 'PRINT', 'height=650,width=900,top=100,left=150');

            // Generate HTML content for the invoice
            printWindow.document.write('<html><head><title>Coal Washery Properties</title>');
            printWindow.document.write('<style>body{font-family: Arial, sans-serif; margin: 20px;} .invoice-header, .invoice-body, .invoice-footer {margin-bottom: 20px;} table {width: 100%; border-collapse: collapse;} table, th, td {border: 1px solid black;} th, td {padding: 8px; text-align: left;} .text-right {text-align: right;} </style>');
            printWindow.document.write('</head><body>');
            printWindow.document.write('<div class="invoice-header"><h2>Coal Washery Properties</h2></div>');
            printWindow.document.write('<div class="invoice-body">');
            // Example: Adding recipient info dynamically
            printWindow.document.write('<p><strong>To:</strong> ' + invoiceData.Doctype + '</p>'); // Adjust property name as per your model
            // Add more invoice details similarly
            printWindow.document.write('</div>');
            // Example: Printing a table of items. Check if items exist in your data.
            if (1 > 0) {
                printWindow.document.write('<table><thead><tr><th>Item</th><th>Quantity</th><th>Price</th></tr></thead><tbody>');

                printWindow.document.write('<tr><td>' + invoiceData.Propertydesc + '</td><td class="text-right">' + invoiceData.Propertyname + '</td><td class="text-right">' + invoiceData.ScrnEleType + '</td></tr>');
                printWindow.document.write('<tr><td>' + invoiceData.Propertydesc + '</td><td class="text-right">' + invoiceData.Propertyname + '</td><td class="text-right">' + invoiceData.ScrnEleType + '</td></tr>');
                printWindow.document.write('<tr><td>' + invoiceData.Propertydesc + '</td><td class="text-right">' + invoiceData.Propertyname + '</td><td class="text-right">' + invoiceData.ScrnEleType + '</td></tr>');
                printWindow.document.write('<tr><td>' + invoiceData.Propertydesc + '</td><td class="text-right">' + invoiceData.Propertyname + '</td><td class="text-right">' + invoiceData.ScrnEleType + '</td></tr>');
[]
                printWindow.document.write('</tbody></table>');
            }
            // Footer
            printWindow.document.write('<div class="invoice-footer">');
            printWindow.document.write('<p>Total: ' + invoiceData.Propertyname + '</p>'); // Adjust property name as per your model
            printWindow.document.write('</div>');
            printWindow.document.write('</body></html>');

            // Finish writing and load the content
            printWindow.document.close();
            printWindow.focus();

            // Invoke the print dialog
            printWindow.print();

            // Close the print window after a delay to ensure print dialog is shown
            setTimeout(function () {
                printWindow.close();
            }, 10000);
        }
    };
});

Manifest

{
    "_version": "1.53.0",
    "sap.app": {
        "id": "zsdcwdespupload",
        "type": "application",
        "i18n": "i18n/i18n.properties",
        "applicationVersion": {
            "version": "0.0.1"
        },
        "embeds": ["./thirdparty/customControl/spreadsheetImporter/v0_32_0"],
        "title": "{{appTitle}}",
        "description": "{{appDescription}}",
        "resources": "resources.json",
        "sourceTemplate": {
            "id": "@sap/generator-fiori:lrop",
            "version": "1.12.3",
            "toolsId": "bc20f548-b3cb-4086-9378-85d919fc2038"
        },
        "dataSources": {
            "mainService": {
                "uri": "/sap/opu/odata/sap/ZUI_SD_CBENI_DESP_O2/",
                "type": "OData",
                "settings": {
                    "annotations": [
                        "ZUI_SD_CBENI_DESP_O2_VAN",
                        "annotation"
                    ],
                    "localUri": "localService/metadata.xml",
                    "odataVersion": "2.0"
                }
            },
            "ZUI_SD_CBENI_DESP_O2_VAN": {
                "uri": "/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='ZUI_SD_CBENI_DESP_O2_VAN',Version='0001')/$value/",
                "type": "ODataAnnotation",
                "settings": {
                    "localUri": "localService/ZUI_SD_CBENI_DESP_O2_VAN.xml"
                }
            },
            "annotation": {
                "type": "ODataAnnotation",
                "uri": "annotations/annotation.xml",
                "settings": {
                    "localUri": "annotations/annotation.xml"
                }
            }
        },
        "crossNavigation": {
            "inbounds": {
                "ZSD_CW_DESPUPLD-MANAGE": {
                    "semanticObject": "ZSD_CW_DESPUPLD",
                    "action": "MANAGE",
                    "title": "{{flpTitle}}",
                    "signature": {
                        "parameters": {},
                        "additionalParameters": "allowed"
                    }
                }
            }
        }
    },
    "sap.ui": {
        "technology": "UI5",
        "icons": {
            "icon": "",
            "favIcon": "",
            "phone": "",
            "phone@2": "",
            "tablet": "",
            "tablet@2": ""
        },
        "deviceTypes": {
            "desktop": true,
            "tablet": true,
            "phone": true
        }
    },
    "sap.ui5": {

        "flexEnabled": true,
        "dependencies": {
            "minUI5Version": "1.114.11",
            "libs": {
                "sap.m": {},
                "sap.ui.core": {},
                "sap.ushell": {},
                "sap.f": {},
                "sap.ui.comp": {},
                "sap.ui.generic.app": {},
                "sap.suite.ui.generic.template": {}
            }
        },
        "contentDensities": {
            "compact": true,
            "cozy": true
        },
        "models": {
            "i18n": {
                "type": "sap.ui.model.resource.ResourceModel",
                "settings": {
                    "bundleName": "zsdcwdespupload.i18n.i18n"
                }
            },
            "": {
                "dataSource": "mainService",
                "preload": true,
                "settings": {
                    "defaultBindingMode": "TwoWay",
                    "defaultCountMode": "Inline",
                    "refreshAfterChange": false,
                    "metadataUrlParams": {
                        "sap-value-list": "none"
                    }
                }
            },
            "@i18n": {
                "type": "sap.ui.model.resource.ResourceModel",
                "uri": "i18n/i18n.properties"
            }
        },
        "resources": {
            "css": []
        },
        "componentUsages": {
            "spreadsheetImporter": {
                "name": "cc.spreadsheetimporter.v0_32_0"

            }
        },
        "resourceRoots": {
            "cc.spreadsheetimporter.v0.32.0": "./thirdparty/customControl/spreadsheetImporter/v0_32_0"
        },
        "routing": {
            "config": {},
            "routes": [],
            "targets": {}
        },
        "extends": {
            "extensions": {
                "sap.ui.controllerExtensions": {
                    "sap.suite.ui.generic.template.ListReport.view.ListReport": {
                        "controllerName": "zsdcwdespupload.ext.controller.ListReportExt",
                        "sap.ui.generic.app": {
                            "ZC_SD_CBENI_DESP": {
                                "EntitySet": "ZC_SD_CBENI_DESP",
                                "Actions": {
                                    "idExcelupd": {
                                        "id": "idExcelupdButton",
                                        "text": "Excel Upload",
                                        "press": "fn_Excelupload",
                                        "requiresSelection": false
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "sap.ui.generic.app": {
        "_version": "1.3.0",
        "settings": {
            "forceGlobalRefresh": false,
            "objectPageHeaderType": "Dynamic",
            "considerAnalyticalParameters": true,
            "showDraftToggle": false
        },
        "pages": {
            "ListReport|ZC_SD_CBENI_DESP": {
                "entitySet": "ZC_SD_CBENI_DESP",
                "component": {
                    "name": "sap.suite.ui.generic.template.ListReport",
                    "list": true,
                    "settings": {
                        "multiSelect": true,

                        "condensedTableLayout": true,
                        "smartVariantManagement": true,
                        "enableTableFilterInPageVariant": true,
                        "tableSettings": {
                            "type": "GridTable",
                            "selectAll": true
                        },
                        "filterSettings": {
                            "dateSettings": {
                                "useDateRange": true
                            }
                        }
                    }
                },
                "pages": {
                    "ObjectPage|ZC_SD_CBENI_DESP": {
                        "entitySet": "ZC_SD_CBENI_DESP",
                        "defaultLayoutTypeIfExternalNavigation": "MidColumnFullScreen",
                        "component": {
                            "name": "sap.suite.ui.generic.template.ObjectPage"
                        },
                        "pages": {
                            "ObjectPage|SiblingEntity": {
                                "navigationProperty": "SiblingEntity",
                                "entitySet": "ZC_SD_CBENI_DESP",
                                "defaultLayoutTypeIfExternalNavigation": "MidColumnFullScreen",
                                "component": {
                                    "name": "sap.suite.ui.generic.template.ObjectPage"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "sap.fiori": {
        "registrationIds": [],
        "archeType": "transactional"
    }
}
marianfoo commented 5 months ago

Hi @prakashnahar Please try this https://docs.spreadsheet-importer.com/pages/GettingStarted/#file-unknown-when-deploying-the-app

prakashnahar commented 5 months ago

Hi Marian, Greetings! First of all hats off to you. The control is beautiful.

Also Thank a lot for the quick response. It seems the actual cause of error is different. When I first used the app it was deployed in S4hana public cloud 2308. But when I am trying to deploy other app its giving error. I don't know why. Can you please check the attached log file I sent.

Thanks & Regards, Prakash Nahar.

On Wed, Feb 21, 2024 at 1:03 AM Marian Zeis @.***> wrote:

Hi @prakashnahar https://github.com/prakashnahar Please try this

https://docs.spreadsheet-importer.com/pages/GettingStarted/#file-unknown-when-deploying-the-app

— Reply to this email directly, view it on GitHub https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter/issues/498#issuecomment-1954922056, or unsubscribe https://github.com/notifications/unsubscribe-auth/AILKUOV4KLJA7JK65U5BQELYUT3BXAVCNFSM6AAAAABDRXTOCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJUHEZDEMBVGY . You are receiving this because you were mentioned.Message ID: <spreadsheetimporter/ui5-cc-spreadsheetimporter/issues/498/1954922056@ github.com>

info abap-deploy-task ZSD_CW_DESPU ZSD_CW_DESPU found on target system: true error abap-deploy-task ZSD_CW_DESPU Request failed with status code 400 error abap-deploy-task ZSD_CW_DESPU SAPUI5 application ZSD_CW_DESPU was not uploaded or registered successfully error abap-deploy-task ZSD_CW_DESPU SAPUI5 application ZSD_CW_DESPU was not uploaded or registered successfully info abap-deploy-task ZSD_CW_DESPU Please copy/paste this URL in a browser for more details: info abap-deploy-task ZSD_CW_DESPU (Note: You will need to replace the host in the URL with the internal host, if your destination is configured using an On-Premise SAP Cloud Connector) info abap-deploy-task ZSD_CW_DESPU https://myXXXXXX-api.s4hana.cloud.sap/sap/opu/odata/iwbep/message_text;o=LOCAL/T100_longtexts(MSGID='%2FUI5%2FUI5_REP_LOAD',MSGNO='003',MESSAGE_V1='ZSD_CW_DESPU',MESSAGE_V2='',MESSAGE_V3='',MESSAGE_V4='')/$value info abap-deploy-task ZSD_CW_DESPU Upload of SAPUI5 App or Library from ZIP-Archive into SAPUI5 ABAP Repository info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU Running in regular mode, brief log info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU 98 Files found in Archive. info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU Parameters info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU A BAdI implementation for /UI5/BADI_REPOSITORY_LOAD is active: Operation parameters may have been adjusted. info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU The name of the SAPUI5 repository "ZSD_CW_DESPU" has been determined from the corresponding import parameter. info abap-deploy-task ZSD_CW_DESPU The binary files are identified using the standard settings. info abap-deploy-task ZSD_CW_DESPU The text files are identified using the standard settings. info abap-deploy-task ZSD_CW_DESPU The files and folders to be ignored are determined from the built-in standard settings. info abap-deploy-task ZSD_CW_DESPU Transport Request "ZWUK900099" has been determined from the corresponding import parameter. info abap-deploy-task ZSD_CW_DESPU The external Code Page Name "UTF8" has been determined from the corresponding import parameter. info abap-deploy-task ZSD_CW_DESPU The acceptance of Unix style end of line markers in text files has been determined from the corresponding import parameter. info abap-deploy-task ZSD_CW_DESPU Unix style end of line markers in text files get accepted. info abap-deploy-task ZSD_CW_DESPU The delta mode has been turned on. info abap-deploy-task ZSD_CW_DESPU Running in safe mode info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU Updating existing SAPUI5 ABAP repository ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU Updating the Application Index info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU Messages from its application log: info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU Writing descriptor apps/zsdcwdespupload/app/sap/zsd_cw_despu/ info abap-deploy-task ZSD_CW_DESPU Writing descriptor apps/zsdcwdespupload/app/sap/zsd_cw_despu/./thirdparty/customControl/spreadsheetImporter/v0_32_0/ error abap-deploy-task ZSD_CW_DESPU Failed to replicate descriptor of application ZSD_CW_DESPU to layered repository error abap-deploy-task ZSD_CW_DESPU An exception was raised error abap-deploy-task ZSD_CW_DESPU Error while parsing an XML stream: 'BOM / charset detection failed'. error abap-deploy-task ZSD_CW_DESPU SAPUI5 library/component cc.spreadsheetimporter.v0_32_0 used in application ZSD_CW_DESPU does not exist info abap-deploy-task ZSD_CW_DESPU Please copy/paste this URL in a browser for more details: info abap-deploy-task ZSD_CW_DESPU (Note: You will need to replace the host in the URL with the internal host, if your destination is configured using an On-Premise SAP Cloud Connector) info abap-deploy-task ZSD_CW_DESPU https://myXXXXXX-api.s4hana.cloud.sap/sap/opu/odata/iwbep/message_text;o=LOCAL/T100_longtexts(MSGID='%2FUI5%2FAPP_API',MSGNO='021',MESSAGE_V1='cc.spreadsheetimporter.v0_32_0',MESSAGE_V2='ZSD_CW_DESPU',MESSAGE_V3='',MESSAGE_V4='')/$value info abap-deploy-task ZSD_CW_DESPU Updated UIADs for UI5 Repository ZSD_CW_DESPU, package ZSD_UI, transport ZWUK900099 info abap-deploy-task ZSD_CW_DESPU Fiori Launchpad App Descr Item ZSD_CW_DESPU_UI5R was updated info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU For details see the application log (SLG1) in client 000 for object /UI5/APPIDX . info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU A BAdI implementation for /UI5/BADI_REPOSITORY_LOAD is active: Final activities may have been performed. info abap-deploy-task ZSD_CW_DESPU error abap-deploy-task ZSD_CW_DESPU SAPUI5 application ZSD_CW_DESPU was not uploaded or registered successfully info abap-deploy-task ZSD_CW_DESPU Please copy/paste this URL in a browser for more details: info abap-deploy-task ZSD_CW_DESPU (Note: You will need to replace the host in the URL with the internal host, if your destination is configured using an On-Premise SAP Cloud Connector) info abap-deploy-task ZSD_CW_DESPU https://myXXXXXX-api.s4hana.cloud.sap/sap/opu/odata/iwbep/message_text;o=LOCAL/T100_longtexts(MSGID='%2FUI5%2FUI5_REP_LOAD',MSGNO='003',MESSAGE_V1='ZSD_CW_DESPU',MESSAGE_V2='',MESSAGE_V3='',MESSAGE_V4='')/$value info abap-deploy-task ZSD_CW_DESPU info abap-deploy-task ZSD_CW_DESPU Done error abap-deploy-task ZSD_CW_DESPU SAP_Transaction: For backend administrators: use ADT feed reader "SAP Gateway Error Log" or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details error abap-deploy-task ZSD_CW_DESPU SAP_Note: See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736) error abap-deploy-task ZSD_CW_DESPU Deployment has failed. debug abap-deploy-task ZSD_CW_DESPU { debug abap-deploy-task ZSD_CW_DESPU log: 5, debug abap-deploy-task ZSD_CW_DESPU target: { debug abap-deploy-task ZSD_CW_DESPU destination: 'myXXXXXX_SAML_ASSERTION', debug abap-deploy-task ZSD_CW_DESPU url: 'https://myXXXXXX-api.s4hana.cloud.sap' debug abap-deploy-task ZSD_CW_DESPU }, debug abap-deploy-task ZSD_CW_DESPU app: { debug abap-deploy-task ZSD_CW_DESPU name: 'ZSD_CW_DESPU', debug abap-deploy-task ZSD_CW_DESPU description: 'Coal Washery Despatch Upload', debug abap-deploy-task ZSD_CW_DESPU package: 'ZSD_UI', debug abap-deploy-task ZSD_CW_DESPU transport: 'ZWUK900099' debug abap-deploy-task ZSD_CW_DESPU }, debug abap-deploy-task ZSD_CW_DESPU exclude: [ '/test/', '.\.ts', '.\.ts.map' ], debug abap-deploy-task ZSD_CW_DESPU ignoreCertError: false, debug abap-deploy-task ZSD_CW_DESPU strictSsl: true, debug abap-deploy-task ZSD_CW_DESPU configPath: 'ui5-deploy.yaml', debug abap-deploy-task ZSD_CW_DESPU testMode: false, debug abap-deploy-task ZSD_CW_DESPU test: false, debug abap-deploy-task ZSD_CW_DESPU safe: true, debug abap-deploy-task ZSD_CW_DESPU keep: true, debug abap-deploy-task ZSD_CW_DESPU cli: false debug abap-deploy-task ZSD_CW_DESPU } error abap-deploy-task ZSD_CW_DESPU Change logging level to debug your issue error abap-deploy-task ZSD_CW_DESPU (see examples https://github.com/SAP/open-ux-tools/tree/main/packages/deploy-tooling#configuration-with-logging-enabled) error builder:custom deploy-to-abap Request failed with status code 400 Command deploy failed with error : Request failed with status code 400

marianfoo commented 5 months ago

please check if the app was deployed even with this error

prakashnahar commented 5 months ago

Hi Marian,

Its still not working.Please find console log. It seems its not being diverted to third party folder.

Thanks & Regards, Prakash Nahar. On Wed, Feb 21, 2024 at 7:48 PM Marian Zeis @.***> wrote:

please check if the app was deployed even with this error

— Reply to this email directly, view it on GitHub https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter/issues/498#issuecomment-1956753669, or unsubscribe https://github.com/notifications/unsubscribe-auth/AILKUOXPO6Z4ZHSLMS2VGO3YUX63VAVCNFSM6AAAAABDRXTOCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJWG42TGNRWHE . You are receiving this because you were mentioned.Message ID: <spreadsheetimporter/ui5-cc-spreadsheetimporter/issues/498/1956753669@ github.com>

marianfoo commented 5 months ago

It seems it is the same error as for the BTP ABAP Environment which would make sense because it is the same technology.
So it the same as in #490

Currently the only way i know to make it work is to deploy the Spreadsheet Component and use it in the app as described in https://docs.spreadsheet-importer.com/pages/CentralDeployment/

I tried that and it worked for me.

marianfoo commented 4 months ago

did you try this? https://docs.spreadsheet-importer.com/pages/GettingStarted/#error-librarycomponent-used-in-application-does-not-exist

marianfoo commented 4 months ago

did you try this? https://docs.spreadsheet-importer.com/pages/GettingStarted/#error-librarycomponent-used-in-application-does-not-exist

never mind, i was able to reproduce it and it did not help

marianfoo commented 4 months ago

Currently opened a SAP Case, might take a while

marianfoo commented 4 months ago

please update your

"embeds": ["./thirdparty/customControl/spreadsheetImporter/v0_32_0"],

to

"embeds": ["thirdparty/customControl/spreadsheetImporter/v0_32_0"],

and see if that helps

prakashnahar commented 4 months ago

Hi Marian,

Thanks for the update.

Now it seems working. The version I used is 33.01. Give me some time to check previous versions also.

Thanks & Regards, Prakash Jain

On Sun, Mar 10, 2024 at 1:32 AM Marian Zeis @.***> wrote:

please update your

"embeds": ["./thirdparty/customControl/spreadsheetImporter/v0_32_0"],

to

"embeds": ["thirdparty/customControl/spreadsheetImporter/v0_32_0"],

and see if that helps

— Reply to this email directly, view it on GitHub https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter/issues/498#issuecomment-1986963169, or unsubscribe https://github.com/notifications/unsubscribe-auth/AILKUOTVCLS4II35JQO4NKDYXNTFFAVCNFSM6AAAAABDRXTOCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWHE3DGMJWHE . You are receiving this because you were mentioned.Message ID: <spreadsheetimporter/ui5-cc-spreadsheetimporter/issues/498/1986963169@ github.com>

marianfoo commented 4 months ago

Anymore issues? Can i close this issue?

prakashnahar commented 4 months ago

The issue has been resolved.. you can close the issue. But I was getting duplicated id error while using it in another app If there is any way around on this do let me know .

Thanks & Regards, Prakash

On Fri, Mar 22, 2024 at 2:03 AM Marian Zeis @.***> wrote:

Anymore issues? Can i close this issue?

— Reply to this email directly, view it on GitHub https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter/issues/498#issuecomment-2013676839, or unsubscribe https://github.com/notifications/unsubscribe-auth/AILKUOQ2ZCQKUBPT2Y6NXWLYZM72JAVCNFSM6AAAAABDRXTOCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJTGY3TMOBTHE . You are receiving this because you were mentioned.Message ID: <spreadsheetimporter/ui5-cc-spreadsheetimporter/issues/498/2013676839@ github.com>

marianfoo commented 4 months ago

Please follow for this error #490