<?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: Error with Cron Schedule in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Error-with-Cron-Schedule/m-p/266168#M5728</link>
    <description>&lt;P&gt;Replace the last '*' with a '?'. And update your minDynatraceVersion to at least 1.299&lt;/P&gt;&lt;P&gt;The &lt;A href="https://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html" target="_self"&gt;SQL Datasource&lt;/A&gt;&amp;nbsp; uses an engine called Quartz Scheduler.&lt;/P&gt;&lt;P&gt;This website: &lt;A href="https://www.javainuse.com/cron" target="_blank" rel="noopener"&gt;https://www.javainuse.com/cron&lt;/A&gt; can be used to test the expressions&lt;/P&gt;&lt;P&gt;NOTE: The SQL Datasource adds an extra zero at the beginning of the string, which are the seconds, so to test your expression add an extra zero on the website.&lt;/P&gt;&lt;P&gt;Example, to use this schedule in Dynatrace: `0 8 ? * 1-5`, validate it with `0 0 8 ? * 1-5` on the website.&lt;/P&gt;&lt;P&gt;The schema documents this as well (either 2nd or 4th index must be a ?)&lt;BR /&gt;New cron format release notes: &lt;A href="https://github.com/dynatrace-extensions/extensions-schemas/releases/tag/1.299.0" target="_blank" rel="noopener"&gt;https://github.com/dynatrace-extensions/extensions-schemas/releases/tag/1.299.0&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Dec 2024 22:04:11 GMT</pubDate>
    <dc:creator>david_lopes</dc:creator>
    <dc:date>2024-12-24T22:04:11Z</dc:date>
    <item>
      <title>Error with Cron Schedule</title>
      <link>https://community.dynatrace.com/t5/Extensions/Error-with-Cron-Schedule/m-p/266167#M5727</link>
      <description>&lt;P&gt;When attempting to configure a query for the Database Extension 2.0 with a "cron schedule" to run every day at 22:00 (syntax: 0 22 * * * ), I receive the following error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Error message: Extension validation error. Constraint violations: $.sqlServer[0].schedule: is not defined in the schema and the schema does not allow additional properties"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Since this is a simple setup, I would like to know why this error occurs and whether this type of scheduling is supported.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 20:02:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Error-with-Cron-Schedule/m-p/266167#M5727</guid>
      <dc:creator>eddbarrientos19</dc:creator>
      <dc:date>2024-12-24T20:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Cron Schedule</title>
      <link>https://community.dynatrace.com/t5/Extensions/Error-with-Cron-Schedule/m-p/266168#M5728</link>
      <description>&lt;P&gt;Replace the last '*' with a '?'. And update your minDynatraceVersion to at least 1.299&lt;/P&gt;&lt;P&gt;The &lt;A href="https://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html" target="_self"&gt;SQL Datasource&lt;/A&gt;&amp;nbsp; uses an engine called Quartz Scheduler.&lt;/P&gt;&lt;P&gt;This website: &lt;A href="https://www.javainuse.com/cron" target="_blank" rel="noopener"&gt;https://www.javainuse.com/cron&lt;/A&gt; can be used to test the expressions&lt;/P&gt;&lt;P&gt;NOTE: The SQL Datasource adds an extra zero at the beginning of the string, which are the seconds, so to test your expression add an extra zero on the website.&lt;/P&gt;&lt;P&gt;Example, to use this schedule in Dynatrace: `0 8 ? * 1-5`, validate it with `0 0 8 ? * 1-5` on the website.&lt;/P&gt;&lt;P&gt;The schema documents this as well (either 2nd or 4th index must be a ?)&lt;BR /&gt;New cron format release notes: &lt;A href="https://github.com/dynatrace-extensions/extensions-schemas/releases/tag/1.299.0" target="_blank" rel="noopener"&gt;https://github.com/dynatrace-extensions/extensions-schemas/releases/tag/1.299.0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 22:04:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Error-with-Cron-Schedule/m-p/266168#M5728</guid>
      <dc:creator>david_lopes</dc:creator>
      <dc:date>2024-12-24T22:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Cron Schedule</title>
      <link>https://community.dynatrace.com/t5/Extensions/Error-with-Cron-Schedule/m-p/266194#M5729</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4044"&gt;@david_lopes&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":man_technologist:"&gt;👨‍💻&lt;/span&gt; for providing applicable solution&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://community.dynatrace.com/html/@6EDF483EF947B43E16DF999BED8ABCC0/images/emoticons/dynaspin.gif" alt=":dynaspin:" title=":dynaspin:" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/65330"&gt;@eddbarrientos19&lt;/a&gt;&amp;nbsp;You can proceed with an attempt and keep us posted.&lt;/P&gt;&lt;P&gt;Also PFA resources for more info:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://www.dynatrace.com/hub/detail/custom-database-extension/" target="_blank"&gt;https://www.dynatrace.com/hub/detail/custom-database-extension/&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.dynatrace.com/docs/ingest-from/extensions20/extensions-concepts" target="_blank"&gt;https://docs.dynatrace.com/docs/ingest-from/extensions20/extensions-concepts&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.dynatrace.com/docs/ingest-from/extensions20/data-sources/sql" target="_blank"&gt;https://docs.dynatrace.com/docs/ingest-from/extensions20/data-sources/sql&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hoping it adds value.&lt;/P&gt;&lt;P&gt;BR,&lt;BR /&gt;Peter&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2024 10:26:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Error-with-Cron-Schedule/m-p/266194#M5729</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-12-26T10:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Cron Schedule</title>
      <link>https://community.dynatrace.com/t5/Extensions/Error-with-Cron-Schedule/m-p/266211#M5731</link>
      <description>&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Thanks a lot, &lt;/SPAN&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4044"&gt;@david_lopes&lt;/a&gt;&lt;SPAN&gt;&amp;nbsp;, for your help and tips! They were super useful for understanding how the expressions work and how to use them. I followed your advice and managed to get the expression working.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51369"&gt;@Peter_Youssef&lt;/a&gt;&amp;nbsp;, thanks to you too for the extra info—it was really helpful.&lt;/P&gt;&lt;P&gt;I really appreciate both of you. Cheers!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Dec 2024 18:03:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Error-with-Cron-Schedule/m-p/266211#M5731</guid>
      <dc:creator>eddbarrientos19</dc:creator>
      <dc:date>2024-12-26T18:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Cron Schedule</title>
      <link>https://community.dynatrace.com/t5/Extensions/Error-with-Cron-Schedule/m-p/266212#M5732</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/65330"&gt;@eddbarrientos19&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It's our pleasure to contribute together towards reaching applicable solutions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2024 18:06:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Error-with-Cron-Schedule/m-p/266212#M5732</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-12-26T18:06:34Z</dc:date>
    </item>
  </channel>
</rss>

