eapowertools-archive / GovernedMetricsService

Unsupported - Qlik Sense Governed Metrics Service - Deploy centralized metric definitions to specific apps in Qlik Sense.
http://eapowertools.github.io/GovernedMetricsService/
MIT License
32 stars 17 forks source link

Can't update the metrics #110

Closed rdilisse closed 7 years ago

rdilisse commented 7 years ago

Hi, We have succesfully installed and configured GMS as according to the documentation. But the "update Metrics in Apps" is not working. Please find herewith the feedback from our developer:

Hereby I list the steps I follow to test the Governed Metrics Service/Application:

  1. I loaded the excel file using the data connection you created in the load editor. The data is available in the application in field/data format (not in master objects, yet).
  2. In the QMC I add the 4 ‘ManagedMasterItems’ for the application.
  3. Then, I use the UI in port 8590 to check on the steps:
  4. Specify application name: ‘HCC – App’
  5. Test Connection’  {"level":"info","msg":"GET getdocid success::f3696fae-db76-4bf8-8522-5bcf5f36e33e","meta":{"module":"routes"}}
  6. Reload Metrics Library App  {"level":"info","msg":"POST reload success::Task Completed in 2500 milliseconds with message Changing task state from Started to FinishedSuccess","meta":{"module":"routes"}}
  7. Update Metrics in Apps  error {"level":"error","msg":"[TypeError: Cannot read property 'qText' of undefined]","meta":{"module":"objectManagement","app":"HCC - App"}}
goldbergjeffrey commented 7 years ago

What does the metrics library table look like? Do all of the required fields have data? If not, it can break the metric add.

rdilisse commented 7 years ago

Thanks a lot for the quick reply. I'll have the developer verify.

rdilisse commented 7 years ago

We have verified the file and don't see any issues with it. As a test, we took the demo file GMS.xls and just changed one of the MetricSubject to match one of ours ‘PHARMA COMMERCIAL EMEA – Events information’ . The console’s output still prompts the same error: {"level":"info","msg":"Calling updateMetrics on application:Test - GMA - HCC with id:d0e66d71-8c9c-4c9c-b328-bf586e0f7aa1","meta":{"module":"updateMetrics","method":"updateMetrics","app":"Test - GMA - HCC"}} {"level":"info","msg":"[ 'PHARMA COMMERCIAL EMEA - Payments',\n 'PHARMA COMMERCIAL EMEA - Events speakers',\n 'PHARMA COMMERCIAL EMEA - Events participants',\n 'PHARMA COMMERCIAL EMEA - Events information' ]","meta":{"module":"updateMetrics","method":"updateMetrics","app":"Test - GMA - HCC"}} {"level":"info","msg":"Beginning Object Management","meta":{"module":"objectManagement","app":"Test - GMA - HCC"}} {"level":"error","msg":"[TypeError: Cannot read property 'qText' of undefined]","meta":{"module":"objectManagement","app":"Test - GMA - HCC"}}

That may indicate that it should not be a file formatting issue.

goldbergjeffrey commented 7 years ago

I'm hopping on a webex with a colleague experiencing the same issue within the hour. I'll have a look and see if I can diagnose what's going on.

goldbergjeffrey commented 7 years ago

@rdilisse did you upgrade from a previous version of GMS?

rdilisse commented 7 years ago

Yes, we installed version 2.0.5.

goldbergjeffrey commented 7 years ago

but did you upgrade from a previous version? I reviewed the same issue with a colleague and the issue was related to upgrading from a previous version. There are breaking changes in 2.0.5 that you will want to review in the documentation. My point is your issue may not be just one thing.

rdilisse commented 7 years ago

Yes, we had the previous version installed .. I did the uninstall, but noticed that the service & the directory was not removed and then just ran the install of the new version again. So, it's surely not a clean new install ...

rdilisse commented 7 years ago

So, any suggestions?

rdilisse commented 7 years ago

Just to clarify, we initially had version 2.0.4 installed, after the bug identified, we installed version 2.0.5. I don't see any major changes (besides that one bug) between the 2 versions.

rdilisse commented 7 years ago

Is there anything we can verify from our end? Our customer is really keen on getting this working for their project. Any help is appreciated :-).

goldbergjeffrey commented 7 years ago

@rdilisse, please provide an email address on your profile so I may contact you on this issue outside the thread.

Thanks,

Jeff G

rdilisse commented 7 years ago

Profile updated with email address

goldbergjeffrey commented 7 years ago

Documentation Bug in that the metricTags and metricColor fields need to be created in the Governed Metrics Application data model for the GMS to run properly. No values need to be supplied, but the fields need to exist.