<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Call to App Function Fails With An &amp;quot;Execution crashed&amp;quot; Error in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298344#M1661</link>
    <description>&lt;P&gt;Hi&amp;nbsp;skirkham,&lt;/P&gt;
&lt;P&gt;I see two different app IDs:&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;my.data.builder&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;my.cwv.data.builder&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please double-check that you're actually using the correct app ID when calling your function.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;David&lt;/P&gt;</description>
    <pubDate>Fri, 24 Apr 2026 14:26:28 GMT</pubDate>
    <dc:creator>doesterr</dc:creator>
    <dc:date>2026-04-24T14:26:28Z</dc:date>
    <item>
      <title>Call to App Function Fails With An "Execution crashed" Error</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298338#M1660</link>
      <description>&lt;P&gt;We are considering the use of App Functions to provide standardised and simplified approach to certain datasets, however the test platform that I've set up (simple app and notebook module) isn't working. Most of this basic setup is either taken from the docs or the helpers.&lt;BR /&gt;&lt;BR /&gt;The app was created using the app creator and has the following details:&lt;BR /&gt;AppId = my.data.builder&lt;/P&gt;&lt;P&gt;and the App Function (again created through the app creator) is as basic as...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;export default function () {
  return "This Worked";
}&lt;/LI-CODE&gt;&lt;P&gt;... with a name of "getDashboardData"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The notebook JavaScript module has the following script&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import { functions } from '@dynatrace-sdk/adhoc-utils';

const response = await functions.call('my.data.builder', 'getDashboardData', {}).then((res) =&amp;gt; res.text());&lt;/LI-CODE&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However, we I run this I get a "&lt;SPAN&gt;&lt;SPAN&gt;Execution crashed" exception and details of...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;{
  "error": {
    "code": 540,
    "message": "Execution crashed.",
    "details": {
      "logs": "Error: Function getDashboardData within the app my.data.builder failed\n at file:///opt/sdk_modules/@dynatrace-sdk/adhoc-utils@1/esm/index.js:30:13\n at eventLoopTick (ext:core/01_core.js:177:7)\n at async Object.call (file:///opt/sdk_modules/@dynatrace-sdk/adhoc-utils@1/esm/index.js:22:20)\n at async file:///script.ts:3:18\n",
      "type": "UNCAUGHT_EXCEPTION",
      "message": "Uncaught (in promise) Error: Function getDashboardData within the app my.data.builder failed",
      "details": {
        "lineNumber": 30,
        "startColumn": 13,
        "stack": "Error: Function getDashboardData within the app my.data.builder failed\n at file:///opt/sdk_modules/@dynatrace-sdk/adhoc-utils@1/esm/index.js:30:13\n at eventLoopTick (ext:core/01_core.js:177:7)\n at async Object.call (file:///opt/sdk_modules/@dynatrace-sdk/adhoc-utils@1/esm/index.js:22:20)\n at async file:///script.ts:3:18"
      }
    }
  },
  "packageVersions": {
    "@dynatrace-sdk/adhoc-utils": "1.0.2"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clearly, I've missed something somewhere - would you be able to point me in the right direction please?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 14:35:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298338#M1660</guid>
      <dc:creator>skirkham</dc:creator>
      <dc:date>2026-04-24T14:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Call to App Function Fails With An "Execution crashed" Error</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298344#M1661</link>
      <description>&lt;P&gt;Hi&amp;nbsp;skirkham,&lt;/P&gt;
&lt;P&gt;I see two different app IDs:&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;my.data.builder&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;my.cwv.data.builder&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please double-check that you're actually using the correct app ID when calling your function.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;David&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 14:26:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298344#M1661</guid>
      <dc:creator>doesterr</dc:creator>
      <dc:date>2026-04-24T14:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Call to App Function Fails With An "Execution crashed" Error</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298347#M1663</link>
      <description>&lt;P&gt;Thanks for the heads up David, however it is the same error message from both sources.&lt;BR /&gt;&lt;BR /&gt;I initially created a more functional AppFunction (which tests fine within VSCode) but as I received the error I created a new app and the more simplified AppFunction just to make sure it wasn't within the code.&lt;BR /&gt;&lt;BR /&gt;Is there any permissions needed for allowing AppFunctions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 14:38:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298347#M1663</guid>
      <dc:creator>skirkham</dc:creator>
      <dc:date>2026-04-24T14:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Call to App Function Fails With An "Execution crashed" Error</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298350#M1664</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/19963"&gt;@skirkham&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, there is a specific permission for running App Functions.&lt;/P&gt;&lt;P&gt;Please check whether the user running the Notebook has at least:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ALLOW app-engine:apps:run;
ALLOW app-engine:functions:run;&lt;/LI-CODE&gt;&lt;P&gt;Or assign the built-in/default AppEngine - User policy, which already includes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ALLOW app-engine:apps:run, app-engine:functions:run, app-engine:edge-connects:read;&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;app-engine:functions:run&lt;/STRONG&gt; is the important one because it enables the App Function executor.&lt;/P&gt;&lt;P&gt;That said, if the permission were completely missing, I would normally expect more of an authorization/permission error. Since your error says the function “failed” and returns code 540, it may also mean the function is being reached but crashing inside the App Function runtime.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 15:06:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298350#M1664</guid>
      <dc:creator>MaximilianoML</dc:creator>
      <dc:date>2026-04-24T15:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Call to App Function Fails With An "Execution crashed" Error</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298406#M1665</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for the detail, I have checked and the user does already have those permissions and I agree that if it were related to permissions I should see a different error message.&lt;BR /&gt;&lt;BR /&gt;I'll drop a ticket into support.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2026 07:21:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298406#M1665</guid>
      <dc:creator>skirkham</dc:creator>
      <dc:date>2026-04-27T07:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Call to App Function Fails With An "Execution crashed" Error</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298412#M1666</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/19963"&gt;@skirkham&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yeah should be, but sometimes errors are omitting details like missing permissions, I learned in the worst way... almost 1 week by missing one specific scope&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2026 10:48:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298412#M1666</guid>
      <dc:creator>MaximilianoML</dc:creator>
      <dc:date>2026-04-27T10:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Call to App Function Fails With An "Execution crashed" Error</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298481#M1667</link>
      <description>&lt;P&gt;For anyone else seeing this issue...&lt;BR /&gt;&lt;BR /&gt;A quick conversation with support identified the issue which was due to the application been deployed in development mode, which runs code locally and therefore my notebook wasn't able to connect to the app function, hence the error. However, once the app was fully deployed then the notebook was able to call the function and return the required data.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2026 18:22:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298481#M1667</guid>
      <dc:creator>skirkham</dc:creator>
      <dc:date>2026-04-27T18:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Call to App Function Fails With An "Execution crashed" Error</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298650#M1668</link>
      <description>&lt;P&gt;Thank you for sharing what the issue was!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2026 13:34:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Call-to-App-Function-Fails-With-An-quot-Execution-crashed-quot/m-p/298650#M1668</guid>
      <dc:creator>doesterr</dc:creator>
      <dc:date>2026-04-29T13:34:46Z</dc:date>
    </item>
  </channel>
</rss>

