Any idea how to navigate around this bug? | Community
Skip to main content
Level 2
December 4, 2023
Question

Any idea how to navigate around this bug?

  • December 4, 2023
  • 1 reply
  • 873 views

I'm needing to do a search of the dashboards collection for a report (PTLSEC). 

 

What I want to do is to create a filter to look for an empty dashboard collection and lastViewedDate is older than 6 months ...and then delete the Report.

 

I thought that I could just use an Iterator ...but, I think there is a bug here.

 

I'll open a ticket, but just curious if anyone knows a work-around.  The label for the dashboard id is dynamic, so I can't check that.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

ChrisStephens
Community Advisor
Community Advisor
December 4, 2023

I don't think it's a bug, there's still a collection in the array even if it's empty, so there is something to iterate against.

 

I would put a filter before your iterator to check if there is an actual collection in the array, and not an empty collection.

daBellowsAuthor
Level 2
December 4, 2023

The problem is that it's not totally empty ...when it should be empty.  Here's a screen shot:

I don't know what my filter would be to filter out the one with or without the dashboard.  Fusion always thinks that there is a collection even when there's no dashboard ...because the fields I have circled.

ChrisStephens
Community Advisor
Community Advisor
December 4, 2023

Off the cuff, could you do something like length(keys(get({incoming array of collections};1)))>0? Get to pull the first collection in the array, keys to get a list of the keys in the collection, and then length to get the number of keys. I would think that an empty collection would return a keys array of length 0, but non-empty collections would have some length.