Solved

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

Posted on 2006-06-25
3
7,741 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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Performance issue with case statement in oracle 11G 7 80
Oracle Pivot Question 8 71
ER Diagram 3 20
Migration from sql server to oracle 5 26
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

820 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