Skip to main content
priyankad1915
March 26, 2025
Question

Document Chat Component

  • March 26, 2025
  • 12 replies
  • 0 views

I have used this code in my interface with different approaches and get this error everytime .

  • I have used this code inside form layout and other layouts as well .
  • Use simple without any layout
  • In record summary view 
  • Try it in expression rule and use that rule in interface 

Expression evaluation error [evaluation ID = 15a08:f572c] at function a!documentsChatField [line 70]: a!documentsChatField cannot be called from user rule (APNX-1-4198-000)

{
  a!documentsChatField(
    label: "Documents Chat",
    labelPosition: "COLLAPSED",
    documents: ri!record[recordType!SMRT Document Collection.relationships.smrtDocument.fields.documentId],
    height: "AUTO"
  )
}

is there any other approach we can use for this component in our interface or if there is any other code reference that will be really helpful.

12 replies

varuntejg243705
March 26, 2025

Hi [mention:ea20b3968efe471e931ee9c466f03db2:e9ed411860ed4f2ba0265705b8793d05] ,

I've used the same code with all the usecases you've mentioned, they are perfectly working fine!!!

It may be becoz you don't have atleast viewer permission to that particular document, can you confirm trying with a valid document?

priyankad1915
March 26, 2025

Hi Varun,
i do have permission for that document and record as well from where i'm retrieving the document ID.Still same issue

March 26, 2025

Hi [mention:ea20b3968efe471e931ee9c466f03db2:e9ed411860ed4f2ba0265705b8793d05] , 

Could you please submit a support case so we can investigate and determine the root cause of your issue? 

priyankad1915
March 26, 2025

Sure [mention:54d149bbbfd84cf38c93641b604b7dae:e9ed411860ed4f2ba0265705b8793d05]  i will
and also wanna know is there any specific reason that after upgrading to 25.1 still record chat bot,data fabric chatbot and document chat is not showing in palette ?

varuntejg243705
March 26, 2025

For me! Everything works fine!! Raise a support case, someone from the team can assist you to get your issue solved:)

March 26, 2025

Hi [mention:ea20b3968efe471e931ee9c466f03db2:e9ed411860ed4f2ba0265705b8793d05] ,

I'm also facing the same issue and my env version is 24.4 and It could be because the a!documentsChatField() function was introduced in Appian 25.1.To utilize this function, ensure your environment is updated to Appian 25.1

priyankad1915
March 27, 2025

Hi [mention:1c6f36915a6c4d3a8444dd997b2ebc07:e9ed411860ed4f2ba0265705b8793d05] thanks for insights but my environment is 25.1 but still i'm facing this issue and this component not showing in my palette 

March 27, 2025

Hi [mention:ea20b3968efe471e931ee9c466f03db2:e9ed411860ed4f2ba0265705b8793d05] ,

If its not the issue with environment version, as Derek mentioned please raise a support ticket. 

gayatria0439
March 26, 2025

Hi [mention:ea20b3968efe471e931ee9c466f03db2:e9ed411860ed4f2ba0265705b8793d05] , Yes, I have also faced the same issue when I tried to use this in the 24.4 environment:I got 'Expression evaluation error at function a!documentsChatField [line 2]: a!documentsChatField cannot be called from a user rule,'  error even though I have permission to view that file. So, I went through the documentation and discovered that this feature was released in version 25.1. Therefore, it may not be available in version 24.4. You can check the details here: 24.4/page-not-found. The latest version is 25.1 Documents_Chat

priyankad1915
March 27, 2025

Hi [mention:0bc4c4bef9ec41cd9ea711bb76538c5d:e9ed411860ed4f2ba0265705b8793d05] i'm using it in 25.1 but still facing this issue as record chat ,data fabric chat and document chat not showing in my palatte not sure why

abigaila
April 16, 2025

Hi all, 

For anyone still facing this issue, this is a component that has to be specifically enabled in your environment. You have to contact Appian support in order to get this done (besides already having 25.1 version of course)