Destination Table - Condition Amount 0 - Mailing list pgsql-general

From Anthony Apollis
Subject Destination Table - Condition Amount 0
Date
Msg-id CAJyMCYJ9GJvJoY9MGvzyf-gO9ZnAwVrZSgrPfn0dGaChdb93HA@mail.gmail.com
Whole thread Raw
Responses Re: Destination Table - Condition Amount 0
List pgsql-general

I need your assistance with an ETL process that runs every six months. Currently, we are in Calendar Year/FY 2025, which started in July 2024.

The issue is with the "Condition Amount" for FY 2025. Data comes through correctly until the "Insert Data Into Task" step (please see the attached screenshot). However, it appears that the code responsible for the "Update PD Credit" step is not functioning as expected.image.png


The destination table [Turkey - NCD Revenue Reporting Model_Table_Model] is receiving data for FY 2025, but the "Condition Amount" column contains zeros for 2025. Please see the attached sample data for reference.

To help diagnose the issue, I have included the following:

DDL for all three tables.

Insert/Update scripts for the two tasks as depicted in the screenshot above.

Sample raw data for the two tables.

SSIS can also be found attached for better understanding

Sample data for the "Insert Data Into

Attachment

pgsql-general by date:

Previous
From: Christophe Pettus
Date:
Subject: Re: Vacuum full connection exhaustion
Next
From: Adrian Klaver
Date:
Subject: Re: Destination Table - Condition Amount 0