# Adding invoice document to order not working

**URL:** <https://forum.shopware.com/t/adding-invoice-document-to-order-not-working/70294>\
**Category:** Installation / Getting Started (EN)\
**Created:** [19. Oktober 2020 um 14:48 UTC](https://forum.shopware.com/t/adding-invoice-document-to-order-not-working/70294 "2020-10-19T14:48:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heikop](https://avatars.discourse-cdn.com/v4/letter/h/f19dbf/32.png) [@Heikop](https://forum.shopware.com/u/Heikop)\
**Post date:** [19. Oktober 2020 um 14:48 UTC](https://forum.shopware.com/t/adding-invoice-document-to-order-not-working/70294/1 "2020-10-19T14:48:21Z")

</div>

Hello,

Normaly its possible to add a invoice pdf to a order.

When i try to do this the document will not be added to the order and i get a error 500 in console.

It is possible though to see the generated pdf in example mode.

&nbsp;

Any suggestions to get this document feature to work?

Regards,

Heiko

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [19. Oktober 2020 um 15:15 UTC](https://forum.shopware.com/t/adding-invoice-document-to-order-not-working/70294/2 "2020-10-19T15:15:51Z")

</div>

Did you check the network tab of your browser for a matching error message? There is always a more explicit error message behind the 500.

---

<div class="post-metadata">

**Author:** ![Heikop](https://avatars.discourse-cdn.com/v4/letter/h/f19dbf/32.png) [@Heikop](https://forum.shopware.com/u/Heikop)\
**Post date:** [19. Oktober 2020 um 15:22 UTC](https://forum.shopware.com/t/adding-invoice-document-to-order-not-working/70294/3 "2020-10-19T15:22:21Z")

</div>

Thank you for your reply.

Added an attachement with the console log.

&nbsp;

```
{errors: [{code: "0", status: "500", title: "Internal Server Error",…}]}
errors: [{code: "0", status: "500", title: "Internal Server Error",…}]
0: {code: "0", status: "500", title: "Internal Server Error",…}
code: "0"
detail: "Attempted to call an undefined method named "getSalesChannelId" of class "Shopware\Core\Framework\Api\Context\AdminApiSource"."
status: "500"
title: "Internal Server Error"

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![bwolfrum](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@bwolfrum](https://forum.shopware.com/u/bwolfrum)\
**Post date:** [5. November 2020 um 20:12 UTC](https://forum.shopware.com/t/adding-invoice-document-to-order-not-working/70294/4 "2020-11-05T20:12:46Z")

</div>

```
 Is there already a solution here?
```

---

<div class="post-metadata">

**Author:** ![Heikop](https://avatars.discourse-cdn.com/v4/letter/h/f19dbf/32.png) [@Heikop](https://forum.shopware.com/u/Heikop)\
**Post date:** [6. November 2020 um 10:39 UTC](https://forum.shopware.com/t/adding-invoice-document-to-order-not-working/70294/5 "2020-11-06T10:39:49Z")

</div>

Thank you for your reply.

Yes, an recent update of the mollie module solved the problem.

This thread can be closed as solved
