Skip to main content
May 16, 2022
Question

Could not display interface. Invalid Index

  • May 16, 2022
  • 7 replies
  • 0 views

Hi everyone,

I wanted to see an interface however this error occurred:

Expression evaluation error at function a!safeLink [line 137]: Invalid index: Cannot index property 'externalDocument' of type Text into type Document

I tried to look for support documents for this issue but could not. Please give me some advice on how to solve this error. 

Thanks a lot!

7 replies

Inspiring
May 16, 2022

Hi,

You can try indexing your CDT value. 

ex: ri!cdt.externalDocument --------> index(ri!cdt, "externalDocument", "")

linhnAuthor
May 18, 2022

Let me give it a try. Thanks a lot [emoticon:6d505171faa4497c85c5ca27290c555d]

harshitb6843
May 16, 2022

You can try the other commenter's suggestion. However, if it doesn't work, please paste your code below. Also, while you're trying to post a problem that relates to your code, always consider pasting your code for more clarity. 

mikes0011
Brainy
May 17, 2022

Agreed - clues given in this error message (particularly the part about 'into type Document') suggests that this error runs deeper than the user simply trying to fetch a nonexistent dot property, which is the only part the other comments here are attempting to address.  IMHO until we get some clarification around context, it's not even worth the effort to make such blind guesses as to the real underlying issue.

The Expression Guru
linhnAuthor
May 18, 2022

I agree! Will make sure the question be more accurate next time [emoticon:c4563cd7d5574777a71c318021cbbcc8]

arulk0002
Inspiring
May 17, 2022

You can try with either index() or property()

linhnAuthor
May 18, 2022

Thanks for helping, let me try both and see :D