Qlik Community

QlikView Management

Discussion Board for collaboration on QlikView Management.

jonasheisterkam
Contributor III

Is there a User Doc Limit in the QMS-API?

Hi,

if i place over 185 user documents on server the QMS breaks with:

Unexpected exception System.ServiceModel.CommunicationException: The maximum message size quota for incoming messages (65536) has been exceeded.

At a line with:

Client.GetUserDocuments(MyQVS.ID)

Is there a solution to get the documents in pieces?

Hope someone could help me.

Thanks

German error message:

Ausnahmefehler: System.ServiceModel.CommunicationException: Das maximale Nachric

htengrößenkontingent für eingehende Nachrichten (65536) wurde überschritten. Ver

wenden Sie die MaxReceivedMessageSize-Eigenschaft für das entsprechende Bindungs

element, um das Kontingent zu erhöhen. ---> System.ServiceModel.QuotaExceededExc

eption: Das maximale Nachrichtengrößenkontingent für eingehende Nachrichten (655

36) wurde überschritten. Verwenden Sie die MaxReceivedMessageSize-Eigenschaft fü

r das entsprechende Bindungselement, um das Kontingent zu erhöhen.

   --- Ende der internen Ausnahmestapelüberwachung ---

Server stack trace:

   bei System.ServiceModel.Channels.HttpInput.ThrowMaxReceivedMessageSizeExceede

d()

   bei System.ServiceModel.Channels.HttpInput.GetMessageBuffer()

   bei System.ServiceModel.Channels.HttpInput.ReadBufferedMessage(Stream inputSt

ream)

   bei System.ServiceModel.Channels.HttpInput.ParseIncomingMessage(HttpRequestMe

ssage httpRequestMessage, Exception& requestException)

   bei System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.Http

ChannelRequest.WaitForReply(TimeSpan timeout)

   bei System.ServiceModel.Channels.RequestChannel.Request(Message message, Time

Span timeout)

   bei System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message messa

ge, TimeSpan timeout)

   bei System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean o

neway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan ti

meout)

   bei System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCal

lMessage methodCall, ProxyOperationRuntime operation)

   bei System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:

   bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage re

qMsg, IMessage retMsg)

   bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgD

ata, Int32 type)

   bei DocInfo.QMSAPIService.IQMS.GetUserDocuments(Guid qvsID)

   bei DocInfo.QMSAPIService.QMSClient.GetUserDocuments(Guid qvsID) in \\cbs-ser

ver-4\c$\QlikView\Backup\Kunden\Governance\DocInfo\DocInfo\Service Re

ferences\QMSAPIService\Reference.cs:Zeile 13191.

   bei DocInfo.Program.Main(String[] args) in \\cbs-server-4\c$\QlikView\Backup\

Kunden\Governance\DocInfo\DocInfo\Program.cs:Zeile 45.

:

1 Solution

Accepted Solutions
jonasheisterkam
Contributor III

Re: Is there a User Doc Limit in the QMS-API?

If i add maxBufferSize, maxBufferPoolSize and maxRecievedMessageSize to the binding it looks good.

<bindings>

            <basicHttpBinding>

                <binding name="BasicHttpBinding_IQMS" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">

                    <security mode="TransportCredentialOnly">

                        <transport clientCredentialType="Ntlm" />

                    </security>

                </binding>

                <binding name="BasicHttpBinding_IQTService" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">

                    <security mode="TransportCredentialOnly">

                        <transport clientCredentialType="Ntlm" />

                    </security>

                </binding>

            </basicHttpBinding>

        </bindings>

1 Reply
jonasheisterkam
Contributor III

Re: Is there a User Doc Limit in the QMS-API?

If i add maxBufferSize, maxBufferPoolSize and maxRecievedMessageSize to the binding it looks good.

<bindings>

            <basicHttpBinding>

                <binding name="BasicHttpBinding_IQMS" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">

                    <security mode="TransportCredentialOnly">

                        <transport clientCredentialType="Ntlm" />

                    </security>

                </binding>

                <binding name="BasicHttpBinding_IQTService" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">

                    <security mode="TransportCredentialOnly">

                        <transport clientCredentialType="Ntlm" />

                    </security>

                </binding>

            </basicHttpBinding>

        </bindings>

Community Browser