<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Cannot compare incompatible operands of type Null and type Number(Integer)</title><link>https://community.appian.com/discussions/f/data/35032/cannot-compare-incompatible-operands-of-type-null-and-type-number-integer</link><description>Hello, 
 I&amp;#39;m getting this weird whenever I pass in the rv!identifier of a record 
 
 
 Here is my related record action below. I&amp;#39;m only passing in the rv!identified which should be stored in the corresponding rule input ri!projectPlanId 
 
 
 
 When I</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Cannot compare incompatible operands of type Null and type Number(Integer)</title><link>https://community.appian.com/thread/135702?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 22:38:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:10c23d8d-bc55-480f-a6d8-af4329c54153</guid><dc:creator>Tamara Saadeh</dc:creator><description>&lt;p&gt;omg yes! That could actually work, I&amp;#39;ll try it now. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot compare incompatible operands of type Null and type Number(Integer)</title><link>https://community.appian.com/thread/135701?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 21:10:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a95e26f9-88ac-48fd-b5d9-5bfa8bbdf359</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="268001" url="~/discussions/f/data/35032/cannot-compare-incompatible-operands-of-type-null-and-type-number-integer/135700"]is there a way to make the projectId coming in from the latest project null [/quote]
&lt;p&gt;generally speaking, what you&amp;#39;d do is, before the DB write, set just the primary key ID field to NULL, and a new row will be created (with a new ID), along with the data from the other populated fields of your data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot compare incompatible operands of type Null and type Number(Integer)</title><link>https://community.appian.com/thread/135700?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 19:50:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae84fa59-7790-48f6-808f-eff90e98edc9</guid><dc:creator>Tamara Saadeh</dc:creator><description>&lt;p&gt;Thank you Mike, the problem has been resolved! I wasn&amp;#39;t passing in the pv into the process model and that caused it to glitch.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t mind me asking another question below:&lt;/p&gt;
&lt;p&gt;the idea here is to create a new project on an existing plan (so say a Walmart Plan has 3 projects and I need to create a 4th project without updating the 3rd project). The idea of the interface is to take in the latest project (i.e project #3 here) and prepopulate the fields with that value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When the &amp;quot;Add new project&amp;quot; related action is clicked, the &lt;strong&gt;projectPlanId&lt;/strong&gt; and the &lt;strong&gt;customerId&lt;/strong&gt; are passed.&lt;/p&gt;
&lt;p&gt;The data is then queried using the projectPlanId in the form and stored in a local variable to populate the fields. What should happen is when the user clicks on &amp;quot;save project&amp;quot; the process model should create a &lt;strong&gt;new&lt;/strong&gt; project instead of updating the latest project.&lt;/p&gt;
&lt;p&gt;Right now, in the process model, it is only checking the projectId (which we usually pass in if we are using the &amp;quot;Create New Project&amp;quot; related action and the &lt;strong&gt;projectId&amp;nbsp;&lt;/strong&gt;is passed in there), this related action is sing the same form and process model so we are passing both&amp;nbsp;&lt;strong&gt;projectPlanId&amp;nbsp;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;projectId&amp;nbsp;&lt;/strong&gt;but using them in different related actions.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;right, now, the process model checks if &lt;strong&gt;projectId&amp;nbsp;&lt;/strong&gt;is null, and if it is it creates a new project, if not, it updates it.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still not sure how I can create a new project when passing the &lt;strong&gt;projectPlanId&lt;/strong&gt; when&amp;nbsp;passing that in since the&amp;nbsp;&lt;strong&gt;projectId&amp;nbsp;&lt;/strong&gt;is usually always notNull since we&amp;#39;re getting back the latest project in a plan and that project has an id, so what is happening now, instead of creating a new project off of the latest project, it is just updating the latest project&lt;/p&gt;
&lt;p&gt;My question here is: is there a way to make the projectId coming in from the latest project null when queying or can I do something within the process model to check that. Can we query a record type and refuse to get the proejctId or will that always be in the metadata?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here are some screenshots to help&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;the below queries the record depending on which id is being passed in (&lt;strong&gt;projectId&amp;nbsp;&lt;/strong&gt;or&amp;nbsp;&lt;strong&gt;projectPlanId)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;local!lastProject variable gets the latest project in the plan&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1716320707241v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Values are populated with the latest project is&amp;nbsp;&lt;strong&gt;projectPlanId&amp;nbsp;&lt;/strong&gt;is passed in&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1716320754431v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;in one of the scripts in the process model, it is checking the&amp;nbsp;&lt;strong&gt;projectId&amp;nbsp;&lt;/strong&gt;and it it null, it creates a new.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1716320961378v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please let me know if this enough information, I really appreciate your help. if you have any question or need any clarification/more screenshots of specific things, let me know!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot compare incompatible operands of type Null and type Number(Integer)</title><link>https://community.appian.com/thread/135695?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 17:40:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db8f5955-0f7d-4a4e-92e0-68bfd82fc095</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you screenshot the configuration of your start form from within the process model?&amp;nbsp; I&amp;#39;m concerned that your form isn&amp;#39;t actually getting any value passed to the IDs correctly (also i&amp;#39;m slightly unclear whether your form requires ri!projectId, ri!projectPlanId, or both, etc.)&lt;/p&gt;
&lt;p&gt;What happens when you test your interface with NULL supplied to both of those rule inputs?&amp;nbsp; Does it show the same/similar error message?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot compare incompatible operands of type Null and type Number(Integer)</title><link>https://community.appian.com/thread/135685?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 15:49:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e40095cf-8f8a-4074-8c16-bf7da4d15dd2</guid><dc:creator>Tamara Saadeh</dc:creator><description>&lt;p&gt;Hi Konduru, this is what I&amp;#39;m querying the interface.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have two rule inputs that are coming in from two seperate related actions that use the same process model.&lt;/p&gt;
&lt;p&gt;On related action #1, it takes in the projectId&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On related action #2, it takes in the projectPlanId&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I want to store the query in one single local variabl (local!project) where if projectId is null/zero, then the condition where the projectPlanId triggers. If projectPlanId is null/zero, the condition where projectId triggers and queries the data&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is the code that I think is breaking the whole interface. I think the if statements are not set up properly&lt;/p&gt;
&lt;p&gt;(note: local!isUpdate is checking whether projectId is null)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1716306547569v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot compare incompatible operands of type Null and type Number(Integer)</title><link>https://community.appian.com/thread/135655?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 05:42:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c847d167-3d22-4506-8f8d-5279012b52e4</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Are you sure this is related to that plan id? I suggest to check your code for any comparison operations and make these type save.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot compare incompatible operands of type Null and type Number(Integer)</title><link>https://community.appian.com/thread/135648?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 02:54:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c69f8d00-7a88-4ea7-950b-cb2ec409c994</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Could you please share your Start form node or the User Input Task node configurations? Can you check if you have passed the pv!&lt;span&gt;projectPlanId&amp;nbsp;as the input value for the form?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>