Error converting data type nvarchar to uniqueidentifier

Error converting data type nvarchar to uniqueidentifier

  

Hi All,

I am trying to call an external database stored procedure with an output parameter that is returning an UniqueIdentifier via Advanced SQL.  And unfortunately, I can't get it working. 

(/* %LogicalDatabase%=GetLogicalDatabase({Something}) */ EXEC [dbo].[getIdByKey] @someKey, @someId OUTPUT): Error converting data type nvarchar to uniqueidentifier.

Both @someKey and @someId is a "text" query parameters to this advanced SQL

Can anyone provide some insight as to what I did wrong?

Eric Halim wrote:

Maybe could be helpful

https://www.outsystems.com/forums/discussion/12987/using-unique-identifier-in-simple-queries/

Unfortunately, this doesn't work when it is an output parameter from a stored procedure.