<?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>to Number (Integer). Details: CastInvalid) (Data Outputs)</title><link>https://community.appian.com/discussions/f/general/34800/to-number-integer-details-castinvalid-data-outputs</link><description>Hi. 
 I am getting an error trying to parse a list of docIds and convert it to a list of cdts I made. The cdt are of the form projectMouDocument{mouId(int), docId(int)) 
 I pass in a static mouId and a list of docIds. Heres my script for the output into</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: to Number (Integer). Details: CastInvalid) (Data Outputs)</title><link>https://community.appian.com/thread/134300?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 22:11:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6f501f6f-8392-4b52-bc42-516f087f19de</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Hello &lt;a href="/members/roberts0186"&gt;roberts0186&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Based on the code you shared, it seems you&amp;#39;re mapping docId to mouId and then mouId to the current item in documenIds. Is this intentional?&lt;br /&gt;&lt;br /&gt;It&amp;#39;s important to ensure that the pv!mouId data type matches the type of value it should hold. For example, if mouId represents a single integer value, then the CDT field should be an integer data type with a single value.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m sharing some code based on my understanding that docId and mouId should be mapped to their respective fields in the CDT.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!forEach(
  pv!documentIds,
  &amp;#39;type!{urn:com:appian:types}DSC01_projectMouDocuments&amp;#39;(docId: tointeger(fv!item),   mouId:pv!mouId  )
)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;let me know if that works for you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>