Hi guys,
I'm wanting to update a template field with a date 1 year from the creation date of a newly created document. I'm using a token calculator to generate the date and when tracking the token result I'm getting the correct format e.g. 20/06/2017 (NZ date format). However when I try to assign the date to the field value I get the error "The data assigned to field 'Review Date' is not valid. 9017 [Bad field value ...etc]". Assuming it's a formatting problem I've tried applying various formats to the token in the "Field Value" setting in the Assign Field Value activity via the token editor - currently displaying in the Workflow Assign Field Values as:
%(DateTokenCalculator_Add1Year#"d//MM//yyyy"#)
but I'm not having a lot of luck getting around the error. I've changed the "Review Date" field to Text to see what format the date is entered in and it populates correctly via the workflow both with and without the formatting on the token, so the format generated by the Workflow looks to be fine, however every time I reset the field back to date type I get the error.
I've checked the server regional settings and all settings are for New Zealand, and as I confirmed when the field was configured as a text type, the date was entered correctly so it doesn't look to be an issue with the server settings, but that being the case I'm not sure where to look next.
What am I missing please?
Thanks,
Mike