In TPT UPSERT on a table with an Identity Column primary index is illegal
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


In TPT UPSERT on a table with an Identity... Expand / Collapse
Author
Message
Posted 11/4/2009 5:17:07 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Yesterday @ 12:37:58 AM
Posts: 1, Visits: 6
Hi

While using TPT M getting below error message in upsert

UPSERT on a table with an Identity Column primary index is illegal

My Query is like below :
APPLY
( 'UPDATE EIWStageTB.CoorsPointInventoryChange
SET SuspenseFlag = :SuspenseFlag
WHERE DistributorCd = :DistributorCd (DECIMAL(18,0))
AND MaterialNo = :MaterialNo (DECIMAL(18,0))
AND SeqNbr = :SeqNbr (INTEGER)
AND WeekNo = :WeekNo (DECIMAL(18,0));
',
Post #17229
Posted 11/4/2009 4:59:49 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 11/9/2009 3:27:04 PM
Posts: 38, Visits: 46
Which operator are you using?
Update?
Stream?
Post #17244
Posted 11/4/2009 5:13:52 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 11/9/2009 3:27:04 PM
Posts: 38, Visits: 46
Looking in the Teradata Messages manual, you will see this:

5790 UPSERT on a table with an Identity Column primary index is illegal.

Explanation: If the UPSERT table has an identity column as its primary index, then the UPSERT would be disallowed as it may no longer be a single-AMP operation.

Generated By: OPT module.

For Whom: End User.

Remedy: Do not re-submit the request on the same table.

Post #17245
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 7:00am

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.094. 9 queries. Compression Disabled.