# Media missing from shared Anki deck created from an imported excel file

**URL:** <https://forums.ankiweb.net/t/media-missing-from-shared-anki-deck-created-from-an-imported-excel-file/31619>\
**Category:** Syncing & AnkiWeb\
**Created:** [June 28, 2023, 1:40am UTC](https://forums.ankiweb.net/t/media-missing-from-shared-anki-deck-created-from-an-imported-excel-file/31619 "2023-06-28T01:40:44Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmiller](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dmiller](https://forums.ankiweb.net/u/dmiller)\
**Post date:** [June 28, 2023, 1:40am UTC](https://forums.ankiweb.net/t/media-missing-from-shared-anki-deck-created-from-an-imported-excel-file/31619/1 "2023-06-28T01:40:44Z")

</div>

I created an Anki deck by importing fields with embedded media from an Excel file. Everything works fine on Anki Desktop and on my own Ankiweb account, but when I try to share the file the media is missing.

The only workaround I’ve discovered is manually to enter the media file name in the Question or Answer column on Anki desktop’s browse notes view. (It also works click on the image html and then on the “Question” or “Answer” column.) After I do this, the media appears on my shared decks. But it takes a long time to correct each card manually.

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [June 29, 2023, 9:15am UTC](https://forums.ankiweb.net/t/media-missing-from-shared-anki-deck-created-from-an-imported-excel-file/31619/2 "2023-06-29T09:15:57Z")

</div>

What does Tools\>Check Media report, and what happens if you export again after running it?

---

<div class="post-metadata">

**Author:** ![dmiller](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dmiller](https://forums.ankiweb.net/u/dmiller)\
**Post date:** [June 29, 2023, 5:50pm UTC](https://forums.ankiweb.net/t/media-missing-from-shared-anki-deck-created-from-an-imported-excel-file/31619/3 "2023-06-29T17:50:47Z")

</div>

Check Media reports 224 unused files. Exporting the deck (and reimporting) doesn’t change anything.

Here is a link to the deck I successfully shared after manually working through each line of the “Question” field in Browse: [Biblical Hebrew Picture Flashcards - AnkiWeb](https://ankiweb.net/shared/info/1128516269)

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 1, 2023, 11:34am UTC](https://forums.ankiweb.net/t/media-missing-from-shared-anki-deck-created-from-an-imported-excel-file/31619/4 "2023-07-01T11:34:37Z")

</div>

Do you mean that you had a link to the media in your card template before entering the links in each field? The former will not work: [Field Replacements - Anki Manual](https://docs.ankiweb.net/templates/fields.html#field-references)

---

<div class="post-metadata">

**Author:** ![dmiller](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dmiller](https://forums.ankiweb.net/u/dmiller)\
**Post date:** [July 1, 2023, 4:44pm UTC](https://forums.ankiweb.net/t/media-missing-from-shared-anki-deck-created-from-an-imported-excel-file/31619/5 "2023-07-01T16:44:23Z")

</div>

No, the reference to the media in the CSV file looks like this: \< img src =“אכל.png”\> (but without the space between \< and img)  
When imported into Anki, the corresponding Image field is exactly the same.  
The card front template is as follows: {{Image}}.

---

<div class="post-metadata">

**Author:** ![dmiller](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dmiller](https://forums.ankiweb.net/u/dmiller)\
**Post date:** [July 1, 2023, 4:55pm UTC](https://forums.ankiweb.net/t/media-missing-from-shared-anki-deck-created-from-an-imported-excel-file/31619/6 "2023-07-01T16:55:27Z")

</div>

After import, nothing is displayed in the “Questions” column in browser until I toggle HTML editor in the Image field of a particular card. When I click on the HTML (e.g., \< img src=“אשׁה.png”\>) and then back in the question field, the question field fills up for that particular card:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/3/3a34024bdf20d54841ae3a6fa6d7bacb38e99794.png)

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 2, 2023, 9:37am UTC](https://forums.ankiweb.net/t/media-missing-from-shared-anki-deck-created-from-an-imported-excel-file/31619/7 "2023-07-02T09:37:18Z")

</div>

Can you paste a line from the CSV file here, adding a backtick to the start and end, so the text is preserved verbatim? `Like <img src=foo.jpg> this`.

---

<div class="post-metadata">

**Author:** ![dmiller](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dmiller](https://forums.ankiweb.net/u/dmiller)\
**Post date:** [July 2, 2023, 10:51am UTC](https://forums.ankiweb.net/t/media-missing-from-shared-anki-deck-created-from-an-imported-excel-file/31619/8 "2023-07-02T10:51:41Z")

</div>

Headings: `Card Num	Image HTML	צוּרָה מִילוֹנִית	שֹׁרֶשׁ	צוּרָה דִּקְדוּקִית	גִּזְרָה	בִּנְיָן	צוּרַת הַפֹּעַל	נְטִיָּה	מִין	Unit	Definition	Tags`

Card 1: `1	<img src ="אכל.png">	אֹכֵל אֹכֶלֶת אֹכְלִים אֹכְלוֹת	אכל	פֹּעַל	פ׳א	קַל	קֹטֵל מַאֲכָל	1	to eat, consume, devour	דִּקְדוּק::פֹּעַל גִּזְרָה::פ׳א בִּנְיָן::קַל מִין::מַאֲכָל PL::1`

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 3, 2023, 2:10pm UTC](https://forums.ankiweb.net/t/media-missing-from-shared-anki-deck-created-from-an-imported-excel-file/31619/9 "2023-07-03T14:10:47Z")

</div>

Hmm. The fact that it works after viewing the note in the editor seems to imply there’s something wrong with the HTML used to describe the images, and it’s getting corrected by the editor. It’s not obvious from the line you pasted, and I’m assuming you added the space in the image tag. Would it be possible to share the csv file somewhere like Google Drive or a filesharing site, so I can see the original verbatim?

---

<div class="post-metadata">

**Author:** ![dmiller](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dmiller](https://forums.ankiweb.net/u/dmiller)\
**Post date:** [July 4, 2023, 2:26am UTC](https://forums.ankiweb.net/t/media-missing-from-shared-anki-deck-created-from-an-imported-excel-file/31619/11 "2023-07-04T02:26:47Z")

</div>

Thanks. This makes sense. My CSV file consistently has a space between the src and the equals sign.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [August 3, 2023, 2:27am UTC](https://forums.ankiweb.net/t/media-missing-from-shared-anki-deck-created-from-an-imported-excel-file/31619/12 "2023-08-03T02:27:05Z")

</div>

Closed on August 3, 2023, 2:27am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
