I am trying to use my workflow to calculate an expected delivery date from a sharepoint 2010 list column, however when I use the add days function in K2 Studio, I get an "input string not in a correct format error"
The list contains a radio button column that has different shipping options. I then use a calculated column to draw up a number of days added to the list item submission date (an expected delivery date) which is based upon the shipping choice selection. The formula in the column works correctly and is set to output a "number" in Sharepoint.
The problem arises when I attempt to use the Add Days function in K2 Studio. For reference, here is what works and has not worked:
AddDays(RequestDate,ToInteger(TotalDaysAdded)) - throws the input string not in a correct format error in K2 Workspace.
AddDays(RequestDate, 14) - works correctly and displays a correct date.
AddDays(RequestDate, TotalDaysAdded) - does not allow the wizard to continue because it expects an integer argument.
RequestDate is a list column that is set to Date and Time in Sharepoint.
At this point, I'm not sure why exactly the ToInteger function is not correctly converting the TotalDaysAdded field to an integer. Is there something wrong with my logic here that I'm overlooking? Perhaps a different conversion or a different Sharepoint column value type?