<?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 Re: Execution error on a playbook solved with job in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/execution-error-on-a-playbook-solved-with-job/m-p/542650#M111138</link>
    <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/292722"&gt;@MF762&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Might be better to open a support ticket on this one honestly. If I'd hazard a guess the temporary storage location that you're using when in the playbook editor can't write files where saved and running as a job on your dedicated resources it can write the file(s) properly.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 20:35:11 GMT</pubDate>
    <dc:creator>BPry</dc:creator>
    <dc:date>2023-05-18T20:35:11Z</dc:date>
    <item>
      <title>Execution error on a playbook solved with job</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/execution-error-on-a-playbook-solved-with-job/m-p/542625#M111135</link>
      <description>&lt;P&gt;Hi all, &lt;BR /&gt;I am using XSOAR 6.10.0&lt;BR /&gt;Activity I am performing:&lt;BR /&gt;Running a playbook (consisting of 3 tasks):&lt;BR /&gt;1) task that invokes an automation that from an API call generates the response in CSV format.&lt;BR /&gt;2) Send-mail task, from the attachIDs and attachNames of the CSV file generated by the previous task sends it as an attachment to the email.&lt;BR /&gt;3) Closes the incident&lt;BR /&gt;Problem: To test the execution of this playbook I run &lt;STRONG&gt;RUN&lt;/STRONG&gt; on the playbook in edit mode, however I encounter several errors such as:&lt;BR /&gt;- during the execution of the send-mail task (see screenshot 1):&lt;BR /&gt;Command:&lt;BR /&gt;!send-mail "correct send-mail values"&lt;BR /&gt;Reason&lt;BR /&gt;Entry 461@53232f297a57a5a743894a0e4a801fc3$&amp;amp;$85faa662-59da-4428-814d-2298b3b1b553 is not valid or is not a file entry&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;Mail Sender (New)&amp;gt;", line 149, in collect_attachments&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 93, in getFilePath&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 283, in __do&lt;BR /&gt;ValueError: failed to get artifact file path, invalid file (52)&lt;BR /&gt;- during the execution of the first task, the file is generated with a size of 0 bytes and of course the send mail task generates an error reading the file (see screenshot 2).&lt;BR /&gt;All this is solved by running the playbook from a job.&lt;BR /&gt;NB: If I run the automation command from WarRoom it is executed correctly. &lt;BR /&gt;I would like to kindly know the reason for this issue. Why can't I run these execution tasks directly in the playbook instead of having it run from a job?&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 14:11:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/execution-error-on-a-playbook-solved-with-job/m-p/542625#M111135</guid>
      <dc:creator>MF762</dc:creator>
      <dc:date>2023-05-18T14:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Execution error on a playbook solved with job</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/execution-error-on-a-playbook-solved-with-job/m-p/542650#M111138</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/292722"&gt;@MF762&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Might be better to open a support ticket on this one honestly. If I'd hazard a guess the temporary storage location that you're using when in the playbook editor can't write files where saved and running as a job on your dedicated resources it can write the file(s) properly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 20:35:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/execution-error-on-a-playbook-solved-with-job/m-p/542650#M111138</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2023-05-18T20:35:11Z</dc:date>
    </item>
  </channel>
</rss>

