It seems sometimes the columns aliasing is not taken in account by Invantive’s PL/SQL
ex:
create or replace table invantivecache_count@inmemorystorage
as
select PartitionCode as division
, PartitionCompanyName
, RowCount invantivecache_count
, MaxSeenTimestampCurrent as invantivecache_lastTimestamp
, MaxSeenTimestampCurrentDateTime
from IncrementalLoadStatuses@eol
where Tablenamerequested like '%TransactionLinesIncremental%'
;
The invantivecache_count@inmemorystorage will not have the aliased columns with their alias names and show as PartitionCode and MaxSeenTimestampCurrent.
How to circumvent this?
After I use a Synchronize with update statement, and the columns names need to match to be recognized.
create or replace table invantivecache_count@inmemorystorage
as
select to_number(PartitionCode) as division
, PartitionCompanyName
, to_number(RowCount) as invantivecache_count
, to_number(MaxSeenTimestampCurrent) as invantivecache_lastTimestamp
, MaxSeenTimestampCurrentDateTime
from IncrementalLoadStatuses@eol
where Tablenamerequested like '%TransactionLinesIncremental%'
;