Hi everyone,
I'm trying to develop a OLAP browser with SyncFusion ejOlapClient, but I'm getting this error:
"The input is not a valid Base64 string that contains a character that is not Base 64, more than two filler characters or invalid character between the fill characters."
In the attached image you can see how the third request made to the WCF service has failed.
The related base64 string/object is generated in InitializeClient method. This base64 is sent by the client in the second call (InitializeGrid), but no error raised.
In the third method called, throws an exception, but the base64 string has no changed since it was generated.
Base64 string is generated by this line:
olapClientHelper.GetJsonData(action, DataManager, clientParams);
In the second method is just the same:
olapClientHelper.GetJsonData(action, DataManager, gridLayout);
But in the third method is calling another method from other helper class:
return htmlHelper.GetJsonData(action, DataManager);
Just say, that our code is pretty equal to the sample provided with SyncFusion solution, except by the culture related variables.
The heavy data is down:
Thanks in advice for your time.
---------------------------------------------
The response from 1st call:
{"d":[{"Key":"Cubes","Value":"[{\"name\":\"alarmCube\"}]"},{"Key":"Columns","Value":"#Measures"},{"Key":"Rows","Value":"#Date.Fiscal"},{"Key":"Slicers","Value":""},{"Key":"CubeTreeInfo","Value":"[{\"id\":\"Measures_0\",\"name\":\"Measures\",\"hasChildren\":false,\"spriteCssClass\":\"folderCDB e-icon\",\"tag\":\"Measures\"},{\"id\":\"Measures_1\",\"name\":\"Measures\",\"hasChildren\":false,\"spriteCssClass\":\"folderCDB e-icon\",\"tag\":\"Measures\"},{\"id\":\"Measures_2\",\"name\":\"Measures\",\"hasChildren\":false,\"spriteCssClass\":\"folderCDB e-icon\",\"tag\":\"Measures\"}]"},{"Key":"CurrentReport","Value":"H4sIAAAAAAAEAL1Y32\/bNhB+H7D\/wfD7oqTBXgpWRWInbbG0DWw3bVD0gZGvNmGa1EjKTvrX90RREklR3YZ1e7O++z7yjj\/ujiYvH\/d8cgClmRQvpmcnp9OX+a+\/kPeclgsopTITJAj9\/FGvX0y3xpTPs+x4PJ4cz0+k2mTPTk\/Psk9vb5bFFvZ02pHZX5N\/Y0IbKgqY4oSTCZlRAxupWEH5FYc9CKOtAU03TBv3G7\/eGNh3X\/jt2HeUVzDBqZ+b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lYd\/A1AyUJvQDwAA"},{"Key":"ReportsCount","Value":1},{"Key":"ReportList","Value":"[{\"name\":\"Default Report\"}]"},{"Key":"MeasureGroups","Value":""}]}
the object receibed and sended later (incorrect base64):
H4sIAAAAAAAEAL1Y32\/bNhB+H7D\/wfD7oqTBXgpWRWInbbG0DWw3bVD0gZGvNmGa1EjKTvrX90RREklR3YZ1e7O++z7yjj\/ujiYvH\/d8cgClmRQvpmcnp9OX+a+\/kPeclgsopTITJAj9\/FGvX0y3xpTPs+x4PJ4cz0+k2mTPTk\/Psk9vb5bFFvZ02pHZX5N\/Y0IbKgqY4oSTCZlRAxupWEH5FYc9CKOtAU03TBv3G7\/eGNh3X\/jt2HeUVzDBqZ+bpxJeTN8C1ZWCdqypJ+lFOkARD1WRFe3v6B4m2RB3gjHzB8H+rKC25p\/dFPrLyedZpY3cg5rMZCXMF5J5vMix7AeekSwZDrl6LHi1hnU7Y+BZJ7IL1y9v5q0vybylJ2\/0NeMG1Hu1xIPxXuRfKdeAghi3+5mNbSi5Ehsm4K45dPk7KXCMEGsOxJYqswRjmNh0R+FCAb2kxW6jcMXWXUDkUqo1qJnkUvXgnBp6K1kbonM3Qh3XzpYa2RrswLeUozeQz+ErrbjBCAcmXzOXxe4GNiDWt1IzU8e1kqVTJYy+doVHOC8kr\/bCCSziKK8UXTNczwux4ZCfkiwE2u0SuCdMqlRQb\/SMqYLD8mn\/IHm\/kQHacW\/oA\/AV7EuOW3rWsyM8zX82wn82wj8f4Z\/3\/AUUmDk2Q\/djQ6dY4kqAtveqI3tYx1splhw4wjv+J3uGdE9sgY5xHzPuQ4aNUd8xzR4YZ+apJQ7wlm8PzWwLxe5SPiZ0Y\/ZAP6Yb8q8eSyrwag0VCYvTLI2SO1htWbEToHV9QmOoZdr1TIQ\/NDhFexyGkoTFaT5dPDJ9LYW5pgXkmGTWVFCShXDIVfDKXpn8kuP16bgd7LPtVtXjfAS22Zp8AZuKU+VEsdUp79M+3ad8uk\/7FMM+e9SnpLXda0EfOJzPux1uv9vd2srja8zo31BJ+SvF1jeYtHVuVFVv2YjVE2OYpq4HKenQ5srIoAyQmjIoDJzL4xI4ZoA6mboIItRxrxXAN3gNFE+v8yCAfI\/ryzoDzldScsNK3+HY5K+SHcg3tuc6afSUb2H\/AOpWybJeD9A1ZRXqxyj+SixAs2+wkEcdLIUHD9kzW29SgtbiNP0oK3nNTCuI4YDthmgszSImDP4SYsFTnIldsHQd2ByOwUkgs0oprISz6qFpoy7WB\/zE7mfyUaqdxvMUERqVFKI5I5iocDBXKUnT2KT6Ub+W\/qO2KDGk7SrbtmLS9N0k671rKtVP6YrnDNG6x3L2qC1uHMEk6k0fD+lxfCSgvmagqCq2TwHcTnDNNF70xBTRJC1vbBpbzg4QvxdGzANr6M7kHur8mJhkxC8nGHfO6prL2nqYeBvYTs326RcHynidcRtN3zOMmAfRZj8INzRGD4UsvV9krhjnS0P9ptfDhtwP5VwehZ0pCtW3NwHEhM6HYO9DNBDEefD\/fd4kLqXNW1f70jw1Sa1+afjZKzaFGkycSUGLW\/YHDR+3oGDGaaUBi\/+SswITlkupo+Z+Kte1+aW3xxoaan5y0ksMSVZygx31LTvIroL4kPtTgBdV3dStw0P\/77xJj0rumDIV5X+U7KfGPjIsuaUb5JZ10ekmat\/MlNfWJZbH\/PfT\/intwQOBq2s1IT\/zJb6hra\/27AZTRFBAjIYegk2gg4CaOw\/rutXpQmR+oSI78FMO0bb65s0dafokkjmwv8K+iNiHMYLeAxnRg731CB\/8R37mTf63HFm03dp\/44XLpv4Kudu3wOcmNMepyWsk6\/+Ty78Dn1ZhqLcTAAA=
The detailed error:
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131076</EventID><Type>3</Type><SubType Name="Error">0</SubType><Level>2</Level><TimeCreated SystemTime="2015-03-26T11:44:08.4366219Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{09d1b4a1-7828-4051-8de5-1bbf80684f00}" /><Execution ProcessName="w3wp" ProcessID="5816" ThreadID="51" /><Channel /><Computer>ARECORT</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord Severity="Error" Channel="Operational" xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord"><TraceIdentifier>http://msdn.microsoft.com/es-ES/library/System.ServiceModel.Diagnostics.TraceHandledException.aspx</TraceIdentifier><Description>Control de una excepción. Detalles de la excepción: System.FormatException: La entrada no es una cadena Base 64 válida porque contiene un carácter que no es Base 64, más de dos caracteres de relleno o un carácter no válido entre los caracteres de relleno.
en System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
en System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
en System.Convert.FromBase64String(String s)
en Syncfusion.JavaScript.Olap.Utils.DecompressData(String cString)
en Syncfusion.JavaScript.Olap.Utils.DeserializeOlapReport(String report)
en Tempe.Business.ServiceBL.InitializeChart(String action, String customObject)
en SyncInvokeInitializeChart(Object , Object[] , Object[] )
en System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
en System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
en System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</Description><AppDomain>/LM/W3SVC/11/ROOT-27-130718437431158638</AppDomain><Exception><ExceptionType>System.FormatException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>La entrada no es una cadena Base 64 válida porque contiene un carácter que no es Base 64, más de dos caracteres de relleno o un carácter no válido entre los caracteres de relleno. </Message><StackTrace> en System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
en System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
en System.Convert.FromBase64String(String s)
en Syncfusion.JavaScript.Olap.Utils.DecompressData(String cString)
en Syncfusion.JavaScript.Olap.Utils.DeserializeOlapReport(String report)
en Tempe.Business.ServiceBL.InitializeChart(String action, String customObject)
en SyncInvokeInitializeChart(Object , Object[] , Object[] )
en System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp; outputs)
en System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc)
en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc)
en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp; rpc)
en System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</StackTrace><ExceptionString>System.FormatException: La entrada no es una cadena Base 64 válida porque contiene un carácter que no es Base 64, más de dos caracteres de relleno o un carácter no válido entre los caracteres de relleno.
en System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
en System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
en System.Convert.FromBase64String(String s)
en Syncfusion.JavaScript.Olap.Utils.DecompressData(String cString)
en Syncfusion.JavaScript.Olap.Utils.DeserializeOlapReport(String report)
en Tempe.Business.ServiceBL.InitializeChart(String action, String customObject)
en SyncInvokeInitializeChart(Object , Object[] , Object[] )
en System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp; outputs)
en System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc)
en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc)
en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp; rpc)
en System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</ExceptionString></Exception></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent>
Attachment:
callsFromClient_19dca202.zip