Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    (Foc14006) SQL Translator Error Null join to table holdtable()
Go
New
Search
Notify
Tools
Reply
  
(Foc14006) SQL Translator Error Null join to table holdtable()
 Login/Join
 
Member
posted
Here is the SQL statement generated in I way migrator. It is also throwing (FOC14019) Error.It Would be very helpful if anyone help me to resolve this issue.

SELECT
T5.VENDOR_SKU
FROM
(SELECT
T3.VENDOR_SKU
FROM
((SELECT
T4.VENDOR_SKU
FROM
(f_rso_stg_ds T4 LEFT OUTER JOIN d_product T1
ON
T4.VENDOR_SKU = T1.PRODUCT_KEY )
WHERE
T1.PRODUCT_KEY IS NULL
) T3
LEFT OUTER JOIN xref_product T2
ON
T3.VENDOR_SKU = T2.CROSS_REF_PRODUCT_KEY )
WHERE
T2.CROSS_REF_PRODUCT_KEY IS NULL
) T5


WebFOCUS 7.6
Windows, All Outputs

 
Posts: 7 | Registered: August 22, 2013Reply With QuoteReport This Post
Guru
posted Hide Post
Your signature says WebFOCUS 7.6 but since support for sub queries was added in DataMigrator Release 7.7 I'm going to assume that you are using the current release.

A FOC14019 is a SQL Translator general error. What relational database is your source? I think to diagnose this further it may be best to open a hottrack case and provide the three source synonyms and data flow.

Alternatively you could take another approach.

If PRODUCT_KEY is a the key of d_product it can't be NULL in the source table, so the only NULL values would be those created by the OUTER JOIN

So it looks like what you want is all the rows f_rso_stg_ds where the VENDOR_KEY is not found in d_product.

If that's correct instead of a SUB-SELECT and a JOIN another way to obtain that result is with a WHERE condition:

NOT EXISTS(SELECT * FROM d_product SQ WHERE SQ.PRODUCT_KEY = VENDOR_KEY)


You could add another WHERE condition to check the xref_product table. Then you wouldn't need any JOINS to get the results.
 
Posts: 380 | Location: New York City | Registered: May 03, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    (Foc14006) SQL Translator Error Null join to table holdtable()

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.