<?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>Embed image in excel</title><link>https://community.appian.com/discussions/f/new-to-appian/18380/embed-image-in-excel</link><description>Hi, 
 we have requirement where we need to embed image in excel. We tried to use Embed Image into Excel smart service in 19.4 and getting below error: 
 Exception: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Embed image in excel</title><link>https://community.appian.com/thread/72396?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 13:28:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26c41115-31be-424b-87df-9405d407542b</guid><dc:creator>Varsha Pawar</dc:creator><description>&lt;p&gt;Thanks Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Embed image in excel</title><link>https://community.appian.com/thread/72395?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 13:25:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c8fe0ab7-4000-44a1-bc59-9cf31fae8222</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Thanks for confirming - I&amp;#39;ve also tried something very similar in one of my testing environments and I&amp;#39;m getting a nearly identical error as yours.&amp;nbsp; I don&amp;#39;t see anything that is incorrect as per the documentation, either.&amp;nbsp; I think your options from here may be limited to just attempting to contact the creator of the plug-in (which I see you&amp;#39;ve already done at its &lt;a href="/b/appmarket/posts/embed-image-into-excel"&gt;page&lt;/a&gt;).&amp;nbsp; Apart from that, I&amp;#39;m not sure - you could try contacting Appian, but in general they&amp;#39;re not responsible for errors within out-of-date plug-ins.&amp;nbsp; Someone who&amp;#39;s more adept at Java than I am could potentially download the plug-in&amp;#39;s source code and attempt to debug, but I&amp;#39;m not sure how effective that would be overall.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Embed image in excel</title><link>https://community.appian.com/thread/72391?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 06:52:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2c3a9465-000f-49e3-af96-7dda3d6507c8</guid><dc:creator>Varsha Pawar</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;We&amp;nbsp;initially tried to use&amp;nbsp;&lt;strong&gt;Embed Image into Excel&lt;/strong&gt;&lt;span&gt;&amp;nbsp;smart service&amp;nbsp;in process model as well checked in expression rule using&amp;nbsp;&lt;em&gt;embedImagesInExcel()&lt;/em&gt;&amp;nbsp;function but , still getting same error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;embedimagesinexcel(
  excelDocument : cons!document,
  excelSaveFolder : cons!folder,
  excelName : &amp;quot;excel1&amp;quot;,
  sheetName :&amp;quot;Sheet1&amp;quot;,
  anchorsAndImagesJson :rule!APP_FormJsonTextInput()
)

--------------------------------------------------------------------
APP_FormJsonTextInput

a!toJson(
 {
    &amp;quot;width&amp;quot;: 1000,
    &amp;quot;padding&amp;quot;: 3,
    imageAnchors: {
      &amp;quot;col1&amp;quot;: 2,
      &amp;quot;row1&amp;quot;: 2,
      &amp;quot;col2&amp;quot;: 3,
      &amp;quot;row2&amp;quot;: 3
    },
    &amp;quot;imageDocument&amp;quot;: {
      &amp;quot;imageDocumentID&amp;quot;: 311790,
      &amp;quot;sizePercentage&amp;quot;: 80
    }
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Embed image in excel</title><link>https://community.appian.com/thread/72387?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 12:39:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:465721a9-fbac-4796-8460-28b3bdbd3707</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you&amp;nbsp;post the entire expression rule / expression function you&amp;#39;re trying to use to call this smart service?&amp;nbsp; Including how you&amp;#39;re forming your JSON string exactly, as well as how you&amp;#39;re calling the&amp;nbsp;&lt;em&gt;embedImagesInExcel()&lt;/em&gt; function.&amp;nbsp; For pasting code here I recommend using a code box, by using the&amp;nbsp;&lt;strong&gt;Insert -&amp;gt; Insert Code&lt;/strong&gt;&amp;nbsp;functionality in the comment menu here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>