go to post ED Coder · Aug 20, 2019 Hi Julius, updated the statements to include the W variant and still doesnt work for me.I think it could be something with the statement, because a select statement doesnt give me an error. Can you spot anything in the following error message?
go to post ED Coder · Aug 19, 2019 Hi Julius, Thank youYes, the driver installed is matching the cache architecture and using WINSQL I am able to successfully run the SELECT and INSERT query.So its something in my code I guess? Will keep tryingRegards,Eric
go to post ED Coder · Aug 19, 2019 Thank you Eduard,Same error running a SELECT statement as well.Is there anything that you suggest before I consider having to make changes to the conf file?Regards,Eric
go to post ED Coder · Aug 19, 2019 Hi Eduard, thank you. I tried the set param binding as well but it seems that it could be an issue with my Gateway connection.I tried linking the table and then testing my query and got the following error. The connections are all fine so dont know what is causing thisAny advice or suggestions?Regards,Eric
go to post ED Coder · Aug 19, 2019 Hi Julius, thank you for responding to my query. It seems like it is failing on "EXECUTE". The Error is : ERROR #6022: Gateway failed: ExecuteTried the set Param to bind the parameters and getting the same error. Any suggestions what could be causing this? The user has full access to the Database. It is a MYSQL DB, I have had no issues connecting to a SQL DB using the same steps.ODBC Connection is successful. Driver I am using is MySQL ODBC 8.0 Unicode DriverAny suggestions or advice on what I could check? I am able to ping the server as wellRegards,Eric
go to post ED Coder · Aug 16, 2019 Hi Guillaume, thank you so much for the screenshots and explaining it to me. I was able to establish the connection and no errors when my query runs but the data doesnt get updated in mySQL DB. Can you advice if my insert statement is correct? set pQuery = "INSERT INTO TABLENAME(column1, column2, column3, column4, column5) " set pQuery = pQuery_"VALUES("_value1_","_value2_","_value3_","_value4_","_value5_")" set sc=conn.Prepare(hstmt,pQuery) set sc=conn.Prepare(hstmt,pQuery) if $$$ISERR(sc) quit sc //Execute statement set sc=conn.Execute(hstmt) if $$$ISERR(sc) quit sc
go to post ED Coder · Aug 16, 2019 Thank You Julius, I was able to connect to the mySQL DB using the SQL gateway Connection Class. I assumed that there would be a different class to connect.
go to post ED Coder · Aug 14, 2019 You are spot on Jeff. Yes, I was thinking if I should update the schema.. but didnt do it. The message we are getting is an ORU_01 but has the EVN segment. Thank You, now I know what caused my issue too.
go to post ED Coder · Aug 9, 2019 Yes Jeff, I was looking at the cloned message that was sent across. I removed by index now, and it works. so looking good. Thank you so much for guiding me on this
go to post ED Coder · Aug 8, 2019 Was able to solve this by the following code.//create a copy of the requests newREQ = request.%ConstructClone()s ind = ""s EVNSeg = newREQ.FindSegment("EVN",.ind)if EVNSeg '= ""{s res = newREQ.RemoveSegmentAt(ind)}s request = newREQQuit request
go to post ED Coder · Aug 8, 2019 Hi Jeff, I tried that, but I am losing the rest of my message. I must be doing something wrong. Can you advice? Following is the error I am getting once I remove segment and pass the messsage
go to post ED Coder · Aug 2, 2019 the message coming in is an ORU_R01 message, and contains an EVN segment, however in the schema 2.4 there is no EVN segment in the ORU message structure. so how can I remove the segment, is there a way to do that? Sorry for the hassle. I want to pass this message to the third party system having the EVN segment removed. Will keep trying but if you have any ideas would apprecaite.Thank you
go to post ED Coder · Aug 1, 2019 Hi Julian, thank you for pointing that out to me. Can you advice how I can remove that segment?
go to post ED Coder · Jul 16, 2019 Thank You so much Jeff.. This has been so helpful. I appreciate your help in guiding me on this.
go to post ED Coder · Jul 16, 2019 Hi Jeff, thank you so much for guiding me on this. I tried to do it the DTL way, but getting an error. Can you advice what I am missing? Tried adding the segments but still getting the same error.Unfortunately, the vendors want it that way that the notes are in separate OBX segments. they are charging us a bomb if they need to make changes so trying to modify itBelow is the error I am getting:
go to post ED Coder · Jul 16, 2019 I did the following so far:1. Split the OBX: 5 into a list of valuesI want to now insert each of them into new OBX segments: Highlighted where I have an issue.
go to post ED Coder · Jul 16, 2019 Hi Jeff, thank you for responding to my query. Yes, I found that when I output to string the '.' doesnt appear. so am trying to do it in a different way. Do you by any chance have a sample code to build new message segments?I was able to split the messages, but now trying to find out how to create additional OBX segments. I tried InsertSegmentAt, NewSegment, but all of them are giving me errors.Thank you once again
go to post ED Coder · Jan 31, 2019 sorry everyone, I was able to fix the issue. it was an issue with the password to the database. So sorry. thank you for the input. Would have been nice to have a clearer error message though... didnt show me anything. to indicate that the connection was an issue
go to post ED Coder · Jan 31, 2019 The above error is what I get from the prepare statement. It works perfect in our test environment but on deploying to the LIVE server it gives this error. It is the same code copied over. Baffles me.
go to post ED Coder · Jan 30, 2019 Hi John, thank you for responding to my query. I have added a brief structure of my code in the question now. Would appreciate some help on this