Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

QMS API - GetUserDocuments does not return the document after initial Reload/Create

I am using the QlikView Distribution service to reload a document (from a source document).

On the first reload invoked using the API, the document is reloaded and appears on the disk however

_qvClientWS.GetUserDocuments()

does not return the document, unless I explicitly use the QMC console in the browser and I press F5 or CTRL+F5 to reload the documents.

Once I see it listed in the browser , and call again

_qvClientWS.GetUserDocuments()

the document appears in the returned list.

It is like the QMC browser refresh is using a different API that populates correctly the list of user documents available.

So, the question is, how can I make GetUserDocuments return the good list (with my just created/reloaded user document in it).

I tried to use thread sleep and wait forever for a magic refresh to happen, but it never worked.

1 Solution

Accepted Solutions
Not applicable
Author

I opened a support ticket and it seems that it is a known issue.

The solution for this is to use

_qvClientWS.ClearQVSCache(QVSCacheObjects.UserDocumentList);

To reload the cache.

View solution in original post

1 Reply
Not applicable
Author

I opened a support ticket and it seems that it is a known issue.

The solution for this is to use

_qvClientWS.ClearQVSCache(QVSCacheObjects.UserDocumentList);

To reload the cache.