My Oracle Support Banner

When Reading Activity Codes Using P6 Integration API Throwing Error "Error in Parsing; Opening and Closing Parentheses Don't Match" (Doc ID 2376950.1)

Last updated on SEPTEMBER 15, 2021

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version and later
Primavera P6 Professional Project Management - Version and later
Information in this document applies to any platform.


When attempting to a load statement using the API with a Where clause that has a string which contains a single quote also known as an apostrophe or inverted comma, the following error occurs.

Error in parsing; opening and closing parentheses don't match

The issue can be reproduced at will with the following steps:
1. Add a Code Type called Person
2. Add a Code Value with the name O'Brien, Bob
3. Call the following code:
  whereCodeValUpdStr="CodeValue='"+CodeVal+"'";  //where CodeVal = "O'Brien, Bob"
  BOIterator boiActCodes = actCodeTyp.loadAllActivityCodes(new String[] { "ObjectId", "CodeValue" }, whereCodeValUpdStr, null);   




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.