Home > Archive > SQL Anywhere Mobile > May 2005 > "Index would not be unique" error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author "Index would not be unique" error
Brian Greiman

2005-05-19, 8:24 pm

We are using ASA v9.01.1964 on both consolidated and remotes. I am getting
an "Index would not be unique" error when downloading to remote database. I
am not sure what is causing this error and will not have access short of
running with full verbose mode. This is failing for me on multiple remote
users. Is there any way to force remote database to continue after failure
of this error instead of halting download completely. Please see partial
log below.

Thanks,
Brian




I. 05/19 17:03:08. Download stream: received 347843 bytes from MobiLink
Server.
I. 05/19 17:03:08. Processing download stream ...
I. 05/19 17:03:09. # rows inserted/updated into table in_price : 21
I. 05/19 17:03:09. # rows deleted in table in_price : 0
E. 05/19 17:03:09. SQL statement failed: (-196) Index
'in_price_company_si
ze_brand_price_x' for table 'in_price' would not be
unique
I. 05/19 17:03:09. ROLLBACK
I. 05/19 17:03:09. Download stream processing failed
I. 05/19 17:03:09. End synchronizing 'pub_ml_sales_subset
' for MobiLink user
'0515'
I. 05/19 17:03:09. Disconnecting from MobiLink server
I. 05/19 17:03:09. Complete log scan required.
I. 05/19 17:03:09. Synchronization completed
I. 05/19 17:03:09. Disconnecting from remote database




David Fishburn

2005-05-20, 3:24 am

"Brian Greiman" <bgreiman@bernicks.com> wrote in
news:428d10dc$1@foru
ms-2-dub of sybase.public.sqlanywhere.mobilink:

BG> We are using ASA v9.01.1964 on both consolidated and remotes. I am
BG> getting an "Index would not be unique" error when downloading to
BG> remote database. I am not sure what is causing this error and will
BG> not have access short of running with full verbose mode. This is
BG> failing for me on multiple remote users. Is there any way to force
BG> remote database to continue after failure of this error instead of
BG> halting download completely. Please see partial log below.
....
BG> E. 05/19 17:03:09. SQL statement failed: (-196) Index
BG> 'in_price_company_si
ze_brand_price_x' for table 'in_price' would not
BG> be unique

No.
Since you created a UNIQUE INDEX, UL must respect that.

--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng9 -v).

EBFs and Maintenance Releases
http://downloads.sybase.com/swx/sdmain.stm

Developer Community / Whitepapers
http://www.ianywhere.com/developer

CaseXpress - to report bugs
http://casexpress.sybase.com

CodeXchange - Free samples
[url]http://ianywhere.codexchange.sybase.com/servlets/ ProjectDocumentList[
/url]

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com