Expression Error ( property 'Error' cannot be selected )

  • Hello there.

    I have the following Pipeline

    Proposed Solution

    I want to get the property error message from with every test fails, but i am stuck with the following error

    The expression

    concat(
    if(equals(activity('Test1').Error?.message, null), '', 'Test1'),

    if(equals(activity('Test2').Error?.message, null), '', 'Test2')

    )

     

    cannot be evaluated because property 'Error' cannot be selected.

    Basically, if the property (error) does not exist, i want a blank string,

    if it does exist, i to return hard coded text, ie whichever task it is failing.

    Can this be done?

    I have also tried the following but does not work

    @concat(

    if(contains(string(activity('Test1')), 'Error'), 'Test1',''),

    if(contains(string(activity('Test2')), 'Error'), 'Test2','')

    )

    Is there a way for doing this please

    Regards

    Rob

     

  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply