# Media items import
https://ownzones.atlassian.net/browse/CD-8335
https://ownzones.atlassian.net/browse/CD-8227
https://ownzones.atlassian.net/browse/CD-8372
Checklist (check the comments on the tickets as well):
- csv with entity types that doesn't match the file type
(mov/captions, mov/audio, srt/media container, mov/image, jpg/image)
- reimport csv for media items with entity type already assigned (+ display name) - 2 cases
- correct csv file - task works and the entity type/display name are updated
- incorrect csv file - task fails, FE error + report file on task and previous metadata is kept (entity is not deleted)
- entity type from csv not existing in org - error on task in FE + report file
- entity type missing from csv (since is not required) - task completed and no change for metadata
- import a file with language (the file's language, not from metadata sets!!) not initialised on org - update entity type or attribute (file - https://connect.tatooine.ownzones.dev/tatooine/files/e1af2693-e478-4279-9668-a44dcd5de0ff) - error is thrown `Error: The language 'de-DE' is not initialized for this organization!`
- use a language that is not initialised on org as locale for metadata (or any invalid locale) - task fails `Error: The language 'test' is not initialized for this organization!`
- import a file of an unknown type (not recognized by connect) - any entity type can be assigned to the file (https://connect.newstaging.ownzones.dev/ml-team/workflows/4ddbbea3-34e5-4f1d-84ac-7c27c3c61b04)
staging (ML team org):
- wrong types/missing lang:
https://connect.newstaging.ownzones.dev/ml-team/workflows/636349a8-72ca-41ed-8d83-befc9a6f4bac
Note: it takes up to 4 min for a task to fail (the above wf has 4 tasks)
- correct types/lang initialised:
https://connect.newstaging.ownzones.dev/ml-team/workflows/667c0bb0-8f44-40c1-86ca-0675087466f4
- update display name, missing type from org, unknown type (used for a jpg file)
https://connect.newstaging.ownzones.dev/ml-team/workflows/1ecd33dd-04ed-4671-a6a9-0a643f5148a0
https://connect.newstaging.ownzones.dev/ml-team/workflows/4ddbbea3-34e5-4f1d-84ac-7c27c3c61b04