Solved

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

Posted on 2006-06-25
3
8,010 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
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…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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.

737 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