Where clause in view has an invalid field or a field that is not visible

AS363
Kilo Contributor

I have joined two tables and added the required fields in View Tables - > View fields also. Yet I am getting the same error as the view is unable to identify the field I am trying to fetch.

Any idea on how to resolve it? TIA

1 ACCEPTED SOLUTION

Hi Jaspal,

I think it should be below as cost_plan_breakdown has task field; prefix can be anything

lowercase or uppercase; also fields with underscore _

PM_sys_id = CPB_task

Regards
Ankur

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

17 REPLIES 17

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

on which table the views are defined? screenshot please

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

HI I am joining two custom tables.

As you can see in the screenshot, I have written the join following the syntax.

Also I have added the fields in the VIEW Field list
find_real_file.png

Hi,

So you have added Number view field on Project view table

Also added task field on view field

Can you try to set it to lowercase and try once

Also set order for cost_plan_breakdown as 200

PM_number = CPB_task

The fields used in query should be identical to the column name in table;

prefix can be anything

1) When fields are in capital

find_real_file.png

 

2) when fields are based on table

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

HI Ankur,

I have tried the case restriction already, it is not working, ie, still getting empty rows

Just now i tried changing  order for cost_plan_breakdown as 200

still i m getting same result

Hi,

are there any records satisfying that condition?

check on cost_plan_breakdown table by applying that filter

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader