Skip to main content
April 17, 2025
Question

Tasks throwing the error "The Requested Task Is Not AvailableThe task may not exist or you may not have permission to view it."

  • April 17, 2025
  • 16 replies
  • 4 views

Hi,

We have a custom email notification configured for a task and this is done using the tp!id parameter. the Task URL that gets generated looks like: /suite/tempo/tasks/task/<task-id>. When the user gets the task assigned and opens it from the tasks tab, it works fine. The URL for this contains the opaque task id. But when the user open the task via the custom email (tp!id), the task throws the error:

The Requested Task Is Not Available The task may not exist or you may not have permission to view it.

The same code works in one of our Appian environments - version 25.1.286.0 and it doesn't work in the environment - version : 25.1.236.0. Any idea if this has got anything to do with the Appian version?

Thanks

    16 replies

    stefanhelzle0001
    April 18, 2025

    How do you send this email and how do you get the task id?

    April 18, 2025

    The email is sent using the Send Email smart service. We are getting the task Id from the process Id using a!queryProcessAnalytics

    stefanhelzle0001
    April 18, 2025

    How do you trigger that email node? How do you make sure it runs AFTER the task is assigned?

    mathieud0001
    April 18, 2025

    Are you using this method to generate the url: docs.appian.com/.../fnc_scripting_a_urlfortask.html

    April 18, 2025

    This is the method we're using:

    ="<a href = """ & rule!APN_getSiteUrl() & "tempo/tasks/task/" & 
    rule!GetActiveTaskIdByProcessID(
      processId:ri!sysProcessId
    )
    & """>Click Here to View the Task.</a>"

    Even though there are other methods of doing this, we have this working in PROD and may not be able to make changes to this code as this is not working in certain environments.