InterSystems IRIS TSQL Code 8151 Both a PRIMARY KEY and UNIQUE constraint

In this post, you’ll learn about the SQL error code 8151 in InterSystems IRIS database the reason why you are receiving the TSQL message when using the InterSystems IRIS data platform

Error Code :

8151

Reason for the Error code 8151 in InterSystems IRIS DBMS

Both a PRIMARY KEY and UNIQUE constraint have been defined for column ‘%.*ls’, table ‘%.*ls’. Only one is allowed.