Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-5598

Number format exception when /priceEntries/by-externalReferenceCode/{externalReferenceCode} endpoint invoked

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: No Longer Reproducible
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: Data Integration
    • Labels:
      None

      Description

      Hi, we found a bug in tLifererayOutput component when working with openAPI MODULE PATH
      /headless-commerce-admin-pricing/v1.0
      and the operations path
      "/priceEntries/by-externalReferenceCode/{externalReferenceCode}"
      operation Update

      When we don't specify the parameter hasTierPrice we receive the following exception from the price parameter:

      Exception in component tLiferayOutput_2 (import_prices)
      java.lang.NumberFormatException
       at java.math.BigDecimal.<init>(BigDecimal.java:494)
       at java.math.BigDecimal.<init>(BigDecimal.java:383)
       at java.math.BigDecimal.<init>(BigDecimal.java:806)
       at org.talend.codegen.enforcer.OutgoingSchemaEnforcer.transformValue(OutgoingSchemaEnforcer.java:236)
       at org.talend.codegen.enforcer.OutgoingSchemaEnforcer.get(OutgoingSchemaEnforcer.java:190)
       at lfrgs_liferay_sap_connector.import_prices_0_1.import_prices.tJava_12Process(import_prices.java:11111)
       at lfrgs_liferay_sap_connector.import_prices_0_1.import_prices.tJava_6Process(import_prices.java:7965)
       at lfrgs_liferay_sap_connector.import_prices_0_1.import_prices.tRunJob_7Process(import_prices.java:7813)
       at lfrgs_liferay_sap_connector.import_prices_0_1.import_prices.tJava_5Process(import_prices.java:5748)
       at lfrgs_liferay_sap_connector.import_prices_0_1.import_prices.tRunJob_5Process(import_prices.java:5587)
       at lfrgs_liferay_sap_connector.import_prices_0_1.import_prices.tFileInputXML_1Process(import_prices.java:4400)
       at lfrgs_liferay_sap_connector.import_prices_0_1.import_prices.tFileList_1Process(import_prices.java:2843)
       at lfrgs_liferay_sap_connector.import_prices_0_1.import_prices.tJava_2Process(import_prices.java:2475)
       at lfrgs_liferay_sap_connector.import_prices_0_1.import_prices.runJobInTOS(import_prices.java:18678)
       at lfrgs_liferay_sap_connector.import_prices_0_1.import_prices.main(import_prices.java:17273)
      

      if we populate the same parameters with the same values with the operation path:
      "/priceLists/{id}/priceEntries"
      operation: Insert
      the component works correctly, no exception is throw.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              igor.beslic Igor Beslic
              Reporter:
              igor.beslic Igor Beslic
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Master