Need help on database view

chaudharymahesh
Mega Sage

Hi All, I am trying to create a database view on rm_defect and rm_story

I need the records/defects returned as a result from the defect table which are referenced in the defect field on the story

 

 I tried below, but i am getting the below Error Message

Where clause in view u_defect_rm_story has an invalid field or a field that is not visible (s_defect)

 

memahesh_0-1697549566281.jpeg

 

1 ACCEPTED SOLUTION

chaudharymahesh
Mega Sage

made changes to where clause and removed left join . it is working now.

memahesh_0-1697551861341.jpeg

 

View solution in original post

2 REPLIES 2

chaudharymahesh
Mega Sage

made changes to where clause and removed left join . it is working now.

memahesh_0-1697551861341.jpeg

 

Voona Rohila
Kilo Patron
Kilo Patron

Hi @chaudharymahesh 

 

Can you please check if the defect field from rm_story is returned, If there are no fields specified then all the fields will be returned.

 

Follow below link for steps : 

https://docs.servicenow.com/bundle/vancouver-application-development/page/use/reporting/concept/c_Sp...

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP