Skip to main content
Nintex Community Menu Bar

Query Sql Control does not works

  • Feb 20, 2017 12:04 PM UTC
  • 8 replies
  • 63 views
  • Translate All

Forum|alt.badge.img+4

Hi All,

         I am using a query sql control in my workflow to save data to an external database. I checked with the connection and execute query with some direct data. It inserts perfectly. But when i give the Item parameters or workflow parameters it does not inserts. The workflow completes successfully all the steps. Data is not getting inserted.

attached my configuration screen of query sql.

Please Help me 

Thanks

8 replies

Forum|alt.badge.img+12
  • Feb 20, 2017 1:26 PM UTC

Hello,


If you turn on error handling within the action by logging out any error, do you get anything that is going unnoticed?  

Translate

Forum|alt.badge.img+4
  • Author
  • Feb 22, 2017 4:59 AM UTC

I am getting the error Incorrect syntax near 'sql'.

insert into Requests.dbo.Req(ReqNo,Title) values ({ItemProperty:Title},{ItemProperty:Request_x0020_No})

This is my query, is there any mistake in this query?

Please help me.

Translate

Forum|alt.badge.img+14
  • Scholar
  • Feb 22, 2017 8:34 AM UTC

don't you have swapped columns? they doesn't seems to follow naming of table columns. you might hit incorrect datatypes problem.

Translate

Forum|alt.badge.img+4
  • Author
  • Feb 22, 2017 8:38 AM UTC

Yes that mistake I noticed and changed.

Now i am trying to insert only one column 

insert into Requests.dbo.Req(Title) values({ItemProperty:Title});

but here i am getting an invalid column 'Test Title' error.

'Test Title' is the Title name entered from form.

Translate

Forum|alt.badge.img+14
  • Scholar
  • Feb 22, 2017 8:56 AM UTC

I would say apostrophes are missing

insert into Requests.dbo.Req(Title) values("{ItemProperty:Title}");

Translate

Forum|alt.badge.img+4
  • Author
  • Feb 22, 2017 9:03 AM UTC

Yes. Its Missing Single Quotes not double quotes. Thanks for the clue

Translate

Forum|alt.badge.img+12
  • Feb 22, 2017 3:01 PM UTC

This is what I would've suggested, but you guys beat me to it.  Good work.

Translate

Forum|alt.badge.img+12
  • Feb 23, 2017 3:59 AM UTC

Glad you solved the issue, can you please mark the answer you found most useful in helping you solve this issue correct.

Translate