Hi Doreen Cecil ,
Welcome to Microsoft Q&A platform and thanks for posting your query here.
The expression '@activity('lookup1').output.value' would typically return an array as the output which you are further referring to in Get metadata activity for Filepath parameter.
Kindly try having a Foreach activity to iterate through the result of lookup and use Getmetadata activity inside foreach that could take the filepath one by one through looping .
Or, try using a particular value for filepath out of the output json , forexample '@activity('lookup1').output.value[1].<OutputJsonKey>' .
Kindly consider sharing the output of lookup activity for better help in implementation .
Hope it helps. Kindly accept the answer if it helped. Thankyou