IBM Support

Filter returns syntax error when using words/phrases with apostrophes

Troubleshooting


Problem

This document addresses the issue faced when using words or phrases with apostrophes in report filters in Cognos. This issue is relevant for users using Cognos in other languages e.g. Spanish, French etc. where many words or phrases have apostrophes in them that may change/effect the syntax of the filter expression e.g. d'esports, d'Avaluacio.

Resolving The Problem

To resolve the problem carry out the following steps:

  1. Add 2 apostrophes in the place of a single apostrophe in the phrases in the filter expression e.g. d'esports becomes d''esports. This should fix the syntax of the expression.
  2. Test the filter expression for errors.

 

The issue should no longer occur as the correct syntax is now being used.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSTSF6","label":"IBM Cognos Analytics"},"Component":"","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"11.0.x","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 October 2018

UID

ibm10735159