Skip to content

Table Rate Shipping method could not upload CSV file #11468

Closed
@adaemon

Description

@adaemon

Preconditions

  1. Magento version CE 2.1.5

Steps to reproduce

  1. Login to admin panel go to Store -> Configuration -> Sales -> Shipping Methods
  2. Expand Table Rates and Override the default options. Select Enabled as Yes
  3. Condition: # of items vs Destination
  4. Save the configuration
  5. Change Store view to "Main Website"
  6. You could see Export and Import option
  7. Click export button and get the CSV format
  8. In the CSV edit values and reupload
  9. Save the configuration

Expected result

  1. CSV file should be exported without any error. The shipping method should work in the frontend

Actual result

  1. Getting following error
    Something went wrong while saving this configuration: Warning: array_key_exists(): The first argument should be either a string or an integer in /home/vntghome-alpha/store/vendor/magento/framework/Model/AbstractModel.php on line 351

  2. Shipping is enabled in the frontend, but is not calculating the shipping price as per the configuration in the CSV file

Note: attached txt is saved from CSV due to github restriction
magerror

tablerates.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: ImportExportIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions