Maximum index key length exceeded

Hi,
I am getting following error on executing this command in MS SQL server 2012-
Command -
alter table <table1_name> add constraint <constraint name> foreign key (<column1 name>) references <table2_name>(<column2_name>)
Error -
System Error: #1400025: Maximum index key length exceeded
Warning: #1500562: Index will apply to all business objects
Any suggestion on what I can check in this case?
Thanks.

alter table <table1_name> add constraint <constraint name> foreign key (<column1 name>) references <table2_name>(<column2_name>)
Error -
System Error: #1400025: Maximum index key length exceeded
Warning: #1500562: Index will apply to all business objects
Any suggestion on what I can check in this case?
This is not a SQL Server error.  What tool are you using? If you are using SSMS, maybe a DDL trigger? 
Dan Guzman, SQL Server MVP, http://www.dbdelta.com

Similar Messages

  • [b]ORA-01450: maximum key length exceeded[/b]

    Hi I get this error when trying to migrate MS Access 2000 to Oracle. I get this error on foreign key and primary keys saying that the maximum key length has been exceeded.
    What does this mean and how can I fix it? Can anyone help?
    Thanks
    Ray

    Maximum key length also depends on tablespace block size. It seems that your value (1942) may be for 2K blocks.
    At least for my 10.2.0.1.0 on Windoze it takes
    1478 for 2k tablespace
    3118 for 4k tablespace
    6398 for 8k tablespace
    If you have 2K blocks I'd say it is somewhat rather small blocks, I'd normally use 8K blocks.
    So if you have possibility (have at least version 9, probably 9.2 don't know exactly) to create tablespaces with non default blocksize then as a temporal solution you can create tablespace with larger blocksize and create index in it.
    Of course so you have to allocate also some memory for these blocksizes and so divide your memory in possibly less utilized pieces.
    See example for my 8k default blocksize test DB:
    SQL> create table v (a varchar2(4000), b varchar2(4000), c varchar2(4000));
    Table created.
    SQL> insert into v values (lpad('a', 4000, 'a'), null, null);
    1 row created.
    SQL> create index vidx on v (a, b, c);
    create index vidx on v (a, b, c)
    ERROR at line 1:
    ORA-01450: maximum key length (6398) exceeded
    SQL> alter system set db_16k_cache_size = 10240;
    System altered.
    SQL> create tablespace big datafile 'big.dbf' size 10 m blocksize 16k;
    Tablespace created.
    SQL> create index vidx on v (a, b, c) tablespace big;
    Index created.
    Gints Plivna
    http://www.gplivna.eu
    Message was edited by:
    gintsp
    Of course inserting a row was completely unnecessary :)

  • ConfigMgr Certificate Support Clarification: CAs with 4096-bit RSA Key Lengths

    Hello,
    Does anyone know if ConfigMgr 2012 R2's certificate authentication will work with the following PKI configuration?
    Root CA - 4096 bit RSA
    Issuing CA - 4096 bit RSA
    ConfigMgr Client / ConfigMgr Servers - 2048 bit RSA
    I saw on the
    ConfigMgr Certificate Support Page that "AMT-based computers cannot support CA certificates with a key length larger than 2048 bits", but the other certificates are somewhat unclear. In this environment, I will not deploy AMT functionality.
    For example, the Windows client computers certificate requirements state "Maximum supported key length is 2048 bits.", but it isn't clear if that rule applies to the ConfigMgr Client certificate itself, or to the whole certificate chain including
    CAs.
    Dropps' post on
    this forum page seems to indicate that he has it working with a 4096-bit CA, but I'd like to hear some additional confirmation.
    Anyone out there running ConfigMgr certificates with a 4096-bit CA?
    Thanks!
    Frank Lesniak

    TL;DR: With the exception of out-of-band management/AMT, ConfigMgr 2012 works fine with a PKI hierarchy that includes 4096-bit key length RSA Root CA, Policy CA, and/or Issuing CA certificates. Just make sure that the certificates issued to
    the ConfigMgr servers and clients have a 2048-bit key length.
    Longer answer: Since I did not have any takers on this question, and since I needed an answer quickly, I decided to build a lab environment. I built a PKI hierarchy that is 4096-bit RSA with a SHA-256 signing algorithm. I created certificates templates per
    ConfigMgr requirements (with a 2048-bit key length) and deployed the appropriate certs to both the ConfigMgr server and client. Next, I installed ConfigMgr and configured site boundaries. Then I installed the ConfigMgr client on my client machine and
    watched the logs.
    Not only did the client initialize properly, the certificatemaintenance.log, clientidmanagerstartup.log, and clientlocation.log files all appeared happy.
    I think it's safe to say that ConfigMgr supports a 4096-bit PKI for everything but out of band management/AMT. Just make sure you limit the certs deployed to the ConfigMgr servers or clients to a 2048-bit key length.

  • ORA 01450 : maximum key length (1942) exceeded

    hI all,
    i got that message when try to create index.
    ORA 01450 : maximum key length (1942) exceeded
    Regards,

    Maximum key length also depends on tablespace block size. It seems that your value (1942) may be for 2K blocks.
    At least for my 10.2.0.1.0 on Windoze it takes
    1478 for 2k tablespace
    3118 for 4k tablespace
    6398 for 8k tablespace
    If you have 2K blocks I'd say it is somewhat rather small blocks, I'd normally use 8K blocks.
    So if you have possibility (have at least version 9, probably 9.2 don't know exactly) to create tablespaces with non default blocksize then as a temporal solution you can create tablespace with larger blocksize and create index in it.
    Of course so you have to allocate also some memory for these blocksizes and so divide your memory in possibly less utilized pieces.
    See example for my 8k default blocksize test DB:
    SQL> create table v (a varchar2(4000), b varchar2(4000), c varchar2(4000));
    Table created.
    SQL> insert into v values (lpad('a', 4000, 'a'), null, null);
    1 row created.
    SQL> create index vidx on v (a, b, c);
    create index vidx on v (a, b, c)
    ERROR at line 1:
    ORA-01450: maximum key length (6398) exceeded
    SQL> alter system set db_16k_cache_size = 10240;
    System altered.
    SQL> create tablespace big datafile 'big.dbf' size 10 m blocksize 16k;
    Tablespace created.
    SQL> create index vidx on v (a, b, c) tablespace big;
    Index created.
    Gints Plivna
    http://www.gplivna.eu
    Message was edited by:
    gintsp
    Of course inserting a row was completely unnecessary :)

  • ORA-01450: maximum key length (string) exceeded

    CREATE TABLE ABC
    (ADAPTERINSTID NUMBER(12),
    MOTYPEID NUMBER(12),
    GROUPDISCID VARCHAR(3000),
    MEMBER_MOTYPEID NUMBER(12),
    MEMBER_MOINSTID VARCHAR(3000),
    primary key (
    ADAPTERINSTID,
    MOTYPEID,
    GROUPDISCID,
    MEMBER_MOTYPEID,
    MEMBER_MOINSTID));
    This is Oracle 11.2 and db_block_size is set to 8192 , Need help .
    One way is use db_block_size like 16 K
    thanks in advance,

    From Show parameter nls_length_semantics
    We come to know its --> nls_length_semantics CHAR
    Will below solution works ?
    ALTER SYSTEM SET NLS_LENGTH_SEMANTICS='BYTE' scope=both;
    This I found at ORA-01450: maximum key length (6398) exceeded
    thanks

  • SQL Azure Reporting - There was an exception running the extensions specified in the config file. --- Maximum request length exceeded.

    I am trying to deploy an RDL file (5MB) to SQL Azure Reporting server in South Central US using the deploy function in SQL Server Data Tools but facing the following error during deployment to Azure Reporting server.
    "There was an exception running the extensions specified in the config file. ---> Maximum request length exceeded."
    Is there any limit on the size of RDL files which can be deployed to Azure Reporting server? I have seen some online posts which talk about increasing the maxRequestLength in httpruntime of web.config in Reporting server. But in case of Azure Reporting server
    how can be make modification to this configuration?
    I have tried to upload it directly to SQL Azure Reporting server from the Management Portal --> Upload Report function which still resulted in error.
    Thanks & Regards, Deep

    Thanks for your question. Unfortunately we are in the process of deprecating SQL Reporting services.  Full details are available at http://msdn.microsoft.com/en-us/library/gg430130.aspx
    Thanks Guy

  • Column name length exceeds maximum allowed

    Hello,
    I get this error when am trying to create a table. ERROR: Column name length exceeds maximum allowed length(30).
    Is it able to extend this length to be more than 30 ? By the way I am using Oracle 11g
    Regards,
    Moussa El Tayeb
    about.me/MoussaEltayeb

    Hello,
    also Oracle has some limits. For more Information see the logical limits
    http://docs.oracle.com/cd/E14072_01/server.112/e10820/limits.htm
    regards
    Peter

  • ADAPTER.SOAP_EXCEPTION:Maximum request length exceeded.

    Hi frnds,
    Plz look for the error i am getting when sending large record...
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="PARSING">ADAPTER.SOAP_EXCEPTION</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>soap fault: System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. ---> System.Web.HttpException: Maximum request length exceeded. at System.Web.HttpRequest.GetEntireRawContent() at System.Web.HttpRequest.get_InputStream() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() --- End of inner exception stack trace --- at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response) at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    What could be the possible solution .
    Thanks,
    Adhir

    Hi Ahdir,
    First of all check the URL in your receiver SOAP adapter. The error comes from the web service server. It says that the request message is wrong.
    U have to fill field SOAPAction in the receiver soap adapter
    U may find the related information here
    http://help.sap.com/saphelp_nw2004s/helpdata/en/29/5bd93f130f9215e10000000a155106/content.htm
    Please check this
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    There are multiple soap actions listed there.
    Regards,
    Divya

  • Identifier length exceeds the maximum of 31 characters

    I use the sun f90 compiler to compile a subroutine. However, the compiler told me the subroutine's name is too long. Deos anybody know how to solve this problem? I really need such long subroutine name. Many thanks!
    % f90 -DCAM -DNO_SHR_VMATH -DHIDE_SHR_MSG -inline=%auto -fast -g -fsimple=1 -fns=no -O4 -DHIDE_MPI -g -c gfdl_column_diagnostics_mod.F90
    gfdl_column_diagnostics_mod.F90", Line = 379, Column = 15: ERROR: Identifier length exceeds the maximum of 31 characters.

    Thanks for your reply!
    The version we use is:
    Sun WorkShop 6 update 2 Fortran 95 6.2 2001/05/15
    Must we update our compiler to enable longer
    identifiers?Yes, I am afraid so. You can download the latest version at no charge
    from Sun's website. I suggest waiting until Monday or Tuesday to
    download it.
    You might have a problem mixing old and new .mod files with such an
    old version of the compiler. You should plan on recompiling all your
    files that contain modules.
    Bob Corbett

  • Windows service, error Maximum request length exceeded

    What is causing this error, from the windows service?
    There was an exception running the extensions specified in the config file. ---> Maximum request length exceeded

    Hi Nick,
    Per my understanding you got this error "Maximum request length exceeded" about your reporting services, right?
    It seems the issue is caused by the request reach the max length.
    To solve the issue, please made the changes in web.config of both the Report Server and the Report Manager:
    <httpRuntime executionTimeout = "9000" maxRequestLength=" 2097151" />
    If the solution above does not help, please post the error logs of the Report Server. The error logs will help us more about troubleshooting and also provide us details information about what actions you are doing when causing this error.
    We can get the logs from:
    <Install Driver>:\Program Files\Microsoft SQL Server\MSSQL.<X>\Reporting Services\LogFiles
    Please feel free to ask, if you have any more questions.
    Regards
    Vicky Liu

  • Maximum request length exceeded

    I'm trying to upload a file to mobile services .NET backend, however I'm getting the error "Maximum request length exceeded". I tried increasing the limit in web.config file, but it only worked on the local version and still throws the error when
    published to Azure.
    As far as I understand the mobile services is ignoring the web.config file. So is there any other way to increase the upload limit?

    good news.. found a fix for this.
    it's actually the same fix for file uploads that exceed the default 4mb set by IIS. however, the change needs to made to the report manager web.config file and not the report server web.config file. that's why it didn't work for me the first time.
    here is an article that talks about it http://support.softartisans.com/kbview_825.aspx
    if you have kept the default installation directory, the file you edit is:
    C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager\Web.config
    Just add the maxRequestLength property here and set a size appropriate to you. Not to large to discourage DoS attacks.
    The example below is 10mb
    <httpRuntime executionTimeout="9000"  maxRequestLength="10240"/>
    hope it helps.

  • ORA-31044: Top-level prefix length  exceeds maximum

    Hi,
    I am trying to migrate the cube and associated view created by view generator from one environment to another environment.
    The cube is migraed through XML and it is working.
    But when we compile the view created in one environment in the target environemn after cube migration we get and error as - "ORA-31044: Top-level prefix length exceeds maximum".
    What is the resolution for this?
    Regards,
    Gurudatta

    Not sure what is happening between production and development environments, if it worked in dev it should work in production assuming no other changes were made to the data model. Data volumes should not be an issue. When you are testing the view are you using a WHERE clause to limit the number of rows returned? Try just returning the top level for each dimension, the 'All' dimension member as this will return just one row (or one row for each year if you have a time dimension with year as the top level).
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • "ALERT: Maximum byte code length (32kB) exceeded"??

    When I wrote a program about MIDlet, the platform give me a runtime error message as followed:
    "ALERT: Maximum byte code length (32kB) exceeded"
    I knew I wrote an big hashtable about 3,000 rows, is this the reason? If it is, how can solve the problem, the fact is I still need that big hashtable, it's a word-library, or could anyone tell me how to solve the problem?
    thanks a lot!

    I found the reason, in J2ME, every object can not excess the normal size which is 32kB, obviously, my Hashtable is too big, that is the problem!

  • Maximum Number fields in a secondary index key

    Hello All,
    We created a secondary index on BSIS which we had to drop as system was hung up. My question is how many fileds SAP recommends in a secondary index key? Ours had 6 keys including mandt.
    Thanks

    Hi Sameer,
    There is no real specification in number of fields for an index as fas as i know. Definitely 6 fields is allowed for a secondary
    index.But it really matters with the number of secondary indices. So dont create too many secondary index for a single table.
    Try to use other optimization techniques in the programming instead of creating secondary index.
    //Kothand

  • Dynamic Configuration key length

    I am using dynamic configuration to set certain JMS properties but it appears that the maximum key length is 20 characters.
    Has anyone experienced this problem.  Is this a bug?
    Thanks
    Here is my code
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/JMS", "com_inforecord_messageProcessor");
    conf.put(key1, "SoapMessage");

    Yes, is possible.
    Take a look here:
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=95093307
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00a7ba12-e7cd-2b10-d589-e52b11346f77

Maybe you are looking for

  • How can I send a podcast video via email?

    Hello techies, How can I send a National Geographic podcast via email to a friend? I've tried importing and exporting without much success.

  • BW AL11 error

    Hi All, I am getting the following error Message with maximum length and maximum variable parts: /u02/data/G_9999_BW/GDR/in/   1234* when I try uploadig file to .csv file to al11. Have anyone have this issue before if so what is this error message me

  • How can change my photo editor in iphoto preferences?

    accidentally hit InDesign when setting up my photo editor in iphoto preferences.  how can I switch it to Photoshop (which isn't currently listed in the dropdown menu, obviously)?  many thanks, BB

  • Transferring CD Protected Music into iTunes or iPod

    If anyone can help I would appreciate it: For the problem, I just bought the 30 Seconds to Mars CD in store and when I went to play it on my computer to import the songs into iTunes, the CD freezes everything on my computer, you have to agree to a us

  • Ipad 2 screen appears to be dead

    I accidently inserted my Iphone charger USB into the Ipad 2 and tried to back up in the computer. Now I found my Ipad 2 screen appears to be dead. Only the apple image shown and the Itune cannot identify Ipad.  What should I do?