# File field error when copying entity

**URL:** <https://community.viktor.ai/t/file-field-error-when-copying-entity/725>\
**Category:** Bug & Error Reports\
**Created:** [2 November 2022 08:22 UTC](https://community.viktor.ai/t/file-field-error-when-copying-entity/725 "2022-11-02T08:22:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johan\_Tuls](https://community.viktor.ai/letter_avatar_proxy/v4/letter/j/bbce88/32.png) [@Johan\_Tuls](https://community.viktor.ai/u/Johan_Tuls)\
**Post date:** [2 November 2022 08:22 UTC](https://community.viktor.ai/t/file-field-error-when-copying-entity/725/1 "2022-11-02T08:22:38Z")

</div>

## Which tool versions are you using?

SDK: v13.5.1  
Platform: v2022.x.x  
Python: v3.10  
Isolation mode: venv

## Current Behavior

I copy an entity with a FileField. After copying this results in:  
 ![image](https://community.viktor.ai/uploads/default/original/1X/f4721a8db9b3d80a6dacc40f31311ca739b42c1c.png)

## Expected Behavior

It should also correctly copy the file.  
File should be downloadable and copying should also copy the File selected.

---

<div class="post-metadata">

**Author:** ![Daniel](https://community.viktor.ai/user_avatar/community.viktor.ai/daniel/32/233_2.png) [@Daniel](https://community.viktor.ai/u/Daniel)\
**Post date:** [2 November 2022 09:51 UTC](https://community.viktor.ai/t/file-field-error-when-copying-entity/725/2 "2022-11-02T09:51:27Z")

</div>

Thanks for reporting this.  
[Filefields (and files) are not copied when copying an instance](https://community.viktor.ai/t/filefields-and-files-are-not-copied-when-copying-an-instance/542) also mentions this issue and as stated in that post by my colleague we are already tracking it internally. I will once-again add your report to it.

---

<div class="post-metadata">

**Author:** ![Daniel](https://community.viktor.ai/user_avatar/community.viktor.ai/daniel/32/233_2.png) [@Daniel](https://community.viktor.ai/u/Daniel)\
**Post date:** [2 November 2022 09:52 UTC](https://community.viktor.ai/t/file-field-error-when-copying-entity/725/3 "2022-11-02T09:52:25Z")

</div>

For completeness I will also link this post in the other one and close it.

---

<div class="post-metadata">

**Author:** ![Daniel](https://community.viktor.ai/user_avatar/community.viktor.ai/daniel/32/233_2.png) [@Daniel](https://community.viktor.ai/u/Daniel)\
**Post date:** [2 November 2022 09:52 UTC](https://community.viktor.ai/t/file-field-error-when-copying-entity/725/4 "2022-11-02T09:52:56Z")

</div>

Closed on 2 November 2022 09:52 UTC


