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

Parents
  • 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?
Reply
  • 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?
Children
No Data