Pipeline Issue

Rohit Kulkarni 676 Reputation points
2021-03-01T18:40:06.76+00:00

Hello Team, I am trying to create a view in the SQL Server after uploading the data in csv format from one container(raw) to staging zone by entering the parameter for Company.it is working perfectly if I pass the parameter for Table name is like "Vendor". if i pass the parameter for the table name called "Vendor Amount" then it is giving below error in lookup(Drop View).I think because there is a space between Vendor and Amount . Failure happened on 'Source' side. ErrorCode=SqlOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A database operation failed with the following error: 'Incorrect syntax near 'Amount'.',Source=,''Type=System.Data.SqlClient.SqlException,Message=Incorrect syntax near 'Amount'.,Source=.Net SqlClient Data Provider,SqlErrorNumber=102,Class=15,ErrorCode=-2146232060,State=1,Errors=[{Class=15,Number=102,State=1,Message=Incorrect syntax near 'Amount'.,},],' But the view is getting created in . Please refer below my pipeline : ![73050-image.png][1] [1]: /api/attachments/73050-image.png?platform=QnA

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

3 additional answers

Sort by: Most helpful
  1. Rohit Kulkarni 676 Reputation points
    2021-03-02T05:43:33.817+00:00

    Hello Vaibhav, I tried passing the parameter like [Vendor Amount].Please refer the below error in azure function: Call to provided Azure function 'CreateSynapseOnDemandViewFromModelJson' failed with status-'InternalServerError' and message - 'Invoking Azure function failed with HttpStatusCode - InternalServerError.'. ![73180-image.png][1] [1]: /api/attachments/73180-image.png?platform=QnA Regards RK


  2. Rohit Kulkarni 676 Reputation points
    2021-03-02T06:09:45.833+00:00

    Thanks Vaibhav forgiving me hint.

    There was a issue in the lookup Activity.

    IF EXISTS (SELECT 1 FROM sys.objects o JOIN sys.schemas s on o.schema_id = s.schema_id WHERE o.type = 'V' AND o.name = '@{pipeline().parameters.EntityName}' AND s.name = '@{pipeline().parameters.TargetSchema}' ) DROP VIEW [@{pipeline().parameters.TargetSchema}].[@{pipeline().parameters.EntityName}]

    SELECT 1;

    I had used

    Before :
    DROP VIEW @{pipeline().parameters.TargetSchema}.@{pipeline().parameters.EntityName}

    And after rectified and mentioned [] it got worked:

    DROP VIEW [@{pipeline().parameters.TargetSchema}].[@{pipeline().parameters.EntityName}]

    Regards
    RK


  3. Rohit Gharde 6 Reputation points
    2021-08-31T05:10:31.907+00:00

    I had made pipeline (custom batch) to invoke python script from blob storage. the execution is getting failed. and the error 2010 is showing up.
    Error code : 2010
    Failure type : User configuration issue
    Details : Hit unexpected exception, please retry. If the problem persists, please contact Azure Support"
    Source

    0 comments No comments