Troubleshooting for API_Request | AWS | API Integration - Troubleshooting for API_Request - Teradata Vantage

Teradata Vantageā„¢ - API Integration Guide for Cloud Machine Learning

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Vantage
Release Number
1.4
Published
September 2023
ft:locale
en-US
ft:lastEdition
2023-09-28
dita:mapPath
mgu1643999543506.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
mgu1643999543506
API_Request provides two ways to troubleshoot the issues:
  1. Syslog, All error and important information is written to syslog of the database node;
  2. Problems can be debugged using the same UDF debugging techniques available.

Steps for Debugging

  1. Create a temporary trace table in the session.
    CREATE GLOBAL TEMPORARY TRACE TABLE FNC_Trace( Mandatory_Column1 BYTE(2), Mandatory_Column2 INTEGER, Trace_Output VARCHAR(1000)) ON COMMIT PRESERVE ROWS;
  2. Turn on tracing for the session.
    SET SESSION FUNCTION TRACE USING '2' FOR TABLE FNC_Trace; 
  3. Run the test query with debug NVP.
  4. Review the trace.
    sel * from FNC_Trace order by 1,2;

Common Issues and Causes

  • Wrong AWS authorization keys.
  • Wrong content_type argument.
  • Difference between Teradata table or query columns and column requirement for SageMaker endpoint.

    Input requirement for SageMaker model must match the number of columns, datatype and the order of Teradata Input Table or Query.