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 JUNE 27, 2023
Applies to:
Primavera P6 Enterprise Project Portfolio Management - Version 8.3.2.0 and laterPrimavera P6 Professional Project Management - Version 8.3.2.0 and later
Information in this document applies to any platform.
Symptoms
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
-----------------------
Error in parsing; opening and closing parentheses don't match
STEPS
-----------------------
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);
Changes
Cause
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
Symptoms |
Changes |
Cause |
Solution |