<?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 Getting status of &amp;quot;If Condition&amp;quot; Activity into a variable in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/getting-status-of-quot-if-condition-quot-activity-into-a/m-p/13908#M8485</link>
    <description>&lt;P&gt;"If Condition" has lot of activities that can succeeded or fail. If any activity fails then whole "If Condition" fails. I have to get the status of the "If Condition"  activity (pass or fail) so that i can use it for processing in the next notebook that follows it.&lt;/P&gt;&lt;P&gt;Please suggest some ways&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 11:38:47 GMT</pubDate>
    <dc:creator>sreedata</dc:creator>
    <dc:date>2023-01-03T11:38:47Z</dc:date>
    <item>
      <title>Getting status of "If Condition" Activity into a variable</title>
      <link>https://community.databricks.com/t5/data-engineering/getting-status-of-quot-if-condition-quot-activity-into-a/m-p/13908#M8485</link>
      <description>&lt;P&gt;"If Condition" has lot of activities that can succeeded or fail. If any activity fails then whole "If Condition" fails. I have to get the status of the "If Condition"  activity (pass or fail) so that i can use it for processing in the next notebook that follows it.&lt;/P&gt;&lt;P&gt;Please suggest some ways&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 11:38:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/getting-status-of-quot-if-condition-quot-activity-into-a/m-p/13908#M8485</guid>
      <dc:creator>sreedata</dc:creator>
      <dc:date>2023-01-03T11:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Getting status of "If Condition" Activity into a variable</title>
      <link>https://community.databricks.com/t5/data-engineering/getting-status-of-quot-if-condition-quot-activity-into-a/m-p/13909#M8486</link>
      <description>&lt;P&gt;Can you share your code? I don't know if python, SQL, or some logic in orchestration tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In python, you would need to set try catch in every if statement and use dbutils.notebook.exit('message') to handle it in another notebook.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 11:42:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/getting-status-of-quot-if-condition-quot-activity-into-a/m-p/13909#M8486</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2023-01-03T11:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting status of "If Condition" Activity into a variable</title>
      <link>https://community.databricks.com/t5/data-engineering/getting-status-of-quot-if-condition-quot-activity-into-a/m-p/13910#M8487</link>
      <description>&lt;P&gt;In your ADF Pipeline activity, set two different pipeline activities from the If condition activity based on success or failure (the green and red arrows). &lt;/P&gt;&lt;P&gt;Then inside each pipeline activity, you can add a set variable, get variable and your adb notebook activities. In set variable, you would be setting the status of your activity using the standard pipeline parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...Cheers..&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 13:03:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/getting-status-of-quot-if-condition-quot-activity-into-a/m-p/13910#M8487</guid>
      <dc:creator>UmaMahesh1</dc:creator>
      <dc:date>2023-01-03T13:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting status of "If Condition" Activity into a variable</title>
      <link>https://community.databricks.com/t5/data-engineering/getting-status-of-quot-if-condition-quot-activity-into-a/m-p/13912#M8489</link>
      <description>&lt;P&gt;Thanks .This helped.Set a base parameter to the notebook with status sucess or fail&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 15:34:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/getting-status-of-quot-if-condition-quot-activity-into-a/m-p/13912#M8489</guid>
      <dc:creator>sreedata</dc:creator>
      <dc:date>2023-01-12T15:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting status of "If Condition" Activity into a variable</title>
      <link>https://community.databricks.com/t5/data-engineering/getting-status-of-quot-if-condition-quot-activity-into-a/m-p/13913#M8490</link>
      <description>&lt;P&gt;dbutils.notebook.exit('message') .This is also a good way .But since my if activity has multiple notebooks it would get complicated.So setting base parameters from success and fail path helped&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 15:35:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/getting-status-of-quot-if-condition-quot-activity-into-a/m-p/13913#M8490</guid>
      <dc:creator>sreedata</dc:creator>
      <dc:date>2023-01-12T15:35:45Z</dc:date>
    </item>
  </channel>
</rss>

