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

CSV Import Error: "Error Uploading File" When Updating Asset Status #16181

Closed
Kanishka-Deshan opened this issue Feb 5, 2025 · 10 comments
Closed

Comments

@Kanishka-Deshan
Copy link

When attempting to import a CSV file to update asset statuses, the system returns the following error:

"Error uploading file. Please check that there are no empty rows and that no column names are duplicated."

Image

The file fails to upload with the error message, even though there are no empty rows or duplicate column names.

@Kanishka-Deshan
Copy link
Author

@snipe I really appreciate if you be able to look into this.

@efurban
Copy link

efurban commented Feb 18, 2025

Same issue here. did an export then trying to import it again. no luck.

@snipe
Copy link
Owner

snipe commented Feb 18, 2025

As always, we need to know:

  • what version of Snipe-IT you're running
  • what's in your app logs

There is no way for us to help without knowing those things.

@cpietras-PVA
Copy link

cpietras-PVA commented Feb 20, 2025

I also have same issue:

Version v7.1.16 - build 16564 (master)

Log entry for error when I attempt upload:
#56 /var/www/html/snipe/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter() 
#57 /var/www/html/snipe/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle()
#58 {main}
"}
[2025-02-20 14:44:08] production. ERROR: Error: Class "Onnov\DetectEncoding\EncodingDetector" not found in /var/www/html/snipe/app/Http/Controllers/Api/ImportController.php:50 Stack trace:

#0 /var/www/html/snipe/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Api\ImportController->store()
#1 /var/www/html/snipe/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction()
#2 /var/www/html/snipe/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch()
#3 /var/www/html/snipe/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#4 /var/www/html/snipe/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run()
#5 /var/www/html/snipe/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php (144): Illuminate\Routing\Router->Illuminate\Routing\{closure}()
#6 /var/www/html/snipe/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

@snipe
Copy link
Owner

snipe commented Feb 20, 2025

Did you run composer install?

@cpietras-PVA
Copy link

Composer is on version 2.8.1 2024-10-04
I assume you mean for me to update?
I will have to figure out how to do so on OS stream 9

@snipe
Copy link
Owner

snipe commented Feb 20, 2025

composer install is not the same as updating composer, and you should definitely never run composer update on Snipe-IT, as that will make your local version out of step with our dependencies, which will make helping you 1000x harder.

The command is either going to be composer install --no-dev or php composer.phar install --no-dev.

That will ask composer to bring your local dependencies up to date with what our code is expecting.

@cpietras-PVA
Copy link

Huzzah doing composer install --no-dev within Snipe folder worked like a charm. thanks for the quick replies.

@snipe
Copy link
Owner

snipe commented Feb 20, 2025

Glad to hear you're all sorted! In the future, if you've resolved your issue, please try to remember to close your ticket - it helps us out a lot. (We have to manage a lot of tickets.)

tenant-tyvm

@snipe snipe closed this as completed Feb 20, 2025
@cpietras-PVA
Copy link

Hopefully @Kanishka-Deshan will also be resolved and can close ticket.

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

4 participants