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

Import Assets and other components from CSV/Excel File

Open deeepakkumarthakur16 opened this issue 6 years ago • 8 comments

CSV Import Feature must required to import data from Excel/CSV file so we can easily setup new server and also can use this to migrate data.

deeepakkumarthakur16 avatar May 07 '20 14:05 deeepakkumarthakur16

This exists. Whats the question?

mnemonicly avatar May 12 '20 16:05 mnemonicly

For context to @dmeltzer 's comment... https://snipe-it.readme.io/docs/importing

Snipe-IT Documentation
There is a Web GUI importer available in the Import section that will allow you to upload and process and import a comma-delimited CSV through the web interface. The importer may choke on larger imports, so if you have more than several hundred records to import, you may wish to use the command-line...

CSAS-Nicholas-Roberts avatar May 13 '20 17:05 CSAS-Nicholas-Roberts

I try to use GUI and but stuck on processing msg and if i use cli then it complete quite fast but none of serial number imported. Any idea why serial number missing from import? Capture

deeepakkumarthakur16 avatar May 28 '20 07:05 deeepakkumarthakur16

I also started having this problem today too.

I've sat on the import page for over an hour while it said it was "processing" a 135.43KB file (500 assets) and it didn't go anywhere.

Snipe-IT - Version v4.9.1 - build 4341 PHP-7.2.17

After looking through debug mode I noticed when I started to process the import that there were some calls out to the Slack API that were erroring out. I removed the Slack integration and whaddya know, it processed right away. I think it has to do with the import's new asset creations calling out to the Slack API and then it timing out due to the high number of request and in turn causing the import to hang.

@deeepakkumarthakur16 are you by chance using the Slack integration? If so, could you disable, and try the import again? How many assets are you trying to import btw? Make sure you have something set for each of the import fields too.

CSAS-Nicholas-Roberts avatar Jun 02 '20 19:06 CSAS-Nicholas-Roberts

Thanks for update. No, I am not using slack integration. Anyway i have imported assets from CLI but unfortunately Serial Number missing in import. I will try GUI to see if i can import serial number too.

deeepakkumarthakur16 avatar Jun 03 '20 08:06 deeepakkumarthakur16

I had the same issue on localhost. Tried multiple solutions but what worked for me was a small change in .env file. In Outgoing Mail section change "MAIL_DRIVER=smtp" to "MAIL_DRIVER=log"

Import worked after that.

ultimatedevzee avatar Jun 09 '20 07:06 ultimatedevzee

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

stale[bot] avatar Aug 08 '20 08:08 stale[bot]

This issue has been automatically closed because it has not had recent activity. If you believe this is still an issue, please confirm that this issue is still happening in the most recent version of Snipe-IT and reply to this thread to re-open it.

stale[bot] avatar Aug 16 '20 08:08 stale[bot]