I did a select statement to some tables that I have in a linked server

```
SELECT A.[STCOMP], A.[STDATE], A.[STUNM], A.[STQTY], A.[STWWAY], A.[STVOID],
       A.[STMATR], A.[STTCKT], C.[RWDESC], A.[STDESC], A.[STLNDF], B.[CSLNAM],
       B.[CBLNAM],D.[CVAR6]    
FROM [EPAK].[B00BF4CR].[IWSE4S8].[SCTRN] A 
INNER JOIN [EPAK].[B00BF4CR].[IWSE4S8].[CUST] B 
  ON A.[STNCST] = B.[CMSTC#] 
 AND A.[STNCMP]= B.[CMSTCO] 
 AND A.[STCOMP]= B.[CCMPNY] 
 AND A.[STCUST]= B.[CCUST#] 
INNER JOIN [EPAK].[B00BF4CR].[IWSE4S8].[SCRWC] C 
  ON C.[RWDESC]= A.[STRWC] 
 AND C.[RWCOMP]= A.[STCOMP] 
INNER JOIN [EPAK].[B00BF4CR].[IWSE4S8].[CUSX] D 
  ON A.[STCOMP]= D.[CCMPNY] 
 AND A.[STCUST]= D.[CCUST#] 
WHERE A.[STCOMP]='51' 
  AND A.[STDATE] BETWEEN 20140317 AND 20140323 
  AND A.[STVOID] = 'N' 
ORDER BY A.[STTCKT]

```

and I got this error

```
Error converting data type varchar to numeric.

```