• DOCUMENTATION
  • WORKATO BLOG
  • PRODUCT BLOG
  • Return to Workato
  • Log in
  • ☰
  • Community/Discussions
Solution home Troubleshooting Generic Errors

Generic Error: Error calculating input for field, String can't be coerced into Fixnum

Modified on: Mon, Apr 24, 2017 at 2:39 PM

Error: Error calculating input for field, String can't be coerced into Fixnum

 

What does this mean?: 

This occurs when you try to use "+" in a field using formula mode when the first pill is a number. For example, you have the formula below. You want the Job URL to be one line after the Job ID, so you try to add "\n" to add another line. However, because Job ID is a number, it takes the "+" as a numeric operator, and when the formula tries to add a number to a string, it will fail and give an error. Its like how in arithmetic math you can't get an answer from "1 + a"

Solution: 

Convert the pill that is affecting the formula to a string by using the .to_s function. 


Have a question? Join our bi-weekly Expert Hour to get help from our Experts. Alternatively, you can find similar questions in our Q&A (Recipe Errors) Forums or Start a New Topic.


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

Related Articles

    Still can't find your solution?

    Visit our forums to search for answers, or post your own questions.

    Documentation
    Developer's Library
    Tutorials
    eBooks
    Product Hour
    Product Blog
    Workato Blog
    Product updates
    Customer Stories
    © Workato 2020   Privacy   Terms   +1 (844) 469-6752
    • Documentation
    • Workato Blog
    • Product Blog
    • Solutions
    • Forums
    • Tickets
    • Log in
    • Return to Workato