Forum Discussion
Error converting data type varchar to numeric when running insert query
Hi ,
I am getting below error when trying to run insert statement even though data types are same in target table and source view
Error details : Msg 8114, Level 16, State 5, Line 1
Error converting data type varchar to numeric.
Insert Query
PAN and DOD View Structure.
Could you please let me know how to find out which column is causing this issue bco'z from last 1 year working fine without any issues.
Thanks in Advance for your great support.
Regards,
Bhaskar
3 Replies
- HolgerRachutCopper Contributor
Noti have a column runtime, thats not in pan table.
so for that you should resolve * with the correct column names in
SELECT * FROM [Data].[Noti_EDW_PAN_TempViewIII]
UNION
SELECT * FROM [Data].[Noti_EDW_DOD_TempViewIII]
(same order of course)
try
SELECT Barcode,IATA,.... FROM [Data].[Noti_EDW_PAN_TempViewIII]
UNION
SELECT BarCode,IATA,.... FROM [Data].[Noti_EDW_DOD_TempViewIII]
- bhaskarpbi99Copper Contributor
Hi HolgerRachut,
Many thanks and kudos for the extreme support.
Appreciate your support and issue is resolved.
Many thanks for your support.
Regards,
Bhaskar
Hi, bhaskarpbi99 , are you sure that EDW.PageID and PgID.PageID (involved in the join match clause) are the same datatype?
Please check, the issue may be there