UniException

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for universal data access
Post Reply
moreno21
Posts: 6
Joined: Sat 25 Dec 2010 12:55

UniException

Post by moreno21 » Tue 21 Aug 2012 00:03

Greetings.
I use dotConnect Universal Mobile.
I have problems with UNIEXECPTION the part numbers and their respective error message, for example when I call a stored procedure, it returns me the appropriate error number nor an appropriate message specifically when the timeout expires.
Only send the same error number: "-2147483648"
With the message: "SqlException"

Example:


Public Function PROC_X(ByVal X1 As String) As String
'
Dim Respuesta(2) As String
PROC_X = Respuesta
'
Dim Par_X As New UniCommand
Try
'
Par_X.Connection = CON_X 'es una conexion abierta y activa
Par_X.CommandType = Data.CommandType.StoredProcedure
Par_X.CommandTimeout = 60 'when time expires must return timeout number 2147217871
'Par_X.CommandText = "PREDURE_X"
'
Par_X.Parameters.Clear()
'
Par_X.Parameters.Add("X1", Devart.Data.Universal.UniDbType.VarChar)
Par_X.Parameters("X1").Size = 7
'
Par_X.Parameters.Add("MENSAJE", Devart.Data.Universal.UniDbType.VarChar)
Par_X.Parameters("MENSAJE").Size = 250
Par_X.Parameters("MENSAJE").Direction = Data.ParameterDirection.Output
'
Cursor.Current = Cursors.WaitCursor
'
Par_X.Parameters("X1").Value = "1234567"
'
Par_X.ExecuteNonQuery() '<--- PROCEDIMIENTO EN EL CLIENTE
'
Respuesta(0) = X1
Respuesta(1) = Par_X.Parameters("MENSAJE").Value.ToString
PROC_ENCABEZADO_TRASPASO_ICG = Respuesta
'
Catch exo As UniException
Cursor.Current = Cursors.Default
'
MsgBox("ERROR UNI: " & exo.ErrorCode & vbCrLf & exo.Message, MessageBoxButtons.OK, "ERROR")
'
Respuesta(0) = X1
Respuesta(1) = exo.Message.ToString()
PROC_ENCABEZADO_TRASPASO_ICG = Respuesta
'
Catch ex As Exception
Cursor.Current = Cursors.Default
'
MsgBox("ERROR ???: " & ex.Message, MessageBoxButtons.OK, "ERROR")
'
Respuesta(0) = X1
Respuesta(1) = ex.Message.ToString()
PROC_ENCABEZADO_TRASPASO_ICG = Respuesta
'
Finally
Cursor.Current = Cursors.Default
End Try
End Function



Saludos.
Utilizo dotConnect Universal Mobile.
Tengo problemas con UNIEXECPTION el la parte de los números de error y sus respectivo mensaje, por ejemplo cuando llamo un procedimiento almacenado, no me retorna el número de error apropiado y tampoco un mensaje adecuado específicamente cuando se vence el tiempo de espera.
Solamente envía el mismo numero de error: “-2147483648”
Con el mensaje: “SqlException”

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: UniException

Post by Pinturiccio » Mon 27 Aug 2012 13:43

We are investigating the issue and will notify you about the results as soon as possible.

Post Reply