
Hi
I'm having a problem with updating a column in a document library (UniqueID).
Each document in the library has a document tag (managed metadata required field and it is set to Display the entire path to the term in the field).
ERROR: The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/DocType']' is of type 'Null'. The result must be a valid array.
It was working previously (i was able to leave the Document Value blank -this is no longer possible). I don't know what has changed or how I can remedy this.
Any help is very much appreciated.
Thanks
Fitz
@Anonymous
Can you post a picture of the flow here please?
Also, on the Apply to each, what value do you use for the items? Is it '@triggerOutputs()?['body/DocType']'?