Solved

FRM-40222: Disabled item 'item_name' failed validation.

Posted on 2006-06-25
3
7,189 Views
Last Modified: 2007-12-19
I all of a sudden started to receive the error: FRM-40202: Field must be entered followed by: FRM-40222: Disabled item 'item_name' failed validation.

I modified my form but never touched the trigger for the "WHEN-VALIDATE-ITEM" of the "item_name" in question.

Is there a different order of when triggers fire now?

I'm on Forms [32 Bit] Version 9.0.4.0.19 (Production)
Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
     With the Partitioning option
     JServer Release 9.2.0.7.0 - Production
Oracle Toolkit Version 9.0.4.0.31 (Production)
PL/SQL Version 9.0.1.5.1 (Production)
Oracle Procedure Builder V9.0.3.5.0 Build #1641 - Production

I have a WHEN-NEW-FORM-INSTANCE, then on the main datablock I have a WHEN-NEW-RECORD-INSTANCE and a WHEN-NEW-ITEM-INSTANCE. Yet there has been no change from the previous source controlled version and the current one.

Gio
0
Comment
Question by:jaramill
3 Comments
 
LVL 8

Expert Comment

by:sapnam
ID: 16981576
Do you have an item in the block which is disabled and is also required and no value is assigned to it
0
 
LVL 2

Accepted Solution

by:
mirko-iras-si earned 500 total points
ID: 16982288
There must be a line in your code that changes the value of the item in question. That happens either by variable assignment or by passing the item value to a function with an OUT or IN OUT parameter. As a consequence,  the item is marked as changed and the validation trigger fires.

You need to search the rest of your form's code: when-validate-item triggers of other items, when-new-record-instance, when-create-record, post-query, etc. Do you pass the item value to some function that used to have an IN parameter but was lately changed to OUT or IN OUT? Did you change the item's Required property to Yes? And - when do you see this error? Is it when you insert new records, update them, do a query?

Mirko
0
 
LVL 3

Author Comment

by:jaramill
ID: 16985844
I thought I had deleted this question as I did find the answer but Mirko you do have the same answer I was told on another forum.

"Did you change the item's Required property to Yes?".  I did not but I went to go look at some of the items and somehow they were set to YES.  So I set them to "NO".  And it all worked.

Thanks,
Gio
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video shows how to recover a database from a user managed backup

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now