SFDO-Community / OmbudsmanCloudCare

App for Navy ombudsmen to track, resolve, and report on cases.
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

Sailors Missing Rank or Email Dashboard Error #90

Closed Nickers3 closed 3 years ago

Nickers3 commented 4 years ago

Getting error when loading the Dashboard of Zeros - Data. Caused due to Sailors Missing Rank or Email. Looks like report cannot load at all. Maybe due to Command Name change.

Nickers3 commented 4 years ago

@mkolodner discovered this playing around on the call.

mkolodner commented 4 years ago

Weird--I'm looking at that report in package and it doesn't seem to have the Command Name field on it. So does that mean it's the actual report type that's the problem? Wait--I think I see the problem. The Sailor__c object does not appear to have Allow Reports checked. Not sure how or when that would have happened, but it's a problem.

mkolodner commented 4 years ago

As soon as I checked that box on the object the report loads just fine.

mkolodner commented 4 years ago

Strangely, on the Sailor__c object xml it says true. And doing retrieve_changes didn't make a change to that.

Nickers3 commented 3 years ago

@mkolodner had some downtime at work this week and decided to tackle this one. You're spot on, the allow reports checkbox was unchecked somehow. Checking it, it worked.

One thing to double check, would we also want to allow activities? That was unchecked too.

mkolodner commented 3 years ago

Can't see how Allow Activities would hurt.

Nickers3 commented 3 years ago

I'll do both. Have a pull request ready for you two validate this fixed the error.

mkolodner commented 3 years ago

Just spun up an Enterprise scratch org (I always prefer to use something more representative than developer edition) from the pull request and I'm getting the same problem. And I see that on Sailor__c the boxes are not checked. Did I do something wrong? Here's what I did:

  1. Opened the pull request in GitHub desktop.
  2. View in VSCode
  3. cci flow run dev_org --org enterprise
  4. flow ran fine, then opened in browser.
Nickers3 commented 3 years ago

@mkolodner interesting. I noticed the master source code shows as reports/activities enabled. Going to try to pull one more time in hopes I can try to fix this before posting to HUB.

Nickers3 commented 3 years ago

Posted to HUB as I can't reset. Maybe a different setting is needed to allow.