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

Importer only recognizes CSV header “Name” for Asset Models (fails with “Model Name” or “Item Name”) #16128

Open
rodchristiansen opened this issue Jan 24, 2025 · 2 comments

Comments

@rodchristiansen
Copy link

Image

Image

Issue Description
When importing a CSV for Asset Models, the system fails with the error "The name field is required" unless the CSV header is exactly "Name." Attempting to use “Model Name” or “Item Name” columns leads to the same error.

Steps to Reproduce

  1. Prepare a CSV with these columns:
    • Category
    • Manufacturer
    • Model Name
  2. Import this CSV as Asset Models.
  3. Observe the error: "The name field is required."

Expected Behavior
The importer should either automatically detect or allow mapping “Model Name” or “Item Name” as the required ‘name’ field.

Actual Behavior
Only the exact column heading “Name” is recognized; any variation results in a failed import and the error message.

Environment

  • Snipe-IT v7.1.15 build 16052 (g25bfd3e84)
Copy link

welcome bot commented Jan 24, 2025

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@swift2512
Copy link

There's a high chance that you are doing something wrong. Format your CSV file with some text editor, use "" as text delimiter.

Try this as a demo import (save as csv file with simple text editor)

"Full Name","Email","Username","item Name","Category","Model name","Manufacturer","Model Number","Serial number","Asset Tag","Location","Notes",Purchase Date,Purchase Cost,Company,Status,Warranty,Supplier
"Bonnie Nelson","[email protected]","bnelson0","eget nunc donec quis","quam","massa id","Linkbridge","6377018600094470","27aa8378-b0f4-4289-84a4-405da95c6147","970882174-8","Daping","Curabitur in libero ut massa volutpat convallis. Morbi odio odio, elementum eu, interdum eu, tincidunt in, leo. Maecenas pulvinar lobortis est.",2016-04-05,133289.59,Alpha,Undeployable,14,Blogspan
"Judith Ferguson","[email protected]","jferguson1","mi in porttitor","justo","congue diam id","Flipstorm","5020433595691890000","4bc7fc90-5a97-412f-8eed-77ecacc643fc","544574073-0","Cirangga Kidul",,2016-03-08,763.46,,Undeployable,12,Oyope
"Mildred Gibson","[email protected]","mgibson2","morbi quis tortor id","nunc nisl duis","convallis tortor risus","Lajo","374622546776765","2837ab20-8f0d-4935-8a52-226392f2b1b0","710141467-2","Shekou","In congue. Etiam justo. Etiam pretium iaculis justo.",2015-08-09,233.57,Konklab,Lost,,
"Brandon Lee","[email protected]","blee3","amet cursus id turpis","sed","in faucibus orci","Zoomlounge","3549618015236090","18d6e6a4-d362-4de9-beb4-7f62fb93de6f","103538064-1","Leksand","Integer ac leo. Pellentesque ultrices mattis odio. Donec vitae nisi.",2015-10-11,,,Pending Diagnostics,,
"Betty Powell","[email protected]","bpowell4","ipsum praesent","condimentum curabitur","et ultrices","Kazu","3567082842822620","f9b473c6-c810-42f2-8335-27ce468889a8","118753405-6","Dresi Wetan",,2015-06-16,324.8,,Ready to Deploy,,
"Anthony Wheeler","[email protected]","awheeler5","dictumst maecenas ut","sem praesent","accumsan felis","Layo","30052522651756","4751495c-cee0-4961-b788-94a545b5643e","998233705-X","Dante Delgado",,2016-04-16,261.79,,Archived,15,Ntag
"Dennis Reynolds","[email protected]","dreynolds6","libero nam","risus","interdum mauris","Twiyo","3585438057660290","17b3cf8d-fead-46f5-a8b0-49906bb90a00","177687256-8","Pingle","Proin interdum mauris non ligula pellentesque ultrices. Phasellus id sapien in sapien iaculis congue. Vivamus metus arcu, adipiscing molestie, hendrerit at, vulputate vitae, nisl.",2015-05-24,,,Pending Diagnostics,,
"Andrea Arnold","[email protected]","aarnold7","mauris morbi non","ante vel","sapien dignissim","Cogibox","3548511052883500","7a6a2fdb-160c-4d91-8e05-a0337a90d9db","129556040-2","Zhuli","Duis aliquam convallis nunc. Proin at turpis a pede posuere nonummy. Integer non velit.",2015-09-15,434.86,,Archived,14,Kwilith
"Anna Butler","[email protected]","abutler8","eleifend pede libero","sapien a libero","et ultrices posuere cubilia","Flipbug","675911579996746000","c1a57909-3b2e-47fe-ab2f-843401b2a7de","117517007-0","Niopanda","Maecenas tristique, est et tempus semper, est quam pharetra magna, ac consequat metus sapien ut nunc. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae",,,,,,
"Mark Bennett","[email protected]","mbennett9","convallis nulla neque","eu sapien","duis mattis egestas metus aenean","Centimia","378342677410961","07540238-fb3c-4c8a-8e11-d43883ee4268","007968217-0","Zoumaling",,2015-07-04,,,Lost,,
"Emily Wheeler","[email protected]","ewheelera","in felis","leo odio","quam sapien varius","Roombo","201954480670574","527b2445-2c67-4f76-912f-6ec42400a584","441402118-9","Lutsā€™k","Suspendisse potenti. In eleifend quam a odio. In hac habitasse platea dictumst.",2016-05-18,,Bitwolf,Lost,36,Wikizz
"Wanda Fox","[email protected]","wfoxb","vel ipsum praesent","potenti nullam porttitor","augue vestibulum rutrum rutrum neque","Yakijo","3567636803247480",,"863829558-8","Pravdinsk","Aenean fermentum. Donec ut mauris eget massa tempor convallis. Nulla neque libero, convallis eget, eleifend luctus, ultricies eu, nibh.",2015-11-10,,,Lost,14,Linkbridge
,,,odio elementum,posuere cubilia curae,ante vel ipsum praesent blandit,Oyope,3529462300753730,9a863968-180e-451d-a723-dc85e2d5d8ff,742114860-4,Panay,Pellentesque at nulla. Suspendisse potenti. Cras in purus eu magna vulputate luctus.,2016-03-20,881.4,,,30,Tagcat

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