cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

File name no longer available with File Deleted trigger

Hoping for some guidence here.  I have a flow that has been running without error for several months.  The flow is triggered when a file is deleted from a library.  The first step in the flow was to initialize a variable to the first 7 characters of the file name using the following expression:

 

substring(triggerBody()?['FileNameWithExtension'],0,7)

 

As I've mentioned, this has been working for months, and then starting Saturday, that step now receives the following error:

 

Unable to process template language expressions in action 'Init_CDDName_field' inputs at line '1' and column '2866': 'The template language function 'substring' parameters are out of range: 'start index' and 'length' must be non-negative integers and their sum must be no larger than the length of the string. Please see https://aka.ms/logicexpressions#substring for usage details.'.

 

Any thoughts?  Any other way to get the file name of the deleted file?

 

Thanks in advance for the help!

 

Tom

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @tsyrell ,

 

I have reported this issue, please check the following thread:

https://powerusers.microsoft.com/t5/I-Found-A-Bug/File-name-no-longer-available-with-File-Deleted-tr...

 

Best regards,

Mabel      

    

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Dual Super User II
Dual Super User II

Hi @tsyrell 

 

This looks like a bug. I tried replicating the issue on my end and attached is the output I recieved:teat.PNG

Flow triggers but fails to get the Name, Filenamewithextension and the Deletedbyusername fields. 

 

You can raise a bug request here: 

https://powerusers.microsoft.com/t5/I-Found-A-Bug/bd-p/BugFound

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Thanks @yashag2255 .  I've submitted the bug issue.

Hi @tsyrell ,

 

I have reported this issue, please check the following thread:

https://powerusers.microsoft.com/t5/I-Found-A-Bug/File-name-no-longer-available-with-File-Deleted-tr...

 

Best regards,

Mabel      

    

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (6,512)