Franco Quiros Posted May 21, 2019 Share Posted May 21, 2019 I created a Native Query Block connected to SQL Data Base, justo to insert 1 row to a test table, when i tested the Native Query block, the insert works fine, but when i run the solution which contains the Native Query Block, the insert is not done, and the solution didn't show any error. I guess something is missing in my configuration or something is wrong. Could you help me, thanks. I am working with tibco scribe on line, trial version. Link to comment Share on other sites More sharing options...
Ash Arendsz Posted June 4, 2019 Share Posted June 4, 2019 Hi, Could you share your use case to run insert query on a native query block When you use a native query block, remember that it needs to return at least 1 result in order to validate and work as well as you need a "For each result"block attached to the native query block.. Alternatively you could use "TOOLS scribe labs connector"or a dummy native sql query such as : SELECT 1 AS '1' ; in order to trigger your map run and then use a "Create block"to do an insert into a sql table. Other ways could be: using a stored procedure (need to turn this option on with connection parameters), see help: https://help.scribesoft.com/scribe/en/#sol/conn/sqlserver.htm%3FTocPath%3DTIBCO%2520Scribe%25C2%25AE%2520Online%7CTIBCO%2520Scribe%25C2%25AE%2520Online%2520Connectors%2520Guide%7C_____23 a workaround could be using this in your native query block: INSERT INTO [scribetest].[dbo].[Table1](ID) VALUES ('testrec4'); SELECT 1 AS '1' ; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now