Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 54 Oracle Analytics and AI Sharing Center
- 26 Oracle Analytics and AI Lounge
- 312 Oracle Analytics and AI News
- 57 Oracle Analytics and AI Videos
- 16.4K Oracle Analytics and AI Forums
- 6.7K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 117 Oracle Analytics and AI Trainings
- 24 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
SQL Filter Issue - INSTR Function Causing Report Filters to Disappear for Specific Users
Hi everyone,
we're experiencing an interesting issue with report filters in Oracle Learning Management (or similar).
Problem: When we use filters based on SQL queries, for some specific users the report filters disappear completely, making the report non-functional.
Technical Details: We've identified the critical point in the query that causes the error:
Copy
AND INSTR(',' || xxx.co_attribute1 || ',', ',' || xle_le.legal_entity_identifier || ',') > 0
wlf_learning_items_f xxx
xle_entity_profiles xle_le
Observed Symptoms:
- Filters work correctly for most users
- For specific users, filters disappear from the report
- The query doesn't return errors, but simply doesn't apply the filters
Questions:
- Has anyone else encountered similar behavior?
- Could it be related to NULL values or whitespace in the
co_attribute1orlegal_entity_identifierfields? - Do you have suggestions for better handling of this INSTR function in case of inconsistent data?
Any feedback will be greatly appreciated!
Thank you, Rosita
Answers
-
Hi Rosita,
Welcome to Oracle Analytics and AI community.
There is no such things as filter disappearing from BI reports. It is mostly that for some people the condition is failing.
Can you check the values of co_attribute1 and legalentity_identifier and then execute your iNSTR function standalone for those specific users for whom this report is not functioning as expected?
Thanks,
Mandeep.
0 -
Hi,
I found the problem, and it seems to be solved with REPLACE(REPLACE(REPLACE(REGEXP_REPLACE(TO_CHAR(SUBSTR(xxxtl.name, 0, 99)), '<[^>]*>', ' '), '&', '&'), '"', '”'), ' ', ' ')or
SUBSTR(xxxtl.name, 1, 56) as name
on the filter "Titolo corso".
I also found a post with a similar problem:
Oracle BI Report > Parameter based on LOV having string limitations — Cloud Customer Connect
Can you tell me if there's a limit on the length of strings in filters?Thanks
Regards
Rosita
0 -
Hi Rosita,
If your filters are at query level, then there is no restriction.
Thanks.
0
