Upsert option issue
Moderators: chulett, rschirm, roy
Upsert option issue
Hi,
We are getting the following error message when we run the job in system test. We are not experiencing any issue in development enviorment and the same job runs fine in development enviroment.
The only difference between development and system test is the version no. Development version is 7.5.1 and system test is 7.5.3
The following is the error from the job log
: The provided insert statement did not prepare correctly;
please verify that your statement is correct;
statement:
INSERT
INTO
REF_SAP_GL
(X,Y,Z)
VALUES
( :X, :Y, :Z).
We are using upsert option to load the data to the target.
Appreciate any help on this.
We are getting the following error message when we run the job in system test. We are not experiencing any issue in development enviorment and the same job runs fine in development enviroment.
The only difference between development and system test is the version no. Development version is 7.5.1 and system test is 7.5.3
The following is the error from the job log
: The provided insert statement did not prepare correctly;
please verify that your statement is correct;
statement:
INSERT
INTO
REF_SAP_GL
(X,Y,Z)
VALUES
( :X, :Y, :Z).
We are using upsert option to load the data to the target.
Appreciate any help on this.
-
- Premium Member
- Posts: 783
- Joined: Mon Jan 16, 2006 10:17 pm
- Location: Sydney, Australia
-
- Participant
- Posts: 42
- Joined: Mon Apr 21, 2008 1:49 am
Re: Upsert option issue
When you use Upsert Option then, it will prompt you to decide which one to do first-> Either Insert or Update
If record exist 'Update' or 'Insert'
Try giving both Insert and Update statement in the Ora Stage
Update COLUMNS WHERE CONDITION
INSERT INTO TABLE VALUES(..)
Even if it doesnt work dont do Upsert together. Use a Change capture stage, sort out insert records and update records separately..Using a transformer split this records and use two Ora stage
In Ora stage for Insert records use Direct load..
For Update records use Upset.. And for both Ora stage should be the same target
If record exist 'Update' or 'Insert'
Try giving both Insert and Update statement in the Ora Stage
Update COLUMNS WHERE CONDITION
INSERT INTO TABLE VALUES(..)
Even if it doesnt work dont do Upsert together. Use a Change capture stage, sort out insert records and update records separately..Using a transformer split this records and use two Ora stage
In Ora stage for Insert records use Direct load..
For Update records use Upset.. And for both Ora stage should be the same target