Pages

Recently Viewed

Sunday, October 13, 2013

Required upload column was not in upload and has no default value defined

Error -
Getting error “Required upload column was not in upload and has no default value defined” while uploading the WebADI.
 
Cause –
There will be one NOT NULL column in interface and passed no values in upload.
 
Resolution -
Either provide the value or define the default values.
 
Select List of Values option (put the cursor on error message in excel) from Menu ( Oracle Add in).
 
This will help to know the problematic column name.
 
 

Wednesday, October 2, 2013

Remove Control M Character from unix file


Use Dos2unix command to remove control M characters from any shell script or prog files.

Syntex
Dos2unix <file_name>

Example
Dos2unix Sandeep.sh
Dos2unix Sandeep.prog  

Value for the Flexfield Segment does not Exist in the Value Set

 
 
Defining a value set on any DFF will disallow to search records having non eligible (out of value set range) segment values.
 
A good example of this is to create a DFF of segment project task name. Initially associate a value set of Table type which shows all tasks from pa_tasks_all.
We create some records using assigned DFF. After sometime update value set definition to restrict disabled/end dated tasks.
 
Now search for records which has been created earlier and having disabled tasks assigned. Oracle form will throw below error message –
 
 
Approach – Try restricting the validation query while search.  
 
Solution – We faced similar issue and did below steps to overcome issue –
           1) Created a profile (XXXXX_SANDEEP_PRF) and set value as N
           2) Updated the value set query as
 
           Current condition –
           WHERE   sysdate between start_date and nvl(completion_date,sysdate)
 
           Updated Condition –
            WHERE  (sysdate between start_date and nvl(completion_date,sysdate))
                               OR
                               (nvl(:$PROFILES$.XXXXX_SANDEEP_PRF,'Y')='N')
           3) Use form personalization to change the profile value in cache in search and edit mode
           4) Set the profile value =Y, when in Edit mode. This will fail the second condition and only first 
                     condition will be valid and so only active task will appear in LOV.
          Set the profile value = N when in search mode. First condition will be failed since task is  
              end dated but profile condition will pass and so record will appear without error.
            5)  Did not try this in same form. We have created 2 form functions ( Entry (profile Y) and 
                 Enquiry (profile N) mode)