<?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>Process Model Array of CDT save</title><link>https://community.appian.com/discussions/f/process/23333/process-model-array-of-cdt-save</link><description>So I have an interface that is saving two array of CDTs the idea I was having is that it would store each iteration of the array into its own respective row for the array example: {[uuid:1, fkuuid: ab32, date: today], [uuid:2, fkuuid: cd43, date: tomorrow</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Process Model Array of CDT save</title><link>https://community.appian.com/thread/107739?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2023 16:32:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:02d8c5e2-6d1b-48cc-be36-c46db585c46a</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Bah.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1676046793484v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model Array of CDT save</title><link>https://community.appian.com/thread/107706?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2023 08:01:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b78a0cf8-97e1-4459-9439-51ae2b9070e5</guid><dc:creator>countyc7844</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you, Thank you, Thank you.&amp;nbsp; The solution you provided worked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ffffff;"&gt;&lt;a style="color:#ffffff;" href="https://drivemad.io/home"&gt;Drive Mad&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model Array of CDT save</title><link>https://community.appian.com/thread/89652?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 16:21:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a880367c-f6ec-44e8-9be7-aeff24a5b5d3</guid><dc:creator>Kyle G</dc:creator><description>&lt;p&gt;My Process Variables are Arrays of CDTs:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Map Producer:&lt;br /&gt;&lt;strong&gt;[uuid=, mapUuid=bd88c105-3b1f-42d8-a3f5-5230c4510ee9, producerUuid=28319bc1-d6c9-4113-92bc-ca0cd9c8d1f9, prime=True, createdDate=1/11/2022 12:00 AM, createdBy=admin.user, lastUpdatedDate=1/11/2022 12:00 AM, lastUpdatedBy=admin.user],&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[uuid=, mapUuid=bd88c105-3b1f-42d8-a3f5-5230c4510ee9, producerUuid=5ec6570b-ebf2-46c8-83ad-b9c182938264, prime=True, createdDate=1/11/2022 12:00 AM, createdBy=admin.user, lastUpdatedDate=1/11/2022 12:00 AM, lastUpdatedBy=admin.user],&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[uuid=, mapUuid=bd88c105-3b1f-42d8-a3f5-5230c4510ee9, producerUuid=28319bc1-d6c9-4113-92bc-ca0cd9c8d1f9, prime=True, createdDate=1/11/2022 12:00 AM, createdBy=admin.user, lastUpdatedDate=1/11/2022 12:00 AM, lastUpdatedBy=admin.user]&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;^ This is the array of CDTs I am talking about with the write to data store entity that I had in store before it only saved the first iteration of it which would be the one in bold.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Map Data Producer:&lt;br /&gt;[uuid=, mapUuid=bd88c105-3b1f-42d8-a3f5-5230c4510ee9, producerUuid=5ec6570b-ebf2-46c8-83ad-b9c182938264, prime=True, createdDate=1/11/2022 12:00 AM, createdBy=admin.user, lastUpdatedDate=1/11/2022 12:00 AM, lastUpdatedBy=admin.user],&lt;/p&gt;
&lt;p&gt;[uuid=, mapUuid=bd88c105-3b1f-42d8-a3f5-5230c4510ee9, producerUuid=28319bc1-d6c9-4113-92bc-ca0cd9c8d1f9, prime=True, createdDate=1/11/2022 12:00 AM, createdBy=admin.user, lastUpdatedDate=1/11/2022 12:00 AM, lastUpdatedBy=admin.user],&lt;/p&gt;
&lt;p&gt;[uuid=, mapUuid=bd88c105-3b1f-42d8-a3f5-5230c4510ee9, producerUuid=5ec6570b-ebf2-46c8-83ad-b9c182938264, prime=True, createdDate=1/11/2022 12:00 AM, createdBy=admin.user, lastUpdatedDate=1/11/2022 12:00 AM, lastUpdatedBy=admin.user]&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model Array of CDT save</title><link>https://community.appian.com/thread/89619?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 07:44:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1a0c643f-937e-4b03-9e92-47e1d77269eb</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;Well, I would suggest you preform some debugging on your data that you are trying to store.&lt;/p&gt;
&lt;p&gt;It looks like&amp;nbsp; you don&amp;#39;t have any data to store as the actual row count received by the smart service is 0 according to the error&lt;/p&gt;
&lt;p&gt;What are your process variables values of the process instance where this error occurred?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Alternatively, you could also use 2 individual&amp;nbsp;&lt;span&gt;&amp;#39;Write to Data Store Entity&amp;#39;, one for Map_Producer and another for&amp;nbsp;Map_Data_Producer&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model Array of CDT save</title><link>https://community.appian.com/thread/89606?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 20:22:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:668ad826-af59-4319-960e-5ecc73c51069</guid><dc:creator>Kyle G</dc:creator><description>&lt;p&gt;&lt;span&gt;An error occurred while trying to write to the data store [TIMS]. No values have been written. Details: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 (APNX-1-4208-004)&lt;br /&gt;&lt;/span&gt;I got this Error and my Node looks like this:&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/Help3.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model Array of CDT save</title><link>https://community.appian.com/thread/89605?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 19:22:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48c6445d-884b-40ce-b102-30eef6904d1b</guid><dc:creator>Kyle G</dc:creator><description>&lt;p&gt;Okay! I will try this and report back my success rate!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model Array of CDT save</title><link>https://community.appian.com/thread/89603?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 19:21:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d6b57496-f186-43c0-a0b5-204d34231593</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;well, you are trying to save multiple different entities (different CDT type) using a &amp;#39;Write to Data Store Entity&amp;#39;.&lt;/p&gt;
&lt;p&gt;This smart service can only write to 1 entity&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You would need to use: &amp;#39;Write to Multiple Data Store Entities&amp;#39;&lt;/p&gt;
&lt;p&gt;You can look for an example here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.4/Write_to_Multiple_Data_Store_Entities_Smart_Service.html#example-inputs-1"&gt;https://docs.appian.com/suite/help/21.4/Write_to_Multiple_Data_Store_Entities_Smart_Service.html#example-inputs-1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And according to your screenshot&lt;/p&gt;
&lt;p&gt;let say if you have 2 Data store entity constants for your entity types&lt;/p&gt;
&lt;p&gt;cons!MAP_DSE_PRODUCER - Entity type for CDT Map_Producer&lt;/p&gt;
&lt;p&gt;&lt;span&gt;cons!MAP_DSE_DATA_PRODUCER - Entity type for CDT Map_Data_Producer&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You should put in the Data tab for &amp;#39;Value to Store&amp;#39; as:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;= {&lt;br /&gt; {&lt;br /&gt; entity: cons!MAP_DSE_PRODUCER,&lt;br /&gt; data: pv!mapProducer&lt;br /&gt; },&lt;br /&gt; {&lt;br /&gt; entity: cons!MAP_DSE_DATA_PRODUCER,&lt;br /&gt; data: pv!mapDataProducer&lt;br /&gt; }&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model Array of CDT save</title><link>https://community.appian.com/thread/89602?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 19:19:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:419a6d8a-f0b3-447e-8ffd-1afd7e36d1c4</guid><dc:creator>Kyle G</dc:creator><description>&lt;p&gt;Yes sorry I just included a screenshot of the multiple being checked on my end!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model Array of CDT save</title><link>https://community.appian.com/thread/89600?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 19:02:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c31643c-ec72-41d5-830c-89fa57c7d96a</guid><dc:creator>Kyle G</dc:creator><description>&lt;p&gt;These are my process variables and write to data store entity with the multiple checked on both.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model Array of CDT save</title><link>https://community.appian.com/thread/89599?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 19:01:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb3118ab-b18b-4e92-a185-cfa43e2d8137</guid><dc:creator>Kyle G</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/Help1.PNG" /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/Help2.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model Array of CDT save</title><link>https://community.appian.com/thread/89598?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 18:50:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:325fad66-5173-4ad5-bbd5-d8277eeb3a13</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;thanks Kyle&lt;/p&gt;
&lt;p&gt;Did you check about the Multiple checkbox is checked for the data input you would have created?&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/pastedimage1641840522183v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model Array of CDT save</title><link>https://community.appian.com/thread/89597?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 18:40:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2b3eae6c-faf1-4016-a641-ed106fcfbb19</guid><dc:creator>Kyle G</dc:creator><description>&lt;p&gt;I can look into these things I know for sure I am using a write to data store and not a multiple&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process Model Array of CDT save</title><link>https://community.appian.com/thread/89596?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 18:28:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:22bbc5fa-e768-412e-b9f3-745842430a34</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;&amp;nbsp;Hey Kyle,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Are you using the smart service / function of Write to Data store. I assumed smart service&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you attach some screenshots of the process variable you are trying to save and the configuration of your Write to Data store smart service&lt;/p&gt;
&lt;p&gt;Quick thing to check:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- Are you marking the multiple checkbox of the Write to Data store ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, look into the documentation. this could help&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.4/Write_to_Data_Store_Entity_Smart_Service.html"&gt;https://docs.appian.com/suite/help/21.4/Write_to_Data_Store_Entity_Smart_Service.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.4/Write_to_Multiple_Data_Store_Entities_Smart_Service.html"&gt;https://docs.appian.com/suite/help/21.4/Write_to_Multiple_Data_Store_Entities_Smart_Service.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>