Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Power automate flow works fine when trigger is set to ' on create or update' but doesn't work when set to ' on create' only

(0) ShareShare
ReportReport
Posted on by 20

I want run my flow only once and i.e. on create of work order. but its not working giving below error:

pastedimage1620120941554v2.png

and after trying multiple suggestions given in community i updated trigger to 'create or update' then the flow worked fine without error , but it ran multiple times. how to avoid that.

flow looks like this:

pastedimage1620120917863v1.png

  • Sayali Profile Picture
    20 on at
    RE: Power automate flow works fine when trigger is set to ' on create or update' but doesn't work when set to ' on create' only

    Hi Leah,

    the issue is resolved as i have changed filter column to field 'Column filter' .  i am updating column filter on create of work order when asset contains data. so flow runs only when 'column filter'  updates and when asset contains data.

    Thank you so much for all the support :)

  • Sayali Profile Picture
    20 on at
    RE: Power automate flow works fine when trigger is set to ' on create or update' but doesn't work when set to ' on create' only

    Thanks leah, its working now without error, Issue was the same you mentioned- asset value is null on create of work order. 

    its just running twice, i checked the audit history also. asset is updated only once. still the flow is running twice.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Power automate flow works fine when trigger is set to ' on create or update' but doesn't work when set to ' on create' only

    Hi Sayali,

    The only reason for the error is that the asset lookup field value is null when the work order created, you need ensure Asset lookup field in work order is filled when creating work order.

    From your screenshot, the asset lookup field in work order form is custom field you created, right?

    And you also mentioned that “work order is getting created from agreement and asset field getting mapped on create itself.

    So the ‘Asset’ lookup field is filled automatically or not when generating work order from agreement?

    Test:

    Asset lookup field is filled.

    pastedimage1620291395319v2.png

    Asset lookup field is null.

    pastedimage1620292138063v3.png

    Or you can create a new simple flow(only two steps) by adding 'Compose' action to check the asset field is null or not when generating new work order.

    pastedimage1620292384298v4.png

    Result:

    pastedimage1620292648399v5.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Sayali Profile Picture
    20 on at
    RE: Power automate flow works fine when trigger is set to ' on create or update' but doesn't work when set to ' on create' only

    Hi,

    Flow: 

    pastedimage1620285637218v1.pngpastedimage1620285693135v2.png

    Error:

    pastedimage1620285751563v3.png

    Work order form- Asset field details:

    pastedimage1620285825101v4.png

    Work order form:

    pastedimage1620285858830v5.png

    New field suggested by you:

    pastedimage1620285908170v6.png

    now its not even working for create or update trigger :( please check and let me know what i am doing wrong

  • Community Member Profile Picture
    on at
    RE: Power automate flow works fine when trigger is set to ' on create or update' but doesn't work when set to ' on create' only

    Hi Sayali,

    It’s so strange, the flow is triggered twice and work order checklist is duplicated.

    Maybe you can create new field for work order but not adding it to the form, and fill the logic name of the new field to ‘Column Filter’, then run the flow to check how many times it has run.

    If it is still not work, can you provide more screenshots about work order form with asset lookup field, their check list records and details of the flow, which can make me test it with same steps and conditions.

    Note:Screenshots should not contain sensitive private information.

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Sayali Profile Picture
    20 on at
    RE: Power automate flow works fine when trigger is set to ' on create or update' but doesn't work when set to ' on create' only

    when i change the trigger this error goes away and it works fine. i tried multiple possible ways to avoid this issue by adding GUID or by using its schema name(plural), issue is not in filter. also i have removed delay step

  • Sayali Profile Picture
    20 on at
    RE: Power automate flow works fine when trigger is set to ' on create or update' but doesn't work when set to ' on create' only

    HI Leah, Yeah that worked. But still flow executed twice and duplicates of work order checklist is created. is there any way where i can check if work order checklist record with combination already exists?

  • Fubar Profile Picture
    2,756 on at
    RE: Power automate flow works fine when trigger is set to ' on create or update' but doesn't work when set to ' on create' only

    Why do you have the Delay step?

    Show what you have inside the List Records step - the error is basically saying I am comparing a String and a Guid and can't because they are different data types

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Power automate flow works fine when trigger is set to ' on create or update' but doesn't work when set to ' on create' only

    Hi Sayali,

    Maybe you can add one Column filter in the trigger, the flow will only be triggered when creating work order or updating the field, which means that the flow can’t be triggered when other fields not update.

    Based on your previous cases, worker order and Asset is N:1 relationship, there is an Asset lookup field in the worker order form, you can set the lookup field as column filter.

    Then filling the logic name of the lookup field in the ‘Column Filter’.

    For example, Account and contact is 1:N relationship, one account lookup field(Account) in the contact form, the logic name of it is ‘parentcustomerid’.

    pastedimage1620181004534v2.png

    pastedimage1620180773954v1.png

    Note: if you want to the flow can be triggered when creating new work order, the asset lookup field in work order form must be filled before clicking save button.

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans