- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 01:59 PM
I am trying to create a database view. After specifying all the details, when I click on Try It link, I am getting below error.
Syntax Error or Access Rule Violation detected by database ((conn=395195) Unknown column 'cod.a_str_22' in 'on clause')
I have checked:
- There is no column named a_str_22 in the table which aliases cod.
- None of the where clause refers to a_str_22 column for table which aliases cod.
- The table which aliases cod, does not have any access restriction. I was able to create another view in the same scope.
Am I missing anything?
Note: Relevant answers/comment will be marked appropriately.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 08:01 AM
The fix was to update "order" column. So the table that is primary and have no dependency then it should be 100 and subsequent can be 200 and so on.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 04:01 PM
Seems like a bug. Should contact Now Support to report it in.
From the message, it seems to be MySQL error on table join. It may be joining to incorporate ACL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 07:00 AM
Just an update, if I remove sys_user table from the view then it is working.
Not sure why having sys_user throws error for another table (cod).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 07:06 AM
In that sys_user where clause was that a reference field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 07:06 AM
That type of error comes up on reference fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 07:21 AM
Even that is also a text field. Just FYI: if I remove sys_user table than the view works fine. However, when we add it the error is shown - which refers to cod table and that has no relation with sys_user table.
Does it mean we have to tie all of them?
