<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [DIS] Foreign key definition in table is incomplete in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325537#M9480</link>
    <description>&lt;P&gt;I think the main point is the line:&amp;nbsp;&lt;EM&gt;The&amp;nbsp;foreign&amp;nbsp;key PAYMENT.AXORDER is invalid because it has no partner unique key. It is recommended that the key be deleted.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if you missed a bit from what you pasted - I can't see the integrity constraints listed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have DI available to me right now, so I'm suggesting this over the top off my head. Can you open a code editor from the Tools menu and type in&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=STG0TRAX.TRAX_AXORDER details;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That&amp;nbsp;&lt;EM&gt;details&lt;/EM&gt; is the crucial bit - it forces&amp;nbsp;&lt;EM&gt;contents&lt;/EM&gt; to show index and constraint information at the bottom of each table listing. I'm expecting to see something like:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6774i7783ACC7C461BACA/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Screen Shot 2017-01-18 at 2.42.17 PM.png" title="Screen Shot 2017-01-18 at 2.42.17 PM.png" /&gt;&lt;/P&gt;
&lt;P&gt;Additionally if you look at the generated code for the&amp;nbsp;&lt;EM&gt;create table&lt;/EM&gt; you may see something which refers to the foreign key.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2017 01:50:18 GMT</pubDate>
    <dc:creator>LaurieF</dc:creator>
    <dc:date>2017-01-18T01:50:18Z</dc:date>
    <item>
      <title>[DIS] Foreign key definition in table is incomplete</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325126#M9407</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I m getting this error "&amp;nbsp;Foreign key definition in table is incomplete" and I dont know why. I don't even know what the issue is. A solution that works is to delete the table and register it again, but that is very tedious, since quite a lot of tables are broken.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Data Integration Studio 4.9 and SAS 9.4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6748i5B41447FFEB4DAEC/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="dis-fkey.JPG" title="dis-fkey.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me out please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 20:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325126#M9407</guid>
      <dc:creator>dirks</dc:creator>
      <dc:date>2017-01-16T20:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: [DIS] Foreign key definition in table is incomplete</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325157#M9408</link>
      <description>&lt;P&gt;Can you show what the definition of the table is? If the table already exists and is causing an error when you load into it, there is probably a difference between the current definition of the table and what the&amp;nbsp;&lt;EM&gt;create table&lt;/EM&gt; node is attempting to do with it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you let us know what the foreign key definition is within &lt;EM&gt;create table &lt;/EM&gt;and the metadata for both&amp;nbsp;&lt;EM&gt;orderpiece&amp;nbsp;&lt;/EM&gt;and&amp;nbsp;&lt;EM&gt;trax_orderpiece&lt;/EM&gt;? and how the table is currently physically defined? (&lt;EM&gt;proc contents&lt;/EM&gt; will show it - right-click the table node, selection &lt;EM&gt;Analyze&amp;nbsp;&lt;/EM&gt;then&amp;nbsp;&lt;EM&gt;Contents&lt;/EM&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 00:39:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325157#M9408</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-01-17T00:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: [DIS] Foreign key definition in table is incomplete</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325215#M9409</link>
      <description>&lt;P&gt;If I click through the tabs of the Create&amp;nbsp;Table&amp;nbsp;transformation, this error pops up:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;foreign&amp;nbsp;key PAYMENT.AXORDER is invalid because it has no partner unique key. It is recommended that the key be deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the content of AXORDER:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                                                           Das SAS System                        10:52 Tuesday, January 17, 2017   1

                                                       Die Prozedur CONTENTS

                                Dateiname         TRAXPROD.AXORDER    Beobachtungen            .   
                                Membertyp         DATA                Variablen                62  
                                Engine            ORACLE              Indizes                  0   
                                Erstellt          .                   Beobachtungslänge        0   
                                Zuletzt geändert  .                   Gelöschte Beobachtungen  0   
                                Schutz                                Komprimiert              NEIN
                                Dateityp                              Sortiert                 NEIN
                                Etikett                                                            
                                Datendarstellung  Standard                                         
                                Codierung         Default                                          


                                          Alphabetische Liste der Variablen und Attribute
 
                    #    Variable             Typ     Länge    Format         Einleseformat    Etikett

                    1    AXORDERID            Char        9    $9.            $9.              AXORDERID        
                   29    BANKPERMIT           Char        1    $1.            $1.              BANKPERMIT       
                   30    COLLECTIV_INVOICE    Char        1    $1.            $1.              COLLECTIV_INVOICE
                   56    CONADDITIONAL        Char      255    $255.          $255.            CONADDITIONAL    
                   48    CONADDRESSID         Char        9    $9.            $9.              CONADDRESSID     
                   51    CONCITY              Char      255    $255.          $255.            CONCITY          
                   58    CONCOUNTRY           Char        2    $2.            $2.              CONCOUNTRY       
                   57    CONDEPARTMENT        Char      128    $128.          $128.            CONDEPARTMENT    
                   54    CONEMAIL             Char     4000    $4000.         $4000.           CONEMAIL         
                   53    CONFAX               Char       36    $36.           $36.             CONFAX           
                   55    CONMOBIL             Char       36    $36.           $36.             CONMOBIL         
                   52    CONPHONE             Char       36    $36.           $36.             CONPHONE         
                   46    CONSIGNEE            Char      255    $255.          $255.            CONSIGNEE        
                   47    CONSIGNEEADD         Char      255    $255.          $255.            CONSIGNEEADD     
                   61    CONSIGNEENO          Char       32    $32.           $32.             CONSIGNEENO      
                   49    CONSTREET            Char      255    $255.          $255.            CONSTREET        
                   50    CONZIP               Char       36    $36.           $36.             CONZIP           
                   11    CREATED              Num         8    DATETIME20.    DATETIME20.      CREATED          
                   13    CUSTOMER             Char      255    $255.          $255.            CUSTOMER         
                   14    CUSTOMERADD          Char      255    $255.          $255.            CUSTOMERADD      
                    6    CUSTOMERREF          Char      128    $128.          $128.            CUSTOMERREF      
                   32    EUROCURRENCY         Num         8                                    EUROCURRENCY     
                   23    INVADDITIONAL        Char      255    $255.          $255.            INVADDITIONAL    
                   15    INVADDRESSID         Char        9    $9.            $9.              INVADDRESSID     
                   18    INVCITY              Char      255    $255.          $255.            INVCITY          
                   26    INVCONTACT           Char      255    $255.          $255.            INVCONTACT       
                   25    INVCOUNTRY           Char        2    $2.            $2.              INVCOUNTRY       
                   24    INVDEPARTMENT        Char      128    $128.          $128.            INVDEPARTMENT    
                   21    INVEMAIL             Char     4000    $4000.         $4000.           INVEMAIL         
                   20    INVFAX               Char       36    $36.           $36.             INVFAX           
                   22    INVMOBIL             Char       36    $36.           $36.             INVMOBIL         
                   59    INVNO                Char       32    $32.           $32.             INVNO            
                    9    INVOICE              Char        1    $1.            $1.              INVOICE          
                   19    INVPHONE             Char       36    $36.           $36.             INVPHONE         
                   16    INVSTREET            Char      255    $255.          $255.            INVSTREET        
                   17    INVZIP               Char       36    $36.           $36.             INVZIP           
                   31    ISOCURRENCY          Char        3    $3.            $3.              ISOCURRENCY      
                    4    ORDERDATE            Num         8    DATETIME20.    DATETIME20.      ORDERDATE        
                    2    ORDERID              Char        9    $9.            $9.              ORDERID          
                    3    ORDERNR              Char       32    $32.           $32.             ORDERNR          
                                                           Das SAS System                        10:52 Tuesday, January 17, 2017   2

                                                       Die Prozedur CONTENTS

                                          Alphabetische Liste der Variablen und Attribute
 
                    #    Variable             Typ     Länge    Format         Einleseformat    Etikett

                   62    PAYMENTID            Char        9    $9.            $9.              PAYMENTID        
                    7    PAYMENTREF           Char      255    $255.          $255.            PAYMENTREF       
                    8    PRODUCT              Char       50    $50.           $50.             PRODUCT          
                   12    READOUT              Num         8    DATETIME20.    DATETIME20.      READOUT          
                   28    SAP                  Char       20    $20.           $20.             SAP              
                    5    SAPVATCODE           Char        4    $4.            $4.              SAPVATCODE       
                   33    SHIPPER              Char      255    $255.          $255.            SHIPPER          
                   34    SHIPPERADD           Char      255    $255.          $255.            SHIPPERADD       
                   60    SHIPPERNO            Char       32    $32.           $32.             SHIPPERNO        
                   43    SPADDITIONAL         Char      255    $255.          $255.            SPADDITIONAL     
                   35    SPADDRESSID          Char        9    $9.            $9.              SPADDRESSID      
                   38    SPCITY               Char      255    $255.          $255.            SPCITY           
                   45    SPCOUNTRY            Char        2    $2.            $2.              SPCOUNTRY        
                   44    SPDEPARTMENT         Char      128    $128.          $128.            SPDEPARTMENT     
                   41    SPEMAIL              Char     4000    $4000.         $4000.           SPEMAIL          
                   40    SPFAX                Char       36    $36.           $36.             SPFAX            
                   42    SPMOBIL              Char       36    $36.           $36.             SPMOBIL          
                   39    SPPHONE              Char       36    $36.           $36.             SPPHONE          
                   36    SPSTREET             Char      255    $255.          $255.            SPSTREET         
                   37    SPZIP                Char       36    $36.           $36.             SPZIP            
                   10    TEXT                 Char     1000    $1000.         $1000.           TEXT             
                   27    VATID                Char       20    $20.           $20.             VATID            &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the result table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;                                                           Das SAS System                        10:53 Tuesday, January 17, 2017   1

                                                       Die Prozedur CONTENTS

                           Dateiname         STG0TRAX.TRAX_AXORDER         Beobachtungen            91708
                           Membertyp         DATA                          Variablen                6    
                           Engine            BASE                          Indizes                  0    
                           Erstellt          01/17/2017 01:05:49           Beobachtungslänge        56   
                           Zuletzt geändert  01/17/2017 01:05:49           Gelöschte Beobachtungen  0    
                           Schutz                                          Komprimiert              NEIN 
                           Dateityp                                        Sortiert                 NEIN 
                           Etikett                                                                       
                           Datendarstellung  WINDOWS_64                                                  
                           Codierung         wlatin1  Western (Windows)                                  


                                                Engine/Hostabhängige Informationen

            Dateiseitengröße                  65536                                                                    
            Anzahl der Dateiseiten            79                                                                       
            Erste Datenseite                  1                                                                        
            Max. Anz. Beob. pro Seite         1167                                                                     
            Anz. Beob. auf erster Datenseite  1137                                                                     
            Anzahl der Dateireparaturen       0                                                                        
            ExtendObsCounter                  YES                                                                      
            Dateiname                         D:\DWH\Prod\Data\Staging\Stage0\Startrax\trax_axorder.sas7bdat
            Erstellt mit Release              9.0401M2                                                                 
            Erstellt mit Betriebssystem       X64_SRV12                                                                


                                          Alphabetische Liste der Variablen und Attribute
 
                          #    Variable        Typ     Länge    Format         Einleseformat    Etikett

                          2    AXORDERID       Char        9    $9.            $9.              AXORDERID
                          5    CREATED         Num         8    DATETIME20.    DATETIME20.      CREATED  
                          1    ETL_Datetime    Num         8                   DATETIME20.               
                          3    ORDERID         Char        9    $9.            $9.              ORDERID  
                          4    ORDERNR         Char       14    $14.           $14.             ORDERNR  
                          6    READOUT         Num         8    DATETIME20.    DATETIME20.      READOUT  &lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jan 2017 09:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325215#M9409</guid>
      <dc:creator>dirks</dc:creator>
      <dc:date>2017-01-17T09:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: [DIS] Foreign key definition in table is incomplete</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325243#M9410</link>
      <description>&lt;P&gt;This seems like a metadata error rather than a physical table problem.&lt;/P&gt;
&lt;P&gt;What does the Keys tab for your target table look like?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 11:21:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325243#M9410</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-01-17T11:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: [DIS] Foreign key definition in table is incomplete</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325253#M9411</link>
      <description>&lt;P&gt;Linus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the key tab is empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 12:08:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325253#M9411</guid>
      <dc:creator>dirks</dc:creator>
      <dc:date>2017-01-17T12:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: [DIS] Foreign key definition in table is incomplete</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325537#M9480</link>
      <description>&lt;P&gt;I think the main point is the line:&amp;nbsp;&lt;EM&gt;The&amp;nbsp;foreign&amp;nbsp;key PAYMENT.AXORDER is invalid because it has no partner unique key. It is recommended that the key be deleted.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if you missed a bit from what you pasted - I can't see the integrity constraints listed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have DI available to me right now, so I'm suggesting this over the top off my head. Can you open a code editor from the Tools menu and type in&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=STG0TRAX.TRAX_AXORDER details;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That&amp;nbsp;&lt;EM&gt;details&lt;/EM&gt; is the crucial bit - it forces&amp;nbsp;&lt;EM&gt;contents&lt;/EM&gt; to show index and constraint information at the bottom of each table listing. I'm expecting to see something like:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6774i7783ACC7C461BACA/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Screen Shot 2017-01-18 at 2.42.17 PM.png" title="Screen Shot 2017-01-18 at 2.42.17 PM.png" /&gt;&lt;/P&gt;
&lt;P&gt;Additionally if you look at the generated code for the&amp;nbsp;&lt;EM&gt;create table&lt;/EM&gt; you may see something which refers to the foreign key.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 01:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325537#M9480</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-01-18T01:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: [DIS] Foreign key definition in table is incomplete</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325622#M9482</link>
      <description>&lt;P&gt;I went through the&amp;nbsp;Keys tab of my source tables and I saw the foreign keys there. Once I clicked on them, I got an error message and it was suggested to delete them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went through all tables and deleted the missing keys and now it is working properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks everyone!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 11:21:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DIS-Foreign-key-definition-in-table-is-incomplete/m-p/325622#M9482</guid>
      <dc:creator>dirks</dc:creator>
      <dc:date>2017-01-18T11:21:51Z</dc:date>
    </item>
  </channel>
</rss>

