cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

To-Do Personal Filter Array: ConvertFromUTC, compare DueDateTime on GMT Timezone

Hello all,

 

My Flow used to be working fine for very long time until last week, where it stucked on the Filter Array.

Is there any shift in policy or new features, that somehow broke the following?

 

@equals(convertFromUtc(item()?['dueDateTime']?['DateTime'], 'Singapore Standard Time', 'yyyy-MM-dd'), convertFromUtc(body('Get_future_time'), 'Singapore Standard Time', 'yyyy-MM-dd'))

 

I'm trying to only output a list of To-Do's Subject, with a Due Date = matching to Daily.

The reason for the above expression, is the Due Date stored with To-Do is in UTC and we require the Output Listing, to be match to our Timezone's Day Date.

 

The error kept pointing to Null value. 

But I had triple check many time, there are indeed matching records. Shall I exclude convertFromUTC in first half, there would not be any error but no matching record because it is comparison of UTC and Timezon.

 

Hope anyone could helped out! Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: To-Do Personal Filter Array: ConvertFromUTC, compare DueDateTime on GMT Timezone

Untitled.png

 

Somehow for unknown reason, I managed to resolve this issue. 

I am pretty sure that the above solution was not there or does not work at that time.

Could there be any update or changes being made, that resulted the failure? 
Anyway, I'm happy that the problem has been resolved.

View solution in original post

5 REPLIES 5
Highlighted
Community Support
Community Support

Re: To-Do Personal Filter Array: ConvertFromUTC, compare DueDateTime on GMT Timezone

Hi @ahjeremy ,

 

Could you please share the full screenshot of the configuration of your flow?

 

Best regards,

Alice       

 

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

 

Highlighted
Frequent Visitor

Re: To-Do Personal Filter Array: ConvertFromUTC, compare DueDateTime on GMT Timezone

Hello @v-alzhan-msft Alice,


Apologies for my terribly late reply.

The past week had been very chaotic at work and life.

Flow 01.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flow Error (Bottom):
Flow Error.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Filter Array where the error occured:

My intention is to filter and display the data with its DueDate equal to the scheduled day.

For an example, it would either filter the data with today DueDate or tomorrow DueDate.

However, because the data is recorded/saved as UTC, I would need to convert the Data's DueDateTime to the right GMT and set equal to either today DueDate and tomorrow DueDate through ConvertfromUTC()

 

It looks like now and the past weeks, the FilterArray does not accept ConvertFromUTC for item()?['dueDateTime']?['DateTime'] 

 

Thanks,

Highlighted
Frequent Visitor

Re: To-Do Personal Filter Array: ConvertFromUTC, compare DueDateTime on GMT Timezone

Hello @v-alzhan-msft 

 

Any thought from your Team?

 

Thanks, 

Appreciate your reply.

Highlighted
Frequent Visitor

Re: To-Do Personal Filter Array: ConvertFromUTC, compare DueDateTime on GMT Timezone

Still hoping for anyone's help.

Highlighted
Frequent Visitor

Re: To-Do Personal Filter Array: ConvertFromUTC, compare DueDateTime on GMT Timezone

Untitled.png

 

Somehow for unknown reason, I managed to resolve this issue. 

I am pretty sure that the above solution was not there or does not work at that time.

Could there be any update or changes being made, that resulted the failure? 
Anyway, I'm happy that the problem has been resolved.

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (13,782)