My Oracle Support Banner

Attributes with Custom Class for Record Context ADM_APPL_DATA Produce Error 'Cannot convert type HCR_FUNCLIB:DateTimeFormat to object type' (Doc ID 2498085.1)

Last updated on FEBRUARY 04, 2020

Applies to:

PeopleSoft Enterprise CS Recruiting and Admissions - Version 9.2 and later
Information in this document applies to any platform.

Symptoms

On : 9.2 version, Prospects and Applicants

Attributes with Custom Class for Record Context ADM_APPL_DATA prevents Add Application from working. The following error is returned as soon as the Add button is clicked.

ERROR
-----------------------
Cannot convert type HCR_FUNCLIB:DateTimeFormat to object type
SCC_COMMON_ATTRIBUTE_FW:Interfaces:iAttributeModifier. (180,604)
SCC_COMMON_ATTRIBUTE_FW.Attribute.OnExecute Name:Attribute PCPC:3455
Statement:36
Called from:SCC_COMMON_ATTRIBUTE_FW.AttributeManager.OnExecute
Name:getAttribute Statement:28
Called from:SCC_COMMON_ATTRIBUTE_FW.AttributeManager.OnExecute
Name:getAttributeFromChildRecord Statement:6
Called from:SCC_COMMON_ATTRIBUTE_FW.AttributeManager.OnExecute
Name:getRecordAttributesV2 Statement:166
Called from:SCC_COMMON_ATTRIBUTE_FW.Components.SCC_CAF_LAUNCH_SBP.OnExecute
Name:getValidAttributes Statement

The specified conversion cannot be done.


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Logon to CS as PS/PS
2. Check if Student Admissions > Application Entry > Add Application, Add
button works prior to enabling attribute with custom class. Works ok.

3. Add attribute

- Navigate to Set Up SACR>Common Definitions>Common Attribute Setup>Common
Attribute
- Click 'Add a New Value'
-- Common Attribute Name - DEP_DEADLINE
-- Description - Deposit Deadline
-- Attribute Type - Date
-- Default to current date - 'Unchecked'
-- Attribute Format - Custom Class
-- Application Class - HCR_FUNCLIB:DateTimeFormat
-- Click Save

4. Add another attribute
- Click 'Add a New Value'
-- Common Attribute Name - TRANS1
-- Description - BA Transcript
-- Attribute Type - Text
-- Default Value - <>
-- Attribute Format - Custom Class
-- Application Class - SAD_ADMISSIONS:MANAGER:FieldDescriptionManager
-- Click Save

5. Setup Record Context

- Navigate to Set Up SACR>Common Definitions>Common Attribute Setup>Record
Context
- Add a New Value
-- Record Context Tab
--- Record Table Name - ADM_APPL_DATA
--- Description - SAD_APPL_CAF
--- Override Prompt Table - <>
--- Extend to staging table - Checked
--- Staging Record - SAD_APL_DAT_STG
--- Staging Attribute Record - SAD_APL_CAF_STG
--- Entity Name - Application Attribute
--- Attribute Display Type - Inline Subpage
--- Copy Attributes From - <>
--- Attributes 1
--- Attribute Sequence - 1
--- Status - Active
--- Common Attribute - DEP_DEADLINE
--- Attributes 2
--- Attribute Sequence - 2
--- Status - Active
--- Common Attribute - TRANS1
-- Secondary Page Options Tab
--- Override Secondary Page - <>
--- Message Set Number - 14220
--- Message Number - 206
--- Header Fields 1
---- Field Name - Emplid
---- Filed Short Label - Unchecked
---- Field Long - Empl ID
---- Record Name 1 - HCR_PERSON_NM_I
---- Field Name - NAME_DISPLAY
--- Header Fields 2
---- Field Name - ACAD_CAREER
---- Filed Short Label - Unchecked
---- Field Long - Academic Career
---- Record Name 1 - ACAD_CAR_TBL
---- Field Name - DESCR
--- Header Fields 3
---- Field Name - ADM_APPL_NBR
---- Filed Short Label - Unchecked
---- Field Long - Application Number
---- Record Name 1 - <>
---- Field Name - <>
- SAVE

6. Run Entity Property Sync
- Navigate to Set Up SACR > System Administration > Entity > Entity Property
Sync
- Click Sync All Entity Properties button
- Click Refresh until Status becomes Success

7. Retest Add Application, as soon as Add button is clicked, the error appears


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
References


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