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

v.23.04 - bulk_container.php incorrect column name on count parameter causing 500 error #1519

Open
dgrazier1 opened this issue Feb 26, 2024 · 1 comment

Comments

@dgrazier1
Copy link

dgrazier1 commented Feb 26, 2024

Describe the bug
bulk import of containers generating http 500 error due to incorrect column specification on count() (v.23.04)

Code in the file as it originally existed:
$st = $dbh->prepare( "select count(RowID) as TotalMatches, CabRowID from fac_CabRow where DataCenterID=:DataCenterID and ZoneID=:ZoneID and ucase(Name)=ucase(:Name)" );

Count should be CabRowID. After manually making change to the bulk_container.php file, the problem was fixed.

To Reproduce
Steps to reproduce the behavior:

  1. Create and save .xlsx file with the following:
    DataCenter | Container | Zone | Row
    -- | -- | -- | --
    A1 | A | A1-1 | A1-1-R1
    A1 | A | A1-2 | A1-1-R2
    B1 | B | B1-1 | B1-1-R1
    B1 | B | B1-2 | B1-1-R2
  2. Go to '...' : Bulk Importer -> Import Container/Datacenter/Zone/Row
  3. Choose .xlsx file and Click Upload
  4. Click Process
  5. See error

Were you able to reproduce this on the dev or demo sites?

Expected behavior
A clear and concise description of what you expected to happen.
Expected it to import the values in the file without error

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Win 11
  • Browser Edge
  • Version [e.g. 22]

Additional context
Changing the line to the following fixed the issue
$st = $dbh->prepare( "select count(CabRowID) as TotalMatches, CabRowID from fac_CabRow where DataCenterID=:DataCenterID and ZoneID=:ZoneID and ucase(Name)=ucase(:Name)" );

@dgrazier1 dgrazier1 changed the title bulk_container.php incorrect column name on count parameter causing 500 error v.23.04 - bulk_container.php incorrect column name on count parameter causing 500 error Feb 26, 2024
@MathisICDC
Copy link

I also have a problem importing the network link mass on this same version.
Unfortunately, I still don't have the solution.
Mathis

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

No branches or pull requests

2 participants