<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.phenomportal.com/index.php?action=history&amp;feed=atom&amp;title=Formatting_a_CSV_for_Constraint_Import</id>
	<title>Formatting a CSV for Constraint Import - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.phenomportal.com/index.php?action=history&amp;feed=atom&amp;title=Formatting_a_CSV_for_Constraint_Import"/>
	<link rel="alternate" type="text/html" href="https://kb.phenomportal.com/index.php?title=Formatting_a_CSV_for_Constraint_Import&amp;action=history"/>
	<updated>2026-04-27T17:26:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://kb.phenomportal.com/index.php?title=Formatting_a_CSV_for_Constraint_Import&amp;diff=1586&amp;oldid=prev</id>
		<title>Annie: Added Constraint import page</title>
		<link rel="alternate" type="text/html" href="https://kb.phenomportal.com/index.php?title=Formatting_a_CSV_for_Constraint_Import&amp;diff=1586&amp;oldid=prev"/>
		<updated>2026-02-06T20:02:42Z</updated>

		<summary type="html">&lt;p&gt;Added Constraint import page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;To bulk import constraints, the CSV file should be formatted as described in this article.&lt;br /&gt;
&lt;br /&gt;
== General Column/Data Requirements ==&lt;br /&gt;
The following column headers must exist and contain data in each row:&lt;br /&gt;
* Constraint_Name or Constraint_GUID&lt;br /&gt;
* Constraint_Type&lt;br /&gt;
&lt;br /&gt;
The following columns are optional (for example, the Package columns are only there to specify destination if desired): &lt;br /&gt;
* Constraint_Description&lt;br /&gt;
* Package_Name&lt;br /&gt;
* Package_GUID&lt;br /&gt;
* LB&lt;br /&gt;
* UB&lt;br /&gt;
* LB_Inclusive&lt;br /&gt;
* UB_Inclusive&lt;br /&gt;
* Regex&lt;br /&gt;
&lt;br /&gt;
The order of the columns is not enforced, it does not have to be in the same order as the suggested format above.&lt;br /&gt;
&lt;br /&gt;
Any additional user-made columns will be ignored and will not interfere with import.&lt;br /&gt;
&lt;br /&gt;
Bulk import can currently import Package and Constraint elements.&lt;br /&gt;
&lt;br /&gt;
== Column-specific Requirements ==&lt;br /&gt;
=== Constraint Name, Constraint_GUID ===&lt;br /&gt;
* Either a Constraint Name or Constraint GUID is required. If a Constraint GUID is given, it must be associated with an existing constraint in the model. &lt;br /&gt;
&lt;br /&gt;
=== Constraint Type ===&lt;br /&gt;
* Must be one of the following values: Integer, String, Real.&lt;br /&gt;
&lt;br /&gt;
=== Package Name, Package GUID ===&lt;br /&gt;
* Leaving this column blank will default Package to the &amp;quot;Phenom&amp;quot; package.&lt;br /&gt;
* Setting this column to an existing Package will default to the first matching Conceptual Package within the model.&lt;br /&gt;
* If there is no matching Package, a new Package will be created within the &amp;quot;Phenom&amp;quot; Package.&lt;br /&gt;
* If a Package GUID is given, it must reference an existing UoP package in the model.&lt;br /&gt;
&lt;br /&gt;
=== LB, UB ===&lt;br /&gt;
* Denote the lower and upper bounds for a constraint.&lt;br /&gt;
* Must be a number.&lt;br /&gt;
&lt;br /&gt;
=== LB Inclusive, UB Inclusive ===&lt;br /&gt;
* Must be a boolean: true, false.&lt;br /&gt;
&lt;br /&gt;
=== Regex ===&lt;br /&gt;
* Does not need to be valid regex.&lt;br /&gt;
&lt;br /&gt;
== Additional Requirements ==&lt;br /&gt;
* Data within Package_Name and Constraint_Name must all begin with a letter, and only contain numbers, letters, or underscores. The data must also not match any of the following reserved words:&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;IDL Reserved words:&amp;#039;&amp;#039;&amp;#039;&amp;lt;p&amp;gt;&amp;quot;and&amp;quot;, &amp;quot;begin&amp;quot;, &amp;quot;break&amp;quot;, &amp;quot;case&amp;quot;, &amp;quot;common&amp;quot;, &amp;quot;compile_opt&amp;quot;, &amp;quot;continue&amp;quot;, &amp;quot;do&amp;quot;, &amp;quot;else&amp;quot;, &amp;quot;end&amp;quot;, &amp;quot;endcase&amp;quot;, &amp;quot;endelse&amp;quot;, &amp;quot;endfor&amp;quot;, &amp;quot;endforeach&amp;quot;, &amp;quot;endif&amp;quot;, &amp;quot;endrep&amp;quot;, &amp;quot;endswitch&amp;quot;, &amp;quot;endwhile&amp;quot;, &amp;quot;eq&amp;quot;, &amp;quot;for&amp;quot;, &amp;quot;foreach&amp;quot;, &amp;quot;forward_function&amp;quot;, &amp;quot;function&amp;quot;, &amp;quot;ge&amp;quot;, &amp;quot;goto&amp;quot;, &amp;quot;gt&amp;quot;, &amp;quot;if&amp;quot;, &amp;quot;inherits&amp;quot;, &amp;quot;le&amp;quot;, &amp;quot;lt&amp;quot;, &amp;quot;mod&amp;quot;, &amp;quot;ne&amp;quot;, &amp;quot;not&amp;quot;, &amp;quot;of&amp;quot;, &amp;quot;on_ioerror&amp;quot;, &amp;quot;or&amp;quot;, &amp;quot;pro&amp;quot;, &amp;quot;repeat&amp;quot;, &amp;quot;switch&amp;quot;, &amp;quot;then&amp;quot;, &amp;quot;until&amp;quot;, &amp;quot;while&amp;quot;, &amp;quot;xor&amp;quot;&amp;lt;/p&amp;gt;&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;OCL Reserved words:&amp;#039;&amp;#039;&amp;#039;&amp;lt;p&amp;gt; &amp;quot;abstract&amp;quot;, &amp;quot;any&amp;quot;, &amp;quot;attribute&amp;quot;, &amp;quot;boolean&amp;quot;, &amp;quot;case&amp;quot;, &amp;quot;char&amp;quot;, &amp;quot;component&amp;quot;, &amp;quot;const&amp;quot;, &amp;quot;consumes&amp;quot;, &amp;quot;context&amp;quot;, &amp;quot;custom&amp;quot;, &amp;quot;default&amp;quot;, &amp;quot;double&amp;quot;, &amp;quot;emits&amp;quot;, &amp;quot;enum&amp;quot;, &amp;quot;eventtype&amp;quot;, &amp;quot;exception&amp;quot;, &amp;quot;factory&amp;quot;, &amp;quot;false&amp;quot;, &amp;quot;finder&amp;quot;, &amp;quot;fixed&amp;quot;, &amp;quot;float&amp;quot;, &amp;quot;getraises&amp;quot;, &amp;quot;home&amp;quot;, &amp;quot;import&amp;quot;, &amp;quot;in&amp;quot;, &amp;quot;inout&amp;quot;, &amp;quot;interface&amp;quot;, &amp;quot;local&amp;quot;, &amp;quot;long&amp;quot;, &amp;quot;manages&amp;quot;, &amp;quot;module&amp;quot;, &amp;quot;multiple&amp;quot;, &amp;quot;native&amp;quot;, &amp;quot;object&amp;quot;, &amp;quot;octet&amp;quot;, &amp;quot;oneway&amp;quot;, &amp;quot;out&amp;quot;, &amp;quot;primarykey&amp;quot;, &amp;quot;private&amp;quot;, &amp;quot;provides&amp;quot;, &amp;quot;public&amp;quot;, &amp;quot;publishes&amp;quot;, &amp;quot;raises&amp;quot;, &amp;quot;readonly&amp;quot;, &amp;quot;sequence&amp;quot;, &amp;quot;setraises&amp;quot;, &amp;quot;short&amp;quot;, &amp;quot;string&amp;quot;, &amp;quot;struct&amp;quot;, &amp;quot;supports&amp;quot;, &amp;quot;switch&amp;quot;, &amp;quot;true&amp;quot;, &amp;quot;truncatable&amp;quot;, &amp;quot;typedef&amp;quot;, &amp;quot;typeid&amp;quot;, &amp;quot;typeprefix&amp;quot;, &amp;quot;union&amp;quot;, &amp;quot;unsigned&amp;quot;, &amp;quot;uses&amp;quot;, &amp;quot;valuebase&amp;quot;, &amp;quot;valuetype&amp;quot;, &amp;quot;void&amp;quot;, &amp;quot;wchar&amp;quot;, &amp;quot;wstring&amp;quot;&amp;lt;/p&amp;gt;&lt;br /&gt;
* If there are any errors during validation of the CSV file, the model import will not be initiated and a list of errors will be returned. They will be labeled by the row they occur on for convenience.&lt;br /&gt;
* There is a 2MB limit in place - if a larger file needs to be imported, it needs to be split up into smaller files.&lt;br /&gt;
* In the raw CSV (i.e., as observed from notepad), any field with commas must have surrounding quotes (Excel normally handles this).&lt;/div&gt;</summary>
		<author><name>Annie</name></author>
	</entry>
</feed>