Skip to content

[Bug]: running php artisan snipeit:import --update --item-type User <csvfile> fails to update users #18135

@clamjamfrie

Description

@clamjamfrie

Snipe-IT Version

v8.3.4 - build 20218 (master)

PHP Version

8.3.6

Composer Version

2.8.9

MySQL/MariaDB version

MariaDB 10.11.13

How did you install Snipe-IT?

Git install

Is this a fresh install or an upgrade?

Upgrade

What happened?

Running php artisan snipeit:import --update --item-type User csvfile.csv fails to update users. No error occurs - looks like it succeeds it just doesn't actually do the update.
New users are added though.
The same csv does update users through the website's import facility though.

This was working until I updated to 8.3.4. It was working in version v8.0.4 - build 17333 (master)

The csv file has the following header:
First Name,Last Name,Email,Username,Company,Department,Location,job title

Regards,

Ian.

What browsers are you seeing the problem on?

No response

Can you reproduce this on the public demo?

N/A

Do you have full multiple company support enabled?

Yes

If you have full multiple company support enabled, do you have location scoping to company enabled?

No

Application log output

php artisan snipeit:import --update --item-type User /base/conf/staff_import_KmqWkk.csv
======= Importing Items from /base/conf/staff_import_KmqWkk.csv =========
Import finished.

Browser console output

Common Issues

  • I have searched this repo for existing issues related to my issue (including closed issues)
  • My APP_URL is set correctly in my .env file (including http or https and no trailing slash)
  • I have searched the official Snipe-IT documentation and have checked the Common Issues documentation (where applicable)
  • I have run database migrations (where applicable).
  • I have attached screenshots and/or videos of the issue (where applicable)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions