snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

CSV import - no location_ID

Open schmidiij opened this issue 9 years ago • 6 comments

Expected Behavior (or desired behavior if a feature request)

If i import a .csv with all attributes, the import works. BUT the location will be not set correctly. in the DB: it's say about the asset: location_ID NULL


Location: grafik


Import-View: grafik


After Import: grafik


it's see correctly but if i click the location: it's empty grafik


and the DB: grafik


and when i make a export it's say: grafik

is this normal?

Actual Behavior

Not a correctly (?) import


Please confirm you have done the following before posting your bug report:


Provide answers to these questions:

  • Is this a fresh install or an upgrade?

New: Installation is from 04.12

  • Version of Snipe-IT you're running 4.1.6

  • Version of PHP you're running 7.1.9

  • Version of MySQL/MariaDB you're running MySQL - 5.7.19

  • What OS and web server you're running Snipe-IT on Windows Server 2012 R2 - WAMP64

  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) WAMP Installation-Guide

  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error

  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error

  • If a stacktrace is provided in the error, include that too.

  • Any errors that appear in your browser's error console.

  • Confirm whether the error is reproduceable on the demo: https://snipeitapp.com/demo.

  • Include any additional information you can find in app/storage/logs and your webserver's logs.

  • Include what you've done so far in the installation, and if you got any error messages along the way.

  • Indicate whether or not you've manually edited any data directly in the database

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

https://snipe-it.readme.io/docs/getting-help

Test-Import.xlsx

schmidiij avatar Dec 04 '17 12:12 schmidiij

Use literal location variable, not the DB/programs 'id' Say I have a location that is "San Francisco Office" That is the value the importer is looking for.

dpgatewood avatar Dec 05 '17 00:12 dpgatewood

And also 'Default Location' and 'Location' are two different settings. 'Default Location' is the fall back variable anytime asset is not assigned or deployed, whilst the Location can dictate its current location.

dpgatewood avatar Dec 05 '17 00:12 dpgatewood

Sorry but i don't understand the problem? i have in the .csv under "Location" --> "Lagerraum" after the import, under Settings -> the Location is empty

is the import "location" not the this setting? grafik

schmidiij avatar Dec 05 '17 06:12 schmidiij

ahh ok, i see the problem...

Can i import a asset directly to a location?

Like this: grafik

schmidiij avatar Dec 05 '17 10:12 schmidiij

CSV example Asset Tag, Model Name, Serial Number, Location, Category 2127809, PSC67N845, DP676-7654, San Francisco Office, Printer 2127810, LJ4560, AF65Z-244, New York Distribution Center, Printer 2127811, 2359LCD, VS5556178, San Francisco Office, Monitor

dpgatewood avatar Dec 05 '17 14:12 dpgatewood

Test.xlsx

i create a test.csv (attachment) and this is the same (save as a .xlsx for upload); grafik

after the import i click of San Francisco Office and this is emtpy; grafik

How i can import a asset directly to a location?

schmidiij avatar Dec 06 '17 06:12 schmidiij