Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Document CALs not allocated on server not updating API

I'm using the API to add or remove document licenses (an easy interface for management to understand)

Whenever I finished adding or removing users, the "Document CALs not allocated on server" number doesn't update. For example, if we had 25 licenses not allocated to documents, and someone add's a user (which will automatically allocate another CAL using documentMetaData.Licensing.CALsAllocated), the number is still at 25, it doesn't show 24.

Only once I manually go into the QEMC and apply a change to that document, does it update.

Do I have to do anything more after I do: apiClient.SaveDocumentMetaData(documentMetaData) ??

It does add the licence and increase the allocated CAL's to that document, but it doesn't update the abovementioned number (which is server wide)

1 Solution

Accepted Solutions
Not applicable
Author

I have to re-save the CAL Configuration (scoped for only DocumentCAL's)

_apiClient.SaveCALConfiguration(_calConfig);

This resets the number to the correct one.

View solution in original post

5 Replies
vikasmahajan

Can you check out how many doc cals are apply already to that document.

Pls see the setting in attached jpg.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Not applicable
Author

Not sure what difference that will make but sure:)

70 cals available on server

14 not allocated on server

4 allocated to the document

4 users assigned

When I add a user with the utility to this document, these are the figures:

70 cals available on server

14 not allocated on server (incorrect!! should be 13)

5 allocated to the document

5 users assigned

When I then apply a change on the QEMC, it updates the 14 to a 13 like it should.

Not applicable
Author

I have to re-save the CAL Configuration (scoped for only DocumentCAL's)

_apiClient.SaveCALConfiguration(_calConfig);

This resets the number to the correct one.

Not applicable
Author

What is the _calConfig ?

Not applicable
Author

Could you maybe post your script on how you add users? I have a script and i says the user is added, but its doesnt show in QMC and neither does my calc numbers decrease.