I have a scenario where I have claim application table and application claimant table. I need to sparse look up for the application claimant ID from the application claimant table using SSN as the key. Problem is there are multiple application claimant IDs for the same SSN. So I would like to pull the ones which are not already used in the Claim_application table. So I am using Sparse look up with the below query.
SELECT SSN, CLAIM_APPLICATION_CLAIMANT_ID
FROM CLAIM_APPLICATION_CLAIMANT
WHERE ORCHESTRATE.CLAIM_APPLICATION_CLAIMANT_ID not in (
SELECT CLAIM_APPLICATION_CLAIMANT_ID
FROM CLAIM_APPLICATION
)
But when I am going to map key expression in the lookup stage, it is throwing below error.
Key expression cannot be set on key columns of this link.The connected stage defines the key lookup
What could be the issue here?