<?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: Risk Modeling, configuring subset maps in SAS Risk Management</title>
    <link>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799863#M436</link>
    <description>I’m not sure what you mean by that. There is no mismatch of Char-Numeric though. All columns have proper entries. When a mismatch happens another error pops up telling me there is a mismatch between the columns.&lt;BR /&gt;</description>
    <pubDate>Thu, 03 Mar 2022 14:25:45 GMT</pubDate>
    <dc:creator>beste</dc:creator>
    <dc:date>2022-03-03T14:25:45Z</dc:date>
    <item>
      <title>Risk Modeling, configuring subset maps</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799692#M430</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to update subset maps in the risk modeling solution.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm on the step to configure joins.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This is the code that I've used:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;&lt;BR /&gt;insert into apdm.Subset_Table_Join_Condition&lt;BR /&gt;(Subset_Table_Join_Condition_Sk, Subset_From_Path_Sk, &lt;BR /&gt;Join_Condition_Sequence_Number, Join_Type, &lt;BR /&gt;Left_Table_Sk, Left_Column_Sk, Right_Table_Sk, &lt;BR /&gt;Right_Column_Sk, created_dttm, &lt;BR /&gt;created_by_user, last_processed_dttm, last_processed_by_user)&lt;BR /&gt;values(1111114, 13, 1, 'LEFT', 1100013, 1100014, 1100015, 1100016, "%sysfunc(datetime(),DATETIME.)"dt,&lt;BR /&gt;"&amp;amp;sysuserid", "%sysfunc(datetime(),DATETIME.)"dt,"sysuserid");&lt;BR /&gt;quit;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;I get the error below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ERROR: During insert: ERROR: insert or update on table "subset_table_join_condition" violates foreign key constraint &lt;BR /&gt;       "subset_table_join_condition_left_column_sk_fkey"&lt;BR /&gt;DETAIL: Key (left_column_sk)=(1100014) is not present in table&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I checked the table and I know for a fact that left_column_sk exists in the table. When I tried to omit it, it wouldn't let me do that either because of the null constraint. What am I doing wrong here?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/302184"&gt;@sasprogramming&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 21:18:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799692#M430</guid>
      <dc:creator>beste</dc:creator>
      <dc:date>2022-03-02T21:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Risk Modeling, configuring subset maps</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799695#M431</link>
      <description>&lt;P&gt;Have you checked to make sure that the specific key the join&amp;nbsp; is looking for, 1100014 exists for that column?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 21:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799695#M431</guid>
      <dc:creator>BrendanW</dc:creator>
      <dc:date>2022-03-02T21:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Risk Modeling, configuring subset maps</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799697#M432</link>
      <description>I’m not sure if I interpreted you correctly. This is a new record, so I’m trying to add that value. Was this what you were asking for?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Mar 2022 21:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799697#M432</guid>
      <dc:creator>beste</dc:creator>
      <dc:date>2022-03-02T21:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Risk Modeling, configuring subset maps</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799704#M433</link>
      <description>&lt;P&gt;If I understand this correctly, you are trying to insert a row, but if the column is referencing a column in another table (a foreign key), that key must exist in the other table. If the key doesn't exist in that table, then you'll get a foreign key violation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm unfortunately not specifically familiar with this product.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 22:45:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799704#M433</guid>
      <dc:creator>BrendanW</dc:creator>
      <dc:date>2022-03-02T22:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Risk Modeling, configuring subset maps</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799705#M434</link>
      <description>Yes, I understand that. But the key exists in the table that im trying to insert. I’m just trying to put a value to the respecting key&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Mar 2022 22:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799705#M434</guid>
      <dc:creator>beste</dc:creator>
      <dc:date>2022-03-02T22:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Risk Modeling, configuring subset maps</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799706#M435</link>
      <description>&lt;P&gt;Do the data types match for both between the tables? For example, NUMERIC(8) i believe is the data type that the columns should be using.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 23:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799706#M435</guid>
      <dc:creator>BrendanW</dc:creator>
      <dc:date>2022-03-02T23:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Risk Modeling, configuring subset maps</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799863#M436</link>
      <description>I’m not sure what you mean by that. There is no mismatch of Char-Numeric though. All columns have proper entries. When a mismatch happens another error pops up telling me there is a mismatch between the columns.&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Mar 2022 14:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Risk-Modeling-configuring-subset-maps/m-p/799863#M436</guid>
      <dc:creator>beste</dc:creator>
      <dc:date>2022-03-03T14:25:45Z</dc:date>
    </item>
  </channel>
</rss>

