<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Generate PDF does not work with view with html in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Generate-PDF-does-not-work-with-view-with-html/m-p/127578#M7558</link>
    <description>&lt;P&gt;I am running Splunk 5.0.5 on a Windows 2008 R 2 server. When trying to generate a PDF from a view I get the following error:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;'NoneType' object has no attribute 'strip'&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;In the python.log file I get the following error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2013-11-04 14:29:40,457 CET INFO    pdfgen_endpoint:310 - pdf time-of-report=1383571780.46
2013-11-04 14:29:40,862 CET ERROR   __init__:173 - 'NoneType' object has no attribute 'strip'
Traceback (most recent call last):
  File "E:\Apps\Splunk\Python-2.7\Lib\site-packages\splunk\rest\__init__.py", line 171, in dispatch
    methodOutput = method()
  File "E:\Apps\Splunk\etc\system\bin\pdfgen_endpoint.py", line 118, in handle_GET
    if not self._render():
  File "E:\Apps\Splunk\etc\system\bin\pdfgen_endpoint.py", line 152, in _render
    self._startNextSearch()
  File "E:\Apps\Splunk\etc\system\bin\pdfgen_endpoint.py", line 406, in _startNextSearch
    if not view.dispatchSearch(overrideNowTime=self._now):
  File "E:\Apps\Splunk\Python-2.7\Lib\site-packages\splunk\pdf\pdfgen_views.py", line 76, in dispatchSearch
    searchJobObj = splunk.search.dispatch(pu.prepareInlineSearchCommand(searchCommand), sessionKey=self._sessionKey, **options)
  File "E:\Apps\Splunk\Python-2.7\Lib\site-packages\splunk\pdf\pdfgen_utils.py", line 104, in prepareInlineSearchCommand
    strippedSearchCommand = searchCommand.strip()
AttributeError: 'NoneType' object has no attribute 'strip'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I remove the row with html text the PDF is generated, even if I just put in &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;row&amp;gt;
  &amp;lt;html&amp;gt;
  &amp;lt;/html&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the report does not work anymore. According to the documentation I should be able to add html to simple XML and still be able to generate a pdf. Can anyone help me with tis?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2013 13:56:53 GMT</pubDate>
    <dc:creator>matthijsk</dc:creator>
    <dc:date>2013-11-04T13:56:53Z</dc:date>
    <item>
      <title>Generate PDF does not work with view with html</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Generate-PDF-does-not-work-with-view-with-html/m-p/127578#M7558</link>
      <description>&lt;P&gt;I am running Splunk 5.0.5 on a Windows 2008 R 2 server. When trying to generate a PDF from a view I get the following error:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;'NoneType' object has no attribute 'strip'&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;In the python.log file I get the following error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2013-11-04 14:29:40,457 CET INFO    pdfgen_endpoint:310 - pdf time-of-report=1383571780.46
2013-11-04 14:29:40,862 CET ERROR   __init__:173 - 'NoneType' object has no attribute 'strip'
Traceback (most recent call last):
  File "E:\Apps\Splunk\Python-2.7\Lib\site-packages\splunk\rest\__init__.py", line 171, in dispatch
    methodOutput = method()
  File "E:\Apps\Splunk\etc\system\bin\pdfgen_endpoint.py", line 118, in handle_GET
    if not self._render():
  File "E:\Apps\Splunk\etc\system\bin\pdfgen_endpoint.py", line 152, in _render
    self._startNextSearch()
  File "E:\Apps\Splunk\etc\system\bin\pdfgen_endpoint.py", line 406, in _startNextSearch
    if not view.dispatchSearch(overrideNowTime=self._now):
  File "E:\Apps\Splunk\Python-2.7\Lib\site-packages\splunk\pdf\pdfgen_views.py", line 76, in dispatchSearch
    searchJobObj = splunk.search.dispatch(pu.prepareInlineSearchCommand(searchCommand), sessionKey=self._sessionKey, **options)
  File "E:\Apps\Splunk\Python-2.7\Lib\site-packages\splunk\pdf\pdfgen_utils.py", line 104, in prepareInlineSearchCommand
    strippedSearchCommand = searchCommand.strip()
AttributeError: 'NoneType' object has no attribute 'strip'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I remove the row with html text the PDF is generated, even if I just put in &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;row&amp;gt;
  &amp;lt;html&amp;gt;
  &amp;lt;/html&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the report does not work anymore. According to the documentation I should be able to add html to simple XML and still be able to generate a pdf. Can anyone help me with tis?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 13:56:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Generate-PDF-does-not-work-with-view-with-html/m-p/127578#M7558</guid>
      <dc:creator>matthijsk</dc:creator>
      <dc:date>2013-11-04T13:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Generate PDF does not work with view with html</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Generate-PDF-does-not-work-with-view-with-html/m-p/127579#M7559</link>
      <description>&lt;P&gt;Have you by any chance found an answer/solution for this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2014 09:37:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Generate-PDF-does-not-work-with-view-with-html/m-p/127579#M7559</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2014-01-07T09:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Generate PDF does not work with view with html</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Generate-PDF-does-not-work-with-view-with-html/m-p/127580#M7560</link>
      <description>&lt;P&gt;This is a known issue (SPL-75106). It is fixed in version 6.0, and will be fixed in a future 5.0.x maintenance release.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2014 02:44:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Generate-PDF-does-not-work-with-view-with-html/m-p/127580#M7560</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2014-01-08T02:44:14Z</dc:date>
    </item>
  </channel>
</rss>

