Skip to main content
Solved

Error: The virtual field cannot be used in a condition expression.

  • Jan 25, 2022 2:48 PM UTC
  • 5 replies
  • 1022 views
  • Translate All

Forum|alt.badge.img

Added this formula in the generic inquiry 

This error appears when trying to view generic inquiry. not sure what does this error means

Best answer by emilythaw16

Quoting : ​@Naveen Boga 

I got the similar error. I used the ‘SalesPerson’ table and then, instead of using SalespersonID_description, used ‘Descr’ field. And it works - I can apply the condition on this field. 

View original

5 replies

deebhane
Semi-Pro I
Forum|alt.badge.img+1
  • Semi-Pro I
  • Jan 25, 2022 3:02 PM UTC

Hi @jechang 

Can you try with SalespersonID instead of salespersonID _ description. 

If you still facing issue, please share the GI in xml format. 

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20
  • Captain II
  • Jan 25, 2022 3:08 PM UTC

Hi, @jechang  Virtual fields we can not use in GI formulas.

If you want to use those fields in formulas, you need to bring these fields from the Main DAC but not reference DAC.

In the above GI, you need to join the SalesPerson table (using SalesPersonID condition) and use the SalesPerson fields in the formulas.

 

Hope this helps!!

Translate

Forum|alt.badge.img
  • Author
  • Freshman I
  • Feb 7, 2022 7:57 AM UTC

hi @Naveen B, 

I have joined the tables in the GI.

as shown in the screenshot below, the first three works. but when I apply the IIF() Function, I will still face the Error: The virtual field SalespersonID_description cannot be used in a condition expression.

 

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20
  • Captain II
  • Feb 7, 2022 8:30 AM UTC

Hi, @jechang Hoping that FLXProject is your custom ? Can you please share the XML format of this GI.

 

Translate

  • Freshman II
  • Answer
  • Sep 18, 2025 8:37 AM UTC

Quoting : ​@Naveen Boga 

I got the similar error. I used the ‘SalesPerson’ table and then, instead of using SalespersonID_description, used ‘Descr’ field. And it works - I can apply the condition on this field. 

Translate