snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.51k stars 3.08k forks source link

A first-level heading #14046

Open Vasistsrinivas opened 7 months ago

Vasistsrinivas commented 7 months ago

Debug mode

Describe the bug

Initially I receive the error Snipe-IT Erroe-model_id The model id field is required. Them Snipe-IT Erroe-category_id The category id field is required. After correcting I have received new error "Your file import is complete, but we did receive an error. This is usually caused by third-party API throttling from a notification webhook (such as Slack) and would not have interfered with the import itself, but you should confirm this."

OS - Windows 10 Pro PHP - 8.0.26 SQL - 5.7.40 Apache - 2.4.54.2 WAMP Server - wampserver3.3.0_x64 snipe-it-6.1.1

I have uploaded both screenshot. Kindly help me to resolve these issue. Error in Snipe IT Snipe-IT Erroe-model_id The model id field is required

Reproduction steps

  1. I have created Custom Fields & Fieldsets

  2. Uploaded .csv file Error in Snipe IT Snipe-IT Erroe-model_id The model id field is required

  3. ...

Expected behavior

Asset should visible in All Asset tab

Screenshots

Error in Snipe IT Snipe-IT Erroe-model_id The model id field is required

Snipe-IT Version

snipe-it-6.1.1

Operating System

Windows 10 Pro 64 bit

Web Server

2.4.54.2

PHP Version

8.0.26

Operating System

Windows 10 Pro 64 bit

Browser

Google Chrome

Version

Version 120.0.6099.72 (Official Build) (64-bit)

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

C:\wamp64\www\snipe-it>php -m
[PHP Modules]
bcmath
bz2
calendar
com_dotnet
Core
ctype
curl
date
dom
exif
fileinfo
filter
gd
gettext
gmp
hash
iconv
imap
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
xdebug
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Xdebug
Zend OPcache

Additional context

It Is Fresh Installation Error in Snipe IT Snipe-IT Erroe-model_id The model id field is required

welcome[bot] commented 7 months ago

šŸ‘‹ 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.

snipe commented 7 months ago

Not exactly clear what the issue is. It sounds like there is no model in your import. Models are required to import assets.

Vasistsrinivas commented 7 months ago

After the reinstallation of the Snipe-IT WAMP Server on Windows 10 Pro PC , the error "Unknown File model_id: The model id field is required".

The Server Details are as follows:

OS - Windows 10 Pro PHP - 8.0.26 SQL - 5.7.40 Apache - 2.4.54.2 WAMP Server - wampserver3.3.0_x64 snipe-it-6.1.1

Annotation 2023-12-19 095319

I have uploaded the screenshot. Kindly help me to resolve these issue.

Thanks & Regards, Vasistsrinivas

NPGH0 commented 7 months ago

try using the latest build. i know that at least in Build 11936 (snipeIT v 6.2.3) this error has been solved: "Your file import is complete, but we did receive an error. This is usually caused by third-party API throttling from a notification webhook (such as Slack) and would not have interfered with the import itself, but you should confirm this."

also according to model_id and category_id errors, at least one line in your import file is missing those information, make sure that these lines also contain all required information. Here you can see which fields are required for an import: https://snipe-it.readme.io/docs/importing

Snipe-IT Documentation
Importing Assets and More
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...
Vasistsrinivas commented 7 months ago

After the reinstallation of the Snipe-IT WAMP Server on Windows 10 Pro PC , the error "Unknown File model_id: The model id field is required".

After the reinstallation & configuration of snipe-it- v 6.2.3,The result is the same. Request you to help me in resolving this issue.

The Server Details are as follows:

OS - Windows 10 Pro PHP - 8.0.26 SQL - 5.7.40 Apache - 2.4.54.2 WAMP Server - wampserver3.3.0_x64 snipe-it-6.2.3

Annotation 2023-12-19 095319

I have uploaded the screenshot. Kindly help me to resolve these issue.

Thanks & Regards, Vasistsrinivas

NPGH0 commented 7 months ago

also according to model_id and category_id errors, at least one line in your import file is missing those information, make sure that these lines also contain all required information. Here you can see which fields are required for an import: https://snipe-it.readme.io/docs/importing

Snipe-IT DocumentationImporting Assets and MoreThere 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...

this still is valid, check your csv file. you have to make sure that all required fields are in your csv file. or upload it/paste it here so we can check the content BTW: your screenshot still says 6.1.1 as SnipeIT Version ;)

Snipe-IT Documentation
Importing Assets and More
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...