Modify Stage Issue
Moderators: chulett, rschirm, roy
Modify Stage Issue
Hi,
In modify stage we have used one column for dropping before moving to comparison and while running job giving below error message.
DROP chgdate
Error when checking operator: Could not find input field.
Input table having above mentioned column.
Please let me know what is the issue with modify stage on above mentioned syntax.
Thanks&Regards,
Raju
In modify stage we have used one column for dropping before moving to comparison and while running job giving below error message.
DROP chgdate
Error when checking operator: Could not find input field.
Input table having above mentioned column.
Please let me know what is the issue with modify stage on above mentioned syntax.
Thanks&Regards,
Raju
There is not an issue with the modify stage--the issue is that the field chgdate does not exist within the virtual record when it enters the modify stage.
You state that the input table has the column:
1) Does the job read that column from the table?
2) If so, what happens to the data between when the table is read and the modify stage? That is, what processing occurs? Sorts? Transformers? Something else?
Regards,
You state that the input table has the column:
1) Does the job read that column from the table?
2) If so, what happens to the data between when the table is read and the modify stage? That is, what processing occurs? Sorts? Transformers? Something else?
Regards,
- james wiles
All generalizations are false, including this one - Mark Twain.
All generalizations are false, including this one - Mark Twain.
We are reading metadata dynamically from ODBC stage and in job modify stage already drooping one column successfully.
When I tired with any new column from table then job is failing with Error "when checking operator: Could not find input field"
The column which job able to process successfully that is first column in table and other columns are failing with above mentioned error.
ODBC------>MODFIY----->column export stage
Thanks,
Raju
When I tired with any new column from table then job is failing with Error "when checking operator: Could not find input field"
The column which job able to process successfully that is first column in table and other columns are failing with above mentioned error.
ODBC------>MODFIY----->column export stage
Thanks,
Raju
Still, the issue is straightforward: The columns you are attempting to drop in the modify do not exist.
Are you performing a table read in the ODBC stage, or a SELECT * FROM tablename query? Runtime column propagation is enabled on the output of ODBC?
You can add the $OSH_PRINT_SCHEMAS environment variable to your and set it to True. This will show the columns being output by the ODBC stage. From there you can verify whether or not the columns you believe should be there (the ones you are trying to drop) actually are there.
Regards,
Are you performing a table read in the ODBC stage, or a SELECT * FROM tablename query? Runtime column propagation is enabled on the output of ODBC?
You can add the $OSH_PRINT_SCHEMAS environment variable to your and set it to True. This will show the columns being output by the ODBC stage. From there you can verify whether or not the columns you believe should be there (the ones you are trying to drop) actually are there.
Regards,
- james wiles
All generalizations are false, including this one - Mark Twain.
All generalizations are false, including this one - Mark Twain.
We are using read method on ODBC stage Read method as "Table".
Issue is if the column will not be specified as drop column in modify stage then datastage job able to complete successfully and not sure that time how the column passing modify stage and going into "column export stage" .if still column not coming from ODBC stage job should fail when running without drop statement.RCP has been enabled in all ODBC stages.
Thanks,
Raju.
Issue is if the column will not be specified as drop column in modify stage then datastage job able to complete successfully and not sure that time how the column passing modify stage and going into "column export stage" .if still column not coming from ODBC stage job should fail when running without drop statement.RCP has been enabled in all ODBC stages.
Thanks,
Raju.
Ran
Have you done everything you can to validate that the column name in your DROP statement exactly matches (ignoring case) the column name being output from the source ODBC stage? If Modify can't find the column by the name you specified, then it simply isn't there. Could one or more tables have the column name misspelled perhaps? It's been known to happen...
Regards,
What failure do you expect in this case?if still column not coming from ODBC stage job should fail when running without drop statement
Regards,
- james wiles
All generalizations are false, including this one - Mark Twain.
All generalizations are false, including this one - Mark Twain.
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
Did you perform this step?? This should give you a clue what you have been missing.jwiles wrote:You can add the $OSH_PRINT_SCHEMAS environment variable to your and set it to True. This will show the columns being output by the ODBC stage. From there you can verify whether or not the columns you believe should be there (the ones you are trying to drop) actually are there.
Priyadarshi Kunal
Genius may have its limitations, but stupidity is not thus handicapped.
Genius may have its limitations, but stupidity is not thus handicapped.
Re: Modify Stage Issue
Could you make sure if the input column passed to the modify is not nullable.
Rahul
DS Lover
DS Lover
Thanks for all for provding suggestion on this.
All column are defined as "Not Null" on database and also I have double checked columns name which mentioned in modify stage and those are same which are there on database.
I have requested to admin team set $OSH_PRINT_SCHEMAS parameter to "true" and once it will be update then I will check ODBC log column information.
My only confusion thing is if ODBC not sending the column information then Job should be fail when running job without adding column name in modify stage.
Thanks,
Raju.
All column are defined as "Not Null" on database and also I have double checked columns name which mentioned in modify stage and those are same which are there on database.
I have requested to admin team set $OSH_PRINT_SCHEMAS parameter to "true" and once it will be update then I will check ODBC log column information.
My only confusion thing is if ODBC not sending the column information then Job should be fail when running job without adding column name in modify stage.
Thanks,
Raju.
Again, why do you think there should be a failure? If a column is not in the output from the ODBC stage, and the modify statement does not attempt to drop a column that does not exist (this is how I interpret your statement), why would it fail?My only confusion thing is if ODBC not sending the column information then Job should be fail when running job without adding column name in modify stage.
Are you unable to add $OSH_PRINT_SCHEMAS to the job directly? You really don't want or need to set it at the project level. It can add a lot of extra output to the job logs....
Regards,
- james wiles
All generalizations are false, including this one - Mark Twain.
All generalizations are false, including this one - Mark Twain.