Skip to content

Reduce logging for SQL exceptions from queries with calculated columns#1840

Merged
cnathe merged 11 commits intodevelopfrom
fb_calcColExceptionLogging
Aug 14, 2025
Merged

Reduce logging for SQL exceptions from queries with calculated columns#1840
cnathe merged 11 commits intodevelopfrom
fb_calcColExceptionLogging

Conversation

@cnathe
Copy link
Copy Markdown
Contributor

@cnathe cnathe commented Aug 7, 2025

Rationale

We have a few open issues related to the logging for calculated column errors / exceptions:
Issue 52026: Calculated column validation incorrectly flags expressions containing CAST
Issue 51862: Invalid calculated columns on DataClass breaks indexing and viewing in LKS grid

This PR looks to reduce that logging by adding a CALCULATED_COLUMN_SQL_TAG to the SQL query for the validation API check and the inclusion of the calc columns in the table. We then look for that tag in the handleSqlException() method.

Related Pull Requests

Changes

  • add comment tag to executeSql query to indicate it is from a calculated column validation

cnathe added 2 commits August 7, 2025 10:58
…olumn SQL errors

  - add comment tag to executeSql query to indicate it is from a calculated column validation
@cnathe cnathe merged commit 94e3dfd into develop Aug 14, 2025
3 checks passed
@cnathe cnathe deleted the fb_calcColExceptionLogging branch August 14, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants