E-IB: Methods To Validate A Document Object method "ValidateData()" (Doc ID 2211977.1)

Last updated on DECEMBER 08, 2016

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.55 and later
Information in this document applies to any platform.

Symptoms

 Peoplebook says the Document class method ValidateData(), returns a boolean  variable saying whether a document is valid or not.

http://docs.oracle.com/cd/E66686_01/pt855pbr0/eng/pt/tpcr/langref_DocumentClassMethods-e47f07.html

Found that it returns a lot of text like this..
"Fail-Fatal Error: ( line: 0 column: 0 ) An exception occurred!
Type:NetAccessorException"

Triggered the &Document.validateData() on a button.. Got the same error.


1. Created a page with a long text box and button
2. Put this code in the button field change

&xml_string = PRO_TEMP_HANDLE.DESCRLONG.Value;
.
&Document = CreateDocument("PRO_ENGAGEMENT_PKG", "PRO_ENG_EMP", "V1");
Local boolean &Return = &Document.ParseXmlString(&xml_string);
.
&Root = &Document.DocumentElement;
&Compound_PRO_ENG_EMPJOB.GetPropertyByName("CUST_ID"), 0);
WinMessage(&Document.ValidateData(), 0);
.
3. Give an XML and press the button.. It triggers the error
.
In Other words,
.
The page IB_LOGICALTESTER has a Generate Button which can tell whether a document is a good one or bad one. 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms