getting source side error Can anyone suggest me solution for this

santosh 0 Reputation points
2025-05-21T12:33:55.9233333+00:00

Screenshot 2025-05-21 104249

Failure happened on 'Source' side. 'Type=Microsoft.Data.SqlClient.SqlException,Message=An expression of non-boolean type specified in a context where a condition is expected, near 'updated'.,Source=Framework Microsoft SqlClient Data Provider,'

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,608 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. santosh 0 Reputation points
    2025-05-21T12:37:07.7833333+00:00

    Screenshot 2025-05-21 180538

    adding correct image.


  2. J N S S Kasyap 3,380 Reputation points Microsoft External Staff Moderator
    2025-05-21T13:36:43.4766667+00:00

    Hi @santosh

    An expression of non-boolean type specified in a context where a condition is expected, near 'updated'

    This indicates a SQL syntax issue in your source query. This typically occurs when a non-boolean expression is used in a context that expects a boolean condition, such as a WHERE clause.

    Review the source query or filter expression in your ADF copy activity, and ensure that the WHERE clause contains a valid boolean condition.

    Please help me answer the below questions we can provide the best possible solution

    1. Can you share the exact source SQL query or filter expression you're using in the copy activity?
    2. Which part of the query is causing the error (e.g., the WHERE clause or a dynamic expression)?
    3. Have you recently made any changes to the source query or the schema that might have introduced this error?
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.