<?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 calculating input for field 'myField': wrong number of arguments (given 1, expected 0) in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11310#M4391</link>
    <description>&lt;P&gt;That "Service Date" field - is something you have access to check the schema?&lt;BR /&gt;&lt;BR /&gt;If so, can you paste it here?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Nov 2025 22:59:05 GMT</pubDate>
    <dc:creator>saraiva</dc:creator>
    <dc:date>2025-11-19T22:59:05Z</dc:date>
    <item>
      <title>Error calculating input for field 'myField': wrong number of arguments (given 1, expected 0)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11272#M4380</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Error calculating input for field 'myField': wrong number of arguments (given 1, expected 0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I need help figuring out what this error means--why does it expect 0 arguments? How can I fix this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the formula that I have mapping to the field: &lt;STRONG&gt;[DATAPILL]&amp;amp;.to_date(format:"MM/DD/YYYY")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please let me know if any additional info is needed. Any guidance is appreciated, thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 22:36:31 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11272#M4380</guid>
      <dc:creator>rpatrick_</dc:creator>
      <dc:date>2025-11-17T22:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error calculating input for field 'myField': wrong number of arguments (given 1, expected 0)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11275#M4381</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/12512"&gt;@rpatrick_&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;your pill may be "now" or "today", which does not&amp;nbsp;&lt;SPAN&gt;return a datetime input as a user-defined string by default, so&amp;nbsp; you need to add "strf" formula to make it user-defined string, because of that, it is throwing an error. Please check the below attached image and try it out once, if you face any error again, please do posted here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-11-18 110900.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2413i8EBE0D12B50715A5/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-11-18 110900.png" alt="Screenshot 2025-11-18 110900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;J Rajesh Kumar.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 05:45:56 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11275#M4381</guid>
      <dc:creator>rajeshjanapati</dc:creator>
      <dc:date>2025-11-18T05:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error calculating input for field 'myField': wrong number of arguments (given 1, expected 0)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11278#M4382</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/12512"&gt;@rpatrick_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;After reviewing the requirement, it appears you are passing dateTime or date as input, which is causing the error:&lt;BR /&gt;Error calculating input for field 'myField': wrong number of arguments (given 1, expected 0)&lt;BR /&gt;This happens when using the to_date formula, which returns the format YYYY-MM-DD&amp;nbsp;(Required response).&lt;/P&gt;&lt;P&gt;If you are passing a date or dateTime value to to_date, try converting it to a &lt;STRONG&gt;string&lt;/STRONG&gt; first. (A sample example is provided below.)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Date_formulae fix.png" style="width: 997px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2414i82AF9283363C44BB/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Date_formulae fix.png" alt="Date_formulae fix.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Shivakumara K A&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 07:23:40 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11278#M4382</guid>
      <dc:creator>shivakumara</dc:creator>
      <dc:date>2025-11-18T07:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error calculating input for field 'myField': wrong number of arguments (given 1, expected 0)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11290#M4385</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you are correct about the type of input being the issue. I first tried with the formula as you've shown, but it still errored. I changed the formula to: &amp;amp;.to_s.to_date(format:"YYYY/MM/DD") - this time getting the nil input error. I then tried: &amp;amp;.to_s&amp;amp;.to_date(format:"YYYY/MM/DD"), and it no longer errors on empty inputs, but it does say invalid date for datapills that are not empty. I noticed that the trigger output has 0022 as the year instead of 2022, so I changed the formula format to be YY/MM/DD, but I still see invalid date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 408px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2416i3BF45FFA4DBA829B/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 470px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2420iF808B2415E8811AF/image-dimensions/470x86/is-moderation-mode/true?v=v2" width="470" height="86" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 629px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2422i0C87BF85D5E4E110/image-dimensions/629x243/is-moderation-mode/true?v=v2" width="629" height="243" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What do you think I am missing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Renee&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 15:17:35 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11290#M4385</guid>
      <dc:creator>rpatrick_</dc:creator>
      <dc:date>2025-11-18T15:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error calculating input for field 'myField': wrong number of arguments (given 1, expected 0)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11292#M4386</link>
      <description>&lt;P&gt;If your Last Provision Date is "0022-05-15", you're kind of hosed because that's not a valid date whether it's a string type or date type. You need to fix that first -- which should probably be fixed upstream in the source application providing the data. The to_date method won't work with "22-05-15". The year needs to be a 4-digit year value.&lt;/P&gt;&lt;P&gt;You can do something wild like this. It assumes all years are 2000 or greater. If you have a year in the 1900s, you're hosed again.&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;["0022-05-15".split("-")[0].to_i + 2000, "0022-05-15"[5..-1]].smart_join("-").to_date

## output &amp;gt;&amp;gt; "2022-05-15" as date type&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 19:51:11 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11292#M4386</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2025-11-18T19:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error calculating input for field 'myField': wrong number of arguments (given 1, expected 0)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11298#M4387</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;Is your input a text or date/time input?&lt;BR /&gt;Can you paste here the schema of that input field specifically just to confirm it is using the correct type?&lt;BR /&gt;Sometimes the platform screws up by setting the&amp;nbsp;&lt;STRONG&gt;render_input&lt;/STRONG&gt; and &lt;STRONG&gt;parse_output&lt;/STRONG&gt; attributes.&lt;/P&gt;&lt;P&gt;If you have something like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "name": "test",
    "type": "date_time",
    "optional": false,
    "label": "Test",
    "control_type": "date_time",
    "render_input": "date_time_conversion",
    "parse_output": "date_time_conversion"
  }&lt;/LI-CODE&gt;&lt;P&gt;...or this...&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "name": "test",
    "type": "text",
    "optional": false,
    "label": "Test",
    "control_type": "date_time",
    "render_input": "date_time_conversion",
    "parse_output": "date_time_conversion"
  }&lt;/LI-CODE&gt;&lt;P&gt;Just remove the&amp;nbsp;&lt;STRONG&gt;render_input&lt;/STRONG&gt; and &lt;STRONG&gt;parse_output&lt;/STRONG&gt; attributes, since your Jira action is expecting the date not in ISO8601 format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 21:38:55 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11298#M4387</guid>
      <dc:creator>saraiva</dc:creator>
      <dc:date>2025-11-19T21:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error calculating input for field 'myField': wrong number of arguments (given 1, expected 0)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11306#M4390</link>
      <description>&lt;P&gt;Thank you, this advice has helped me reach a solution. I did need to alter the datapill date instead of just the formatting, which I did with a string instead of the suggested integer conversion method. This is ultimately what worked:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 937px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2430i5A3DFE4552629D31/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 22:59:29 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11306#M4390</guid>
      <dc:creator>rpatrick_</dc:creator>
      <dc:date>2025-11-19T22:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error calculating input for field 'myField': wrong number of arguments (given 1, expected 0)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11310#M4391</link>
      <description>&lt;P&gt;That "Service Date" field - is something you have access to check the schema?&lt;BR /&gt;&lt;BR /&gt;If so, can you paste it here?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 22:59:05 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11310#M4391</guid>
      <dc:creator>saraiva</dc:creator>
      <dc:date>2025-11-19T22:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error calculating input for field 'myField': wrong number of arguments (given 1, expected 0)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11312#M4392</link>
      <description>&lt;P&gt;I have the same concern as&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/1188"&gt;@gary1&lt;/a&gt;&amp;nbsp;regarding those 'dates' you're receiving. 22 can be either 2020 or some other year of any other century (I'm ignoring your business logic and industry).&lt;BR /&gt;In any case, if you still want to go hardcore with such solution, you need to correct your example to add these parenthesis:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 914px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2431iF569A708016CE01C/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 23:11:45 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11312#M4392</guid>
      <dc:creator>saraiva</dc:creator>
      <dc:date>2025-11-19T23:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error calculating input for field 'myField': wrong number of arguments (given 1, expected 0)</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11315#M4395</link>
      <description>&lt;P&gt;Update: I tested the original formula and it outputs "20022-05-15", so maybe that's a valid year, but it's obviously incorrect.&lt;/P&gt;&lt;P&gt;Original post:&lt;/P&gt;&lt;P&gt;rpatrick said it worked, but I'm kinda of surprised...&lt;/P&gt;&lt;P&gt;I think the first parenthesis needs to come after "2" + ( like this:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;"2" + ( [Last Provision Date]&amp;amp;.to_s&amp;amp;.slice(1,9) )&amp;amp;.to_date&lt;/LI-CODE&gt;&lt;P&gt;If the intent is to slice "0022-05-15" to "022-05-15"...&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then concat "2" + "022-05-15" to make "2022-05-15"&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way the slice happens before the concat, otherwise it would end up as "20022-05-15", and then the slice would output "0022-05-15" again! Maybe?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Side note:&lt;/STRONG&gt; I had no idea you could use "if" in formula mode. I always used the short form ternary operator, like:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;[condition] ? [if true] : [if false]&lt;/LI-CODE&gt;&lt;P&gt;In this case you could do:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;[Last Provision Date].present? ? "2" + ( [Last Provision Date]&amp;amp;.to_s&amp;amp;.slice(1,9) )&amp;amp;.to_date : "" ## or nil&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 23:57:33 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/error-calculating-input-for-field-myfield-wrong-number-of/m-p/11315#M4395</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2025-11-19T23:57:33Z</dc:date>
    </item>
  </channel>
</rss>

