<?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>Expression may not be longer than 4,000 characters. You have entered 6,811 characters</title><link>https://community.appian.com/discussions/f/integrations/21300/expression-may-not-be-longer-than-4-000-characters-you-have-entered-6-811-characters</link><description>Hi, 
 
 
 
 
 I have created a Process Model with Start a Process Template. My Process Model has around 58 Process Variabes but through WEBApi when i try to pass those details, Web Api Throws an error like 
 
 
 
 
 ​ 
 
 
 
 &amp;quot;Expression may not be longer</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Expression may not be longer than 4,000 characters. You have entered 6,811 characters</title><link>https://community.appian.com/thread/83043?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 12:26:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c51c23c-3211-4098-9446-4dd3c009243f</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;Thank you Stefan, will try creating an expression and map the details&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expression may not be longer than 4,000 characters. You have entered 6,811 characters</title><link>https://community.appian.com/thread/83041?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 12:04:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8d862a63-62d6-4b1e-a06c-9bafba1722b1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The &amp;quot;trick&amp;quot; here is to use expressions instead of squeezing all the code into the API itself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expression may not be longer than 4,000 characters. You have entered 6,811 characters</title><link>https://community.appian.com/thread/83040?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 12:03:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ab819fb6-ed95-45fd-9454-e5dcb87ffed7</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;Ah, thank you for that.&amp;nbsp; Yes, reading the error more clearly that&amp;#39;s what it&amp;#39;s saying.&lt;/p&gt;
&lt;p&gt;Disregard what I posted earlier; you&amp;#39;ll simply have to get what you want with fewer lines of code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expression may not be longer than 4,000 characters. You have entered 6,811 characters</title><link>https://community.appian.com/thread/83039?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 12:00:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ecc50be-0b78-44f6-806b-49e17e48d3ff</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The expression editor for web APIs is limited to 4k characters of actual expression code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expression may not be longer than 4,000 characters. You have entered 6,811 characters</title><link>https://community.appian.com/thread/83038?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 11:59:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0e5faab4-c64c-4bd6-a1f6-fb63dc06a5db</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;I was mistaken.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expression may not be longer than 4,000 characters. You have entered 6,811 characters</title><link>https://community.appian.com/thread/83030?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 11:14:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e2397d76-03e5-4545-aa49-2f7e546249f1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Assuming that you have an incoming JSON data structure, why not pass that into the process?&lt;/p&gt;
&lt;p&gt;Another option is to pass the JSON into a separate expression which maps that into a dictionary containing all your process parameters. Then use this expression inside a!startProcess.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expression may not be longer than 4,000 characters. You have entered 6,811 characters</title><link>https://community.appian.com/thread/83029?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 11:12:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:567401a4-1b96-4945-b143-1bad3e87fdc6</guid><dc:creator>gayathris876948</dc:creator><description>&lt;p&gt;Hi, where is this error coming? When you test or in actual process calling?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>