Sites cannot display dashboard record data when ID is of type text

This is a warning/awareness post for Sites implementing record views.

I've noticed that site's do not work to display dashboard record data when the ID is of type text. The error it gives is APNX-1-4198-000, which isn't very relevant. This hasn't been an issue with viewing the Record in Tempo.

The identifier in question was in the following format: 1-XXXX and when viewing it in Tempo it displays the record dashboard correctly. When viewing it in Sites, it errors saying "could not find variable XXXX." I changed it to one, and it errors saying "could not find variable one." However it works fine if the ID is set to 1.

I find it strange that the 1- is removed from 1-XXXX. I think it to do with creating the unique URL.

OriginalPostID-224533

OriginalPostID-224533

  Discussion posts and replies are publicly visible

  • 0
    Certified Senior Developer
    Sally et. al - We are seeing similar issue in Appian 7.11 when we performed load testing:
    InvalidVariableException: Could not find variable 'cons!CCAR_DOC_NOT_FOUND'
    InvalidVariableException: Could not find variable 'regexmatch'

    Any chance this is related to the issue being discussed? The variables are present in the environment. Every time this error message shows up, the performance gets progressively worse.
  • @Raj - your issue is different to the topic of the post, its always best advive to create a new topic so people see it. In your case, the issue is "regexmatch" is a typo, I think you actually mean "RegexIsMatch" which is part of the Shared Component - https://forum.appian.com/suite/tempo/records/item/lMBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUhemjLnMWmh9flkoBj4U4HmAkkPRpCPt5Lw/view/summary
  • 0
    Certified Senior Developer
    Sally - I know the documentation says "RegexIsMatch". However, once you install the plug in, the function name is "RegexMatch". It shows as such in the admin console and it also shows up when we type the name in an expression rule. Moreover, the other constant in the error message is also present in the environment.
    (1) Why does Appian think the constant (CCAR_DOC_NOT_FOUND) and function (regexmatch) are actually variables and give a InvalidVariableException?
    (2) Why would it not be able to find either of these when they are clearly in the environment?
  • No worries, at this point, I would ask you create a new post and copy these questions there? That way other people will be able to help and find the answers as well
  • 0
    Certified Senior Developer
    Thanks Sally. We have created a support ticket.