# exceljs - Execution Crashed error in AppEngine's AppFunction

**URL:** <https://community.dynatrace.com/t/exceljs-execution-crashed-error-in-appengines-appfunction/39714>\
**Category:** Developer Q&A Forum\
**Tags:** app-functions\
**Created:** [May 12, 2023, 8:12am UTC](https://community.dynatrace.com/t/exceljs-execution-crashed-error-in-appengines-appfunction/39714 "2023-05-12T08:12:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![william\_cher](https://avatars.discourse-cdn.com/v4/letter/w/aeb1de/32.png) [@william\_cher](https://community.dynatrace.com/u/william_cher)\
**Post date:** [May 12, 2023, 8:12am UTC](https://community.dynatrace.com/t/exceljs-execution-crashed-error-in-appengines-appfunction/39714/1 "2023-05-12T08:12:27Z")

</div>

exceljs ([GitHub - exceljs/exceljs: Excel Workbook Manager · GitHub](https://github.com/exceljs/exceljs)) is working fine in local development app function (creating workbook, adding/editing worksheet, export as buffer).

When it is deployed, and this app function api is called from workflow, the following error message returned:

```javascript
{"error":{"code":540,"message":"Execution crashed","details":{"logs":"","type":"UNCAUGHT_EXCEPTION","message":"Uncaught error"}}}

```

Created a separate app function to isolate and test the exceljs library, the similar error message returned as above.

Code block for reference:

```javascript
import ExcelJS from "exceljs";

const workbook = new ExcelJS.Workbook();

export default async function (payload: unknown = undefined) {
  return "Hello world";
}

```

What is the possible cause for the crashing message above? which it works well in local development but not in production.

Thank you.

---

<div class="post-metadata">

**Author:** ![educampver](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/educampver/32/29917_2.png) [@educampver](https://community.dynatrace.com/u/educampver)\
**Post date:** [May 12, 2023, 10:18am UTC](https://community.dynatrace.com/t/exceljs-execution-crashed-error-in-appengines-appfunction/39714/2 "2023-05-12T10:18:25Z")

</div>

Hi&nbsp;[@william\_cher](https://community.dynatrace.com/user/62755), app functions can’t have any node dependencies. Once deployed, they run in the Dynatrace JavaScript runtime, which has limited access to only a few APIs. You can read more about it in the [developer portal](https://developer.dynatrace.com/reference/javascript-runtime/). You can still use such dependencies in your app’s React frontend though.

Feel free to also read more about app functions’ [use cases](https://developer.dynatrace.com/develop/functions/#use-cases).
