The record has duplicate key values - "Include in Unique Index" checkbox missing

I have a Silverlight client app that I'm developing in Lightswitch in VS2013 Ultimate Update 1, and have run into a problem when adding records.
I am working against an external SQL Server 2008 database, and the table in question only has the primary key constraint, meaning that the ID field is an identity field, set as the primary key.
When I try and add records to the table from the app, I get an error "The Shiur record has duplicate key values." This seems to happen when I add a row that has the same Speaker as an existing one. If I add one with a new Speaker then
it inserts OK.
Whilst searching for information on this error, I saw many comments around about there being a problem in earlier releases with the "Include in Unique Index" not working properly. This looked like my problem, except for two points...
1) This table doesn't have anything in a unique index (as far as I know), as I never set it up to have any. You can see the details here...
This looks to me like there is only the one index, which is the primary key one.
2) The "Include in Unique Index" checkbox doesn't appear on my Properties panel at all. If I open the table in the designer, then click in the Speaker row, I don't see "Include in Unique Index" at all...
Actually, I don't see "Include in Unique Index" at all, irrespective of what I click. It's just not there.
So, I don't seem to have a unqiue constraint to violate, and VS doesn't show me the "Include in Unique Index" to allow me to check this, but I still get the error on insert. Anyone any ideas what's going on here?
Thanks
FREE custom controls for Lightswitch! A collection of useful controls for Lightswitch developers.
Download from the Visual Studio Gallery.
If you're really bored, you could read about my experiments with .NET and some of Microsoft's newer technologies at
http://dotnetwhatnot.pixata.co.uk/

Hi Alan,
'Include in Unique Index' is for intrinsic database entity properties.
Ah, that explains why I can't see it then :)
Is LightSwitch or SQL throwing the error?
Ah, you're a genius! Well, not quite, but your question led me to the answer.
For some odd reason, the primary key fields on my tables seem to have lost their identity setting, so when it tried to insert a new record, the ID wasn't automatically increased, so was going in as zero. This worked fine for the first insert, as there wasn't
a record with zero ID, but failed for the second.
Changed the ID fields to be identity, and all works fine now :)
Thanks very much.
FREE custom controls for Lightswitch! A collection of useful controls for Lightswitch developers.
Download from the Visual Studio Gallery.
If you're really bored, you could read about my experiments with .NET and some of Microsoft's newer technologies at
http://dotnetwhatnot.pixata.co.uk/

Similar Messages

  • SSIS - "Violation of PRIMARY KEY constraint. Cannot insert duplicate key in object ' tablename '. The duplicate key value is 1234 . Though there are no duplicate records.

    Hi,
    I am providing support to one of our clients, where we have jobs scheduled to load the data from the tables in the source database to the destination database via SSIS packages. The first time load is a full load where we truncate all the tables in the destination
    and load them from the source tables. But from the next day, we perform the incremental load from source to destination, i.e., only modified records fetched using changed tracking concept will be loaded to the destination. After full load, if we run the incremental
    load, the job is failing with the error on one of the packages "Violation of PRIMARY KEY constraint. Cannot insert duplicate key in object '<tablename>'. The duplicate key value is <1234>, even though there are no duplicate records. When we
    try debugging and running the failing package, it runs successfully. We are not able to figure out why the package fails and when we run the next day it runs successfully. Request you to help me in this regard.
    Thank you,
    Bala Murali Krishna Medipally.

    Hi,
    I am providing support to one of our clients, where we have jobs scheduled to load the data from the tables in the source database to the destination database via SSIS packages. The first time load is a full load where we truncate all the tables in the destination
    and load them from the source tables. But from the next day, we perform the incremental load from source to destination, i.e., only modified records fetched using changed tracking concept will be loaded to the destination. After full load, if we run the incremental
    load, the job is failing with the error on one of the packages "Violation of PRIMARY KEY constraint. Cannot insert duplicate key in object '<tablename>'. The duplicate key value is <1234>, even though there are no duplicate records. When we
    try debugging and running the failing package, it runs successfully. We are not able to figure out why the package fails and when we run the next day it runs successfully. Request you to help me in this regard.
    Thank you,
    Bala Murali Krishna Medipally.
    I suspect you are trying to insert modified records instead of updating.

  • Msg 2601, Level 14, State 1, Procedure sp_flush_commit_table, Line 15 Cannot insert duplicate key row in object 'sys.syscommittab' with unique index 'si_xdes_id'. The duplicate key value is (2238926153). The statement has been terminated.

    I am using SQL server 2008 R1 SP3. And when we are doing back up operations we are facing the below error
    Msg 2601, Level 14, State 1, Procedure sp_flush_commit_table, Line 15
    Cannot insert duplicate key row in object 'sys.syscommittab' with unique index 'si_xdes_id'. The
    duplicate key value is (2238926153).
    The statement has been terminated.
    Please assist me with your inputs.
    Thanks,
    Rakesh.

    Hello,
    Did you enable change tracking on the database? If so, please try to disable and re-enable the change tracking.
    The following thread is about the similar issue, please refer to:
    http://social.msdn.microsoft.com/forums/sqlserver/en-US/c2294c73-4fdf-46e9-be97-8fade702e331/backup-fails-after-installing-sql2012-sp1-cu1-build-3321
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Violation of PRIMARY KEY constraint 'PK_test'. Cannot insert duplicate key in object 'dbo.test'. The duplicate key value is (12610). (Source: MSSQLServer, Error number: 2627) ?

    Hi team,
    How resolve the below error 
    Violation of PRIMARY KEY constraint 'PK_test'. Cannot insert duplicate key in object 'dbo.test'. The duplicate key value is (12610). (Source: MSSQLServer, Error number: 2627) ?
    Thanks,
    Ram
    RAM

    Hi team,
    How resolve the below error 
    Violation of PRIMARY KEY constraint 'PK_test'. Cannot insert duplicate key in object 'dbo.test'. The duplicate key value is (12610). (Source: MSSQLServer, Error number: 2627) ?
    Thanks,
    Ram
    RAM
    There can be two reasons
    1. The insert script used is having multiple instances of the records with Key as 12610 returned from the source query. If this is the issue add a logic to include only the unique set of id values for records by avoiding duplicates. There are several approaches
    for this like using ROW_NUMBER with PARTITION BY, using a join with derived table etc
    2. The record with Key 12610 already exist in your destination table and your script is again trying to insert another instances of record with same key. This can be avoided by adding a NOT EXISTS condition with a subquery which will check and return only
    those records which doesnt already exist in the source
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • [SQL Server]Violation of PRIMARY KEY constraint 'DeploymentSummary_PK'. Cannot insert duplicate key in object 'dbo.DeploymentSummary'. The duplicate key value is

    I have migrated my SCCm 2007 environment to SCCM 2012 SP1 CU4.
    I noticed in the System Status\Component Status\SMS_STATE_SYSTEM a lot of errors like the one below:
    Microsoft SQL Server reported SQL message 2627, severity 14: [23000][2627][Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of PRIMARY KEY constraint 'DeploymentSummary_PK'. Cannot insert duplicate key in object 'dbo.DeploymentSummary'. The duplicate key value is (1, 0, S0220438, 0). : spUpdateClassi
    Please refer to your Configuration Manager documentation, SQL Server documentation, or the Microsoft Knowledge Base for further troubleshooting information.
    When looking up the deployment ID and recreate the Deployment the problem is solved. But I have 700 packages and don't want to manually do this action on all packages. I think it is related to the migration i did and something went wrong there :-(
    Besides it will retriggers the deployment to the clients which is also not preferred.
    Is there another way to solve this by e.e.g do something directly in the SQL database tables ?

    Hi,
    It is not supported by Microsoft that do something directly in SQL database.
    If you want to do that, you could make a call to CSS.
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • *** [23000][2627][Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of UNIQUE KEY constraint 'ClientPushMachine_G_AK'. Cannot insert duplicate key in object 'dbo.ClientPushMachine_G'. The duplicate key value is (16777412). : sp_CP_CheckNewAss

    *** [23000][2627][Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of UNIQUE KEY constraint 'ClientPushMachine_G_AK'. Cannot insert duplicate key in object 'dbo.ClientPushMachine_G'. The duplicate key value is (16777412). : sp_CP_CheckNewAssignedMachine
    CCCRT::RunSQLStoredProc - Failed to execute SQL cmd exec [sp_CP_CheckNewAssignedMachine] N'xxx', 1
    CCRQueueRequest::GetRequestFromQueue - Failed to execute SQL cmd sp_CP_CheckNewAssignedMachine
    I get the above issue and the one below at a client site; the error started with the error below then changed to the one reported above and back to the one below. Everything is working as it should but the issues
    started when one of the admins at the data-centre incorrectly applied a gpo which affected a number of service accounts (sccm inclusive) and they expired....hence reporting in sccm got broke as well as this error in the ccm.log file appeared.
    Remote client install still works but I believe this error affects new client discovered by sccm, so in other words devices discovered by sccm do not get the client installed automatically....but if all access and permissions are in place...pushing out the
    client to the new discovered system works, it just not done automatically, which kinda defeats one the reasons for using sccm.
    I have searched the breadth of the tinternet and I can only find two technet reference to the same error  - one says to edit the stored procedure on the sql server which I don't think should be done... Like Jason said and I concur....its bad joo joos.
    The second suggestion, said you should select all the options in the Client Push Installation properties, I have tried this but hasn't solved the problem.
    I am planning to upgrade the site to the R2 CU3 before the end of the year but I would like to resolve this error before the upgrade.
    The site is currently sccm 2012 sp1 
    Any idea?> Resolution? sil vous plait!
    Merci

    Hi ,
    Please back up the database of the SCCM site. Then run the following query against the Site DB and see how it goes.
    DELETE FROM System_SMS_Resident_ARR
    WHERE ItemKey IN (
    SELECT ItemKey FROM vSystem_SMS_Resident_ARR
    GROUP BY ItemKey
    HAVING COUNT(ItemKey) > 1
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Db adaptor for insert- SQLException: [SQL0803] Duplicate key value specified

    While invoking db adaptor for insert on table 1 selecting values form another table, i am gtting error ; before3 insert i am updating table 2nd using db adaptor
    QUERY insert into CRPDTA.F5504579 (SELECT * FROM CRPDTA.F5504571 WHERE PAHDC=#v_updatedRecord_HDC)
    Error :
    Non Recoverable System Fault :
    <bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert_Ledger_F5504579' failed due to: Pure SQL Exception. Pure SQL Execute of insert into CRPDTA.F5504579 (SELECT * FROM CRPDTA.F5504571 WHERE PAHDC=?) failed. Caused by java.sql.SQLException: [SQL0803] Duplicate key value specified.. The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead. This exception is considered not retriable, likely due to a modelling mistake. To classify it as retriable instead add property nonRetriableErrorCodes with value "--803" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary></part><part name="detail"><detail>[SQL0803] Duplicate key value specified.</detail></part><part name="code"><code>-803</code></part></bindingFault></bpelFault>
    Please suggest....

    Easter1976 wrote:
    Hi please can you help me. I think I am having problems with tranactions. I am deleting from a table and then inserting in the same table with the same key that I have just deleted. Simple then - don't do that. It suggests a flaw in the design. Either use a new key or do an update.
    Note that you would get a duplicate key error if the table is set up such that it doesn't
    actually delete but doesn't something such as creating a log entry with a delete flag set.

  • Win2008 64Bit Collection Error "Result has Repeating Key Value" On Host Per

    Win2008 64Bit Collection Error "Result has Repeating Key Value" On Host Performance Tab [ID 864908.1]      
         Modified 29-JUL-2009 Type PROBLEM Status MODERATED      
    In this Document
    Symptoms
    Cause
    Solution
    References
    This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
    Applies to:
    Enterprise Manager Grid Control - Version: 10.2.0.5
    Microsoft Windows Server 2008 x64 (AMD64/EM64T)
    Symptoms
    OMS: 10.2.0.5
    Target Agent: 10.2.0.5 Windows 2008 Standard Edition Service Pack 1 64-bit
    Happens for all Windows 2008 64-bit hosts with SAN drives using multipathing.
    When accessing the Host > Performance tab on Windows 2008 64-bit host, get a Metric Collection Error:
    Exception: oracle.sysman.emSDK.emd.comm.MetricGetException: Result has repeating key value on
    drive 0: for diskactivity metric
    emagent.trc shows:
    2009-06-19 11:19:06,125 Thread-6736 ERROR engine:
    [host, <hostname>,Load] : nmeegd_GetMetricData failed : Result has repeating key value : 0 C: U: C: U:
    Collection Error:
    Error getting data for target <hostname>. Exception:
    oracle.sysman.emSDK.emd.comm.MetricGetException: Result has repeating key value : 0 C: U: C: U:
    Switching to the last 24 hrs view.
    Cause
    Microsoft issue with Windows 2008 64-bit and SAN multipath.
    Bug 8214155: ERROR RESULT HAS REPEATING KEY VALUE: <DISK DRIVES> ON DBCONSOLE
    Solution
    Contact Microsoft Support to fix the issue in Performance Monitor's PhysicalDisk object counter since "nmupm diskactivity" gets the information from the PhysicalDisk object counter.
    References:
    http://technet.microsoft.com/en-us/library/cc768048.aspx
    http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/prork/pree_exa_swlz.mspx?mfr=true
    References
    BUG:8214155 - ERROR RESULT HAS REPEATING KEY VALUE: ON DBCONSOLE
    This bug I found on Metalink but no workaround available. I've got the same problem everytime I view performance tab on Microsoft Windows 2008 x64. Does anyone know how to solve it?

    from the emoms.log
    2009-12-08 14:25:09,171 [EMUI_14_25_05_/console/monitoring/hostSummary$pageType=current$ctxType=Hosts$selTab=1$target=CITIZEN02$type=host] ERROR host.HostSummaryDataObject getHostSummary.1215 - Result has repeating key value : 0 C: D: C: D:
    oracle.sysman.emSDK.emd.comm.MetricGetException: Result has repeating key value : 0 C: D: C: D:
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at java.lang.Class.newInstance0(Class.java:308)
         at java.lang.Class.newInstance(Class.java:261)
         at oracle.sysman.emSDK.xml.DelegatingHandler.getObjForTag(DelegatingHandler.java:121)
         at oracle.sysman.emSDK.xml.DelegatingHandler.startElement(DelegatingHandler.java:170)
         at org.xml.sax.helpers.ParserAdapter.startElement(ParserAdapter.java:597)
         at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:180)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1227)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:314)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:195)
         at org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:431)
         at oracle.sysman.emSDK.xml.DelegatingHandler.parseObj(DelegatingHandler.java:296)
         at oracle.sysman.emSDK.emd.comm.EMDClient.parseStreamResponseContents(EMDClient.java:2883)
         at oracle.sysman.emSDK.emd.comm.EMDClient.parseResponseStream(EMDClient.java:2805)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:2516)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:2450)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:2367)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:2352)
         at oracle.sysman.emSDK.emd.comm.EMDClient.getMetrics(EMDClient.java:1120)
         at oracle.sysman.eml.mntr.host.HostSummaryDataObject.getHostSummary(HostSummaryDataObject.java:813)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.cabo.ui.data.provider.MethodDataProvider.getDataObject(Unknown Source)
         at oracle.cabo.ui.data.provider.TableDataProvider.getDataObject(Unknown Source)
         at oracle.cabo.ui.data.provider.CachingDataProvider.getDataObject(Unknown Source)
         at oracle.cabo.ui.data.provider.DataProviderStack.getDataObject(Unknown Source)
         at oracle.cabo.ui.LogicalNodeRenderingContext.getDataObject(Unknown Source)
         at oracle.cabo.ui.RootRenderingContext.getDataObject(Unknown Source)
         at oracle.cabo.ui.LogicalNodeRenderingContext.getDataObject(Unknown Source)
         at oracle.cabo.ui.RootRenderingContext.getDataObject(Unknown Source)
         at oracle.cabo.ui.data.DataBoundValue.getValue(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
         at oracle.cabo.ui.laf.base.TextRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.DataScopeRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.servlet.ui.UINodePageRenderer.renderPage(Unknown Source)
         at oracle.cabo.servlet.AbstractPageBroker.renderPage(Unknown Source)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
         at oracle.cabo.servlet.UIXServlet.doGet(Unknown Source)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:368)
         at oracle.sysman.eml.app.Console.doGet(Console.java:304)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:265)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.sysman.eml.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:122)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:102)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:369)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:670)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:816)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:231)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:136)
         at

  • Allow duplicate key & value in collection

    Hello Experts,
    I have once scenario where I have to store duplicate keys (string) and values (string) in Map. I tried with MultiHashMap (Apache) but it's very specific to datatype. It will only allow "string" key and "integer" value.
    How can I do it? Any help will be appreciated.
    Regards,
    Somnath

    Stupid question perhaps, but a regular HashMap with a String as a key and an ArrayList as a value doesn't cut it? You really NEED duplicate keys also?
    EDIT: yes that is a stupid suggestion; of course you need duplicate keys when it is in fact a duplicate key/value pair that we're talking about.
    It will only allow "string" key and "integer" value.When I look at the Javadoc I see it is controlled by generics, just like the regular Map type. Here, even in this very old javadoc:
    http://commons.apache.org/collections/api-2.1.1/org/apache/commons/collections/MultiHashMap.html
    You can see that put() takes two Object values, not a String and an Integer.

  • MSSQL_Database - Result has repeating key value : 7

    Hi,
    I have this error when I try the connect to SQL Server 2005 from the grid
    MSSQL_Database - Result has repeating key value : 7
    Appreciate any help
    Thanks

    Are you still facing this problem?
    Please raise a service request for some one from support to look into it.
    Thanks,

  • The record has been changed....on default form

    Hi,
    I'm facing a strange problem....
    Trying to alter the prompt in the menu default form, for one and only one record, the message "The record has been changed.Re-query to see the changes." appears...!!!
    I have seen this message on custom forms.... but on default form which also insists even when i close the form and re-open it..., first time....
    What do you suggest me to do...???
    Note: I use eBS 11.5.10.2 and DB10g v.2
    Thank you,
    Sim

    Hi sgalaxy,
    It looks the system is detecting something different between the record shown in the form and the record stored in the DB table, and that's why it's showing the error message. Typically the issue is caused by date columns that are truncated in the form or by trailing spaces in text columns. You will need to compare columns in form and DB table until you find the problematic column and update it manually (truncating date or removing trailing spaces in DB)
    Hope it helps.

  • The record has stopped because the audio format has changed

    I am using a JVC 9500E onto an XP pro machine with CS3 nothing else large empty hard drive. Firewire.
    Bringing a recording which was taken in one go with no changes - at 48Khz. PAL nothing odd - just continually opauses every 5-360 seconds with the error
    The record has stopped because the audio format has changed.
    using TAPe and Scene detect.
    anyone got any ideas?

    I know this is way too late and not really an answer, but I've had the same kinds of problems with PP2's capture function on 3 different decks on 2 different motherboards and 4 different OSes.
    My work involves capturing and repairing problematic and old or damaged tapes of all kinds. I understand that there will be some errors (tape stretch, breakage, etc) that can't be handled by the deck/camera hardware directly, and I have no problems with having to manually cue past such issues.
    But for otherwise fine and undamaged tapes, for PP2 to suddenly cease capturing, prompting to save less than 2 seconds' worth of video when all that happened was some minor tape noise or an audio frame missing is unhelpful at best and crippling otherwise. It's got to the point that PP2 is completely useless to me, when only the most pristine tapes with the most minimal of problems can be reliably captured.
    Since I've used the same hardware (cables, decks) to capture 1200+ hours of "through" footage (i.e. not MiniDV tape playback) without major problems, on the current system alone, that would seem to indicate that the system/cable/deck hardware is fine, it's the problem frame handling that's broken. When 3 different deck/camera manufacturers all react to the same tape problems in the exact same way (at least, for the few common tapes that I've had the ability to test on all 3 decks, all else being equal), that doesn't seem to me to indicate a manufacturer or model problem at all.
    However, Adobe's support response in each case (audio drops or minor tape dropouts) is "get the camera repaired by an authorised repairer". (It would seem that I'm an example of a particularly unlucky customer, buying 3 brand-new top-of-the-line 'duds' from 3 different manufacturers in as many years! What are the odds? I should buy a Lotto ticket...) That kind of support response is a real pity, since using the basic transport functionality outside PP2 seems to work perfectly for all but the most severe tape problems, but only using anything except PP2.
    To try to tell me that this is a deck hardware failure each time I've raised the same type of problem is disingenuous at best. But that's another story.
    The workaround (and yes, there is one!) is to use anything else except Premiere Pro 2.0 for any MiniDV capture operation. It's much easier to use VLC or Nero to perform flawed tape capture, and then use the otherwise sensational editing prowess of PP2 to fix the problems later.
    Pity.

  • Count the number of records between two key values (BTREE)

    How can I count the number of keys between two values?
    I'm using python driver, and BTREE access method.
    ====>
    ideally what I want is to average a whole time-series data set (the intervals can change) to a given number of points. The keys are the time stamps and the values are the data that needs to be averaged. I need to count the number of records between two time stamps so that I can divide that number by the number of points i need, and average the data. What is the best way to do this?  Or should I just keep the intervals for the time stamp constant and use RECNO access method?
    Thank you
    (first post btw.. and why aren't there many people in stackoverflow who answer Berkeley DB questions?)

    BDB is an embedded db and it does not have any internal counters or statistics that you could grap to use for this.    You will need to do it manually.
    You can create a cursor, grap the records you want, each time you get the next record you bump a counter.
    If you are using RECNO, you can use a cursor to get the record number of the record (DB_GET_RECNO), and if all you data is in
    sequentail records with no missing records you can figure out the total count by take last rec # - initial rec # + 1 to get a total count.
    If you switch over to the SQL API, you can issue a SQL query to give you a count.  Select count(*) Where .......
    Since you have to grab the data anyway, then best may be to count records as you go along.
    thanks
    mike

  • How to Ignore records having duplicate field value

    Hi,
    I have a fixed length flat file having multiple records.
    Ex:
    1000423421A8090
    1000802421A8091
    1000454421B8092
    1000412421C8093
    The first 2 record has A. So I have to take only one out of first two record and ignore the second one. I mean if there is any duplicate field at 11th position then I have to select only one record.
    Can you please let me know how to handle this.
    Thanks
    Mukesh

    Mukesh,
    Use the following UDF to achieve the same.
    <u><b><i>getchar</i></b></u>
    char ret = Values.charAt(10);
    return ""ret"";
    <u><b><i>Maptarget</i></b></u>
       //write your code here
    int len = Values.length;
    String char_at="";
    String pos="";
    for(int j=0;j<len;j++)
    if(j==0){
    result.addValue(Values[j]);
    else
    char_at= ""+ Values[j-1].charAt(10);
    pos=""+Values[j].charAt(10);
    if(!char_at.equals(pos))
    result.addValue(Values[j]);
    <b><i><u>Mapping Logic</u></i></b>
    1. Use sort by key function
    in the first parameter map - Source -UDF(getchar)
    in the second parameter map -Source
    2.Map the output of sortbykey to UDF(Maptarget)
    3.Finally Map the o/p of UDF to target.
    I checked it, its working as per your reqmt.
    If you have any doubts reply me I'll help you out.
    Note: In UDF(MapTarget) use Queue
    Best Regards,
    Raj.

  • Error message " the field has no defined values

    Hi friends,
       I have declared a field 'GV_total' for totals in global declaration and also in currency fields.
    I have calculated the total in the program lines into this variable 'GV_total' and displaying this variable GV_total in the text element.
    I have activated the smartform and run the print program, it is displaying the total currectly in the output.
    Now the issue is, when I activate the smartform it is diplaying error message like "GV_total has no defined values".
    how to rectify this error.
    Please help me to solve this issue.
    Thanks & Regards,
    Sathish

    Hi,
    It is just a warning, you can avoid this by specifying a Value(say 0) while declaring the variable in Global definitions.
    Regards
    Karthik D

Maybe you are looking for

  • Acrobat 9 March 6th unable to view pdf created in AA9

    I have Adobe Acrobat v9 and have done some maintanence on the pdf. My client on his office computer can see the pdf , On his home computer he is unable to view the pdf he tells me he has adobe reader 6 can any of you guys see the pdf ? address is htt

  • Problems with acknowlegment of soap

    Hi, I have the scenario idoc - xi - soap I sent the idoc to webservice but  the acknowledgment have a mistake: In the rwb Message processing failed. Cause: com.sap.engine.services.ejb.exceptions.BaseTransactionRolledbackLocalException: Exception thro

  • Bought mtn lion need to get it on additional computer

    bought mtn. lion and now i want to install on my laptop...when i go to app store it asks me to purchase again....

  • Working with NIO and non-NIO sockets

    Hello, Trying to write a network manager kind of program where the client initiates a number of connections to different servers. Need to manage these connections through the life time of the session ( time the client is connected to the server). The

  • Using PSP as an itunes remote with Coverbuddy

    Has anyone successfully got Coverbuddy to work? I think it is working OK on the mac but the PSP is not seeing it. Actually, can I ask this question here as it is not an apple product? Apologies if I can't.