Quantcast
Channel: SCN : Popular Discussions - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 1302

Error: Table has no entry in the ml_table table

$
0
0

Hi Experts,

I am trying to insert(upload_insert) data into a table in HCP using RDS from SQL Central on my laptop

 

While trying to do so i am getting the error "Table 'FT_OBDII' has no entry in the ml_table table"

 

 

LOG FROM HCP:

 

W. 2016-03-28 11:46:18. <90> [10017] The consolidated and remote databases have different timestamp precisions. Consolidated database timestamps are precise to 0 digit(s) in the fractional second while the remote database timestamps are precise to 6 digit(s)

W. 2016-03-28 11:46:18. <90> [10018] Resolve the timestamp precision mismatch by setting the SQL Anywhere DEFAULT_TIMESTAMP_INCREMENT option on the remote database to 1000000 and TRUNCATE_TIMESTAMP_VALUES to 'On'. UltraLite remotes must set the TIMESTAMP_INCREMENT option to 1000000

W. 2016-03-28 11:46:18. <90> [10020] The timestamp precision mismatch may affect upload conflict detection. Use the -zp option to cause the MobiLink server to use the lowest timestamp precision for conflict detection purposes

W. 2016-03-28 11:46:18. <90> [10015] Table 'FT_OBDII' has at least one timestamp column. Due to a timestamp precision mismatch, uploaded timestamps can lose precision, defeating download filtering

E. 2016-03-28 11:46:18. <90> [-10101] Table 'FT_OBDII' has no entry in the ml_table table

 

ML_SCRIPTS:

 

call RDSUSER.ml_add_table_script( 'ABC_XYZ_V1.0', 'FT_ODBII', 'upload_insert','INSERT INTO "ABC_XYZ"."ABC_XYZ_PRJ.TABLES.FACT::FT_ODBII"("VEHICLE_IDENTIFICATION_NUMBER",

  "DATE_TIME","SOC_PERCENTAGE","ODOMETER","MOTOR_RPM_VALUE","QUICK_CHARGE_COUNT","L1_L2_CHARGE_COUNT","BATTERY_VOLTAGE", "BATTERY_STATE_OF_HEALTH",

  "BATTERY_AHR","TIRE_PRESSURE_FRONT_LEFT ","TIRE_PRESSURE_FRONT_RIGHT","TIRE_PRESSURE_REAR_LEFT ","TIRE_PRESSURE_REAR_RIGHT",

  "BATTERY_TEMP_SENSOR_1","BATTERY_TEMP_SENSOR_2","BATTERY_TEMP_SENSOR_3","BATTERY_TEMP_SENSOR_4","EVSE_CHARGER_STATUS",

  "CLIMATE_CONTROL_SETTING","ECO_DRIVER_SETTING","DRIVER_ECONOMY","KWH_REMAINING_LEAF_BATTERYPACK","DRIVING_RANGE",

  "WATTHOURS_USEDBY_LEAF_AFTER_RESET","VOLTAGE_DIFFERENCE","TEMPERATURE_DIFFERENCE","TIME_TO_FINISH_CHARGING",

  "LAST_TRIP_SOC_START_PERCENTAGE","LAST_TRIP_SOC_STOP_PERCENTAGE")

    VALUES({ml r.VEHICLE_IDENTIFICATION_NUMBER},{ml r.DATE_TIME},{ml r.SOC_PERCENTAGE},{ml r.ODOMETER}, {ml r.MOTOR_RPM_VALUE},

   {ml r.QUICK_CHARGE_COUNT},{ml r.L1_L2_CHARGE_COUNT},{ml r.BATTERY_VOLTAGE},{ml r.BATTERY_STATE_OF_HEALTH},{ml r.BATTERY_AHR},

   {ml r.TIRE_PRESSURE_FRONT_LEFT},{ml r.TIRE_PRESSURE_FRONT_RIGHT},{ml r.TIRE_PRESSURE_REAR_LEFT},{ml r.TIRE_PRESSURE_REAR_RIGHT},

   {ml r.BATTERY_TEMP_SENSOR_1},{ml r.BATTERY_TEMP_SENSOR_2},{ml r.BATTERY_TEMP_SENSOR_3},{ml r.BATTERY_TEMP_SENSOR_4},

   {ml r.EVSE_CHARGER_STATUS},{ml r.CLIMATE_CONTROL_SETTING},{ml r.ECO_DRIVER_SETTING},{ml r.DRIVER_ECONOMY},

   {ml r.KWH_REMAINING_LEAF_BATTERYPACK},{ml r.DRIVING_RANGE},{ml r.WATTHOURS_USEDBY_LEAF_AFTER_RESET}, {ml r.VOLTAGE_DIFFERENCE},

   {ml r.TEMPERATURE_DIFFERENCE},{ml r.TIME_TO_FINISH_CHARGING},{ml r.LAST_TRIP_SOC_START_PERCENTAGE},

   {ml r.LAST_TRIP_SOC_STOP_PERCENTAGE})');

 

 

 

call RDSUSER.ml_add_table_script( 'ABC_XYZ_V1.0', 'FT_ODBII', 'download_delete_cursor', '--{ml_ignore}');

call RDSUSER.ml_add_table_script( 'ABC_XYZ_V1.0', 'FT_ODBII', 'download_cursor','--{ml_ignore}');

call RDSUSER.ml_add_table_script( 'ABC_XYZ_V1.0', 'FT_ODBII', 'upload_update', '--{ml_ignore}');

call RDSUSER.ml_add_table_script( 'ABC_XYZ_V1.0', 'FT_ODBII', 'upload_delete', '--{ml_ignore}');

 

 

ENTRY EXISTS In ML_TABLE And So Does The Relevant Scripts(Please check screenshots below):

RDS_ML_TABLE.PNG

RDS_ML_TABLE_SCRIPT.PNG

ML_SCRIPT.PNG

 

I have gone through some scn threads as per which the table names are case sensitive and i have verified the case for my table in HANA and in SQL Central and are both UPPER CASE

 

IN SQL CENTRAL:

FT_OBDII.PNG

Publication_FT_OBDII.PNG

 

Please help in resolving the issue.

 

Thanks & Regards

Madhusudan


Viewing all articles
Browse latest Browse all 1302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>