Difference between revisions of "ConnectR Interface Troubleshooting"

From Galen Healthcare Solutions - Allscripts TouchWorks EHR Wiki
Jump to navigation Jump to search
(minor edit to Notes section)
Line 21: Line 21:
 
== Notes ==
 
== Notes ==
 
If you are encountering SQL formatting, syntax, or other errors when trying to run the script check the following:
 
If you are encountering SQL formatting, syntax, or other errors when trying to run the script check the following:
#1. There should be a comma after the name of the stored procedure.  For example, the beginning of the query should read, "sp_idxgenspcall FileAppoinment_CMS,"
+
#There should be a comma after the name of the stored procedure.  For example, the beginning of the query should read, "sp_idxgenspcall FileAppoinment_CMS,"
#2. The text immediately following this comma should be enclosed in a single quotation, and the corresponding single closing quotation should be the last character input as part of the query.
+
#The text immediately following this comma should be enclosed in a single quotation, and the corresponding single closing quotation should be the last character input as part of the query.
#3.  Make sure the results of the query in step 5 are sent to text, as this information is needed for step #7.
+
#Make sure the results of the query in step 5 are sent to text, as this information is needed for step #7.

Revision as of 19:22, 21 March 2011

Debug Procedure

1. Ensure Error Message Definitions are loaded into ConnectR database. Run ConnectR Error Message script available via Allscripts Interface Team Wiki: http://intwiki/wiki/index.php?title=ConnectR_ErrorMessage (Allscripts VPN access required).
2. Copy command from Target Message Grid into SQL Query window
ConnectR Debug Documentation Img2.jpg

3. Remove beginning and end parens
4. Find ‘ -> Replace with ‘’
Note that SQL does not process double quotation marks. Find Single Quotation Mark and replace with two Single Quotations Marks. ConnectR Debug Documentation Img6.jpg

5. Run sp_idxgenspcall, sp_name (for example, FileApppointment_CMS), with the remaining SQLCommand encapsulated in single quotes (both at the beginning and end). Before you execute this query, make sure the results are set to 'Results to Text'.
6. Copy text results & paste into new query window
ConnectR Debug Documentation Img7.jpg

7. Add begin tran/rollback tran to query. Execute query and Utilize this information to root cause the error.

Example

In the example shown below, required fields were present in the Stored Procedure called by the mapping, but were not present in the current Interface mapping. Thus the outcome was that the target message had to be changed to include the additional fields.
ConnectR Debug Documentation Img5.jpg

Hint

Cycle systems after changing a mapping
ConnectR Debug Documentation Img8.jpg

Notes

If you are encountering SQL formatting, syntax, or other errors when trying to run the script check the following:

  1. There should be a comma after the name of the stored procedure. For example, the beginning of the query should read, "sp_idxgenspcall FileAppoinment_CMS,"
  2. The text immediately following this comma should be enclosed in a single quotation, and the corresponding single closing quotation should be the last character input as part of the query.
  3. Make sure the results of the query in step 5 are sent to text, as this information is needed for step #7.