Warning Message - Table not found

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Raftsman
Premium Member
Premium Member
Posts: 335
Joined: Thu May 26, 2005 8:56 am
Location: Ottawa, Canada

Warning Message - Table not found

Post by Raftsman »

We're running PX 8.5 on Unix and during a run, we received a warning message stating that a table was not found. I know from previous experiences with Datastage that it would abort when this happens. The difference I see is, we are using Aliases and there was no data to load.

We are running on DB2.

Has anyone ever experienced this and opened a PMR regarding it.

Thanks in advance
Jim Stewart
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

"Table not found" is very different from "table exists but has no rows to process". DataStage will abort in the former case but will happily process those zero rows in the latter case.

Check again that you have spelled the table/alias name correctly, that the alias does actually exist, and that your credentialled user has privileges to SELECT. Also that you're executing in the correct schema.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Raftsman
Premium Member
Premium Member
Posts: 335
Joined: Thu May 26, 2005 8:56 am
Location: Ottawa, Canada

Post by Raftsman »

The table really doesn't exist and Datastage is throwing a warning. First time I see this. Other jobs that use this table in other Projects abort. I have setup project and never seen a Error Severity switch to set the different levels. This one is really weird.
Jim Stewart
Raftsman
Premium Member
Premium Member
Posts: 335
Joined: Thu May 26, 2005 8:56 am
Location: Ottawa, Canada

Post by Raftsman »

We found the answer. When there are no input records and the target table is missing, Datastage throws a warning. As soon as we have records from the input, the Datastage Job aborts.
Jim Stewart
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How can you have records from the input if the table is missing? :?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Target table.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

:oops:

Would you believe I once worked on a project where there was a source table called TARGET? Should've been SALES_TARGET, but I didn't have enough weaponry with me at the time to mount a convincing argument.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
nikhil_bhasin
Participant
Posts: 50
Joined: Tue Jan 19, 2010 4:14 am

Post by nikhil_bhasin »

I think Raftsman was pointing towards empty source(file/table) and missing target table...
Raftsman
Premium Member
Premium Member
Posts: 335
Joined: Thu May 26, 2005 8:56 am
Location: Ottawa, Canada

Post by Raftsman »

I guess I need to clarify information in more detail, my apologies.

Source Records = 0

Target Table Missing

Datastage response: Warning


Source Records = 10

Target Table Missing

Datastage Response: Fatal
Jim Stewart
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Raftsman wrote:I guess I need to clarify information in more detail, my apologies.
No, not really. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply