Importing parts #2807
-
I have a list of parts as a CSV or XLSX file, with fields SAP#, Manufacturers PN#, Manufacturers name, description, value, package, etc (35 fields/columns) When I try to import it the system waits ~10 seconds, then I get http://localhost:1337/admin/part/part/import/ -- 502 Bad Gateway nginx/1.20.2. Do you think this is related to the file format, or is something else wrong? Do I need to remove the first row of my bulk import file, which is field labels? Or does Inventree use the 1st-row text strings to match the database fields, so they can be in any order? And/or do I need to rearrange the columns to match the order that the fields are listed in the Docs? (In which case they fields would have to match precisely). I'm confused about "parameters" -- We have a lot of fields (columns) for our parts that are related to lead-time, testing, classes, last modification, etc., that don't match Inventree's default fields. How do i add the necessary fields before I do a bulk import of parts? I tried following the process for adding a parameter, but that requires a template, then I'm supposed to add the parameter to a specific part or part template. ??? That doesn't work for just adding a generic field that's nonspecific to a particular part, template, or category. Inventree, out of the box, has the following fields (below); and docs say that when importing data Inventree looks for an ID field. I tried a new, empty, left-most "id" column, and I tried changing my SAP# column to ID. Same Bad Gateway result.
When I tried importing a BOM the system give me the opportunity to match fields, but those fields weren't the same list for parts. Do you have any walk-thrus on this type of data importing? Thanks EDIT: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
The current method of uploading part information via the web front end has some issues. This is very similar to the problem we had with uploading BOM data:
Which was (eventually) fixed in #2603 Work is planned to migrate these same improvements / fixes to the part import tool. However, it's a long way off (limited developer resources). The best bet for bulk import currently is to use the importer supplied in the "admin" interface: |
Beta Was this translation helpful? Give feedback.
The current method of uploading part information via the web front end has some issues. This is very similar to the problem we had with uploading BOM data:
Which was (eventually) fixed in #2603
Work is planned to migrate these same improvements / fixes to the part import tool. However, it's a long way off (limited developer resources).
The best bet for bulk import currently is to use the importer supplied in the "admin" interface: