![]() ![]() |
Datamapper: Tracking errors in maps |
Jun 19 2009, 05:37 AM
Post
#1
|
|
|
Regular Contributor ![]() ![]() ![]() Group: Members Posts: 46 Joined: 6-November 08 From: Colombo, Sri Lanaka Member No.: 55 |
Hi All,
I'm using XIB 2.1.1 + SP3 and Datamapper 3.1.0 According to the Datamapper guide, it is mentioned that we can track errors in mapping as below ** To enable the error tracking functionality in a map program the MAPERRORTRACKING directive is set in the map when generating the map program.To implement error tracking Add //MAPERRORTRACKING in the description field of the Map definition. and i'm using sample code given in the doc it self # --------------------------------------- Main - Event DECLARE PUBLIC STATEMENT Event IN $event DATA IN $data { # User added code IF $event = $DMevent_ErrorWriteOutput { DECLARE $mapObjName STRING; DECLARE $errorTxt STRING; DECLARE $outputDataTreePath STRING; DECLARE $inputDataTreePath[] STRING; DECLARE $fieldDescription[] STRING; FOR $ix = 1 TO DMU.GetNrOfErrors() { DMU.GetError $ix MAPOBJNAME $mapObjName ERROR $errorTxt DATATREEPATH $outputDataTreePath; LOG FORMAT("Error(%d): %s", $ix, $errorTxt) TYPE "DEBUG"; MAPTRACKING.GetCorrelations Map.Name() & ".x4" OUTPUT $outputDataTreePath OUTOBJECT $mapObjName INPUT $inputDataTreePath DESCRIPTION $fieldDescription; FOR $ix = 1 TO ARRAYSIZE($inputDataTreePath) { LOG FORMAT("Field %s, originated from field %s, descr: %s", $outputDataTreePath, $inputDataTreePath[$ix], $fieldDescription[$ix]) TYPE "DEBUG"; } } } # End user added code RETURN; } 1. But when i try to build it it throws some errors, have any once come across this ? Errors: mainDMgen Done generating source code Generation OK ! Compiling Datamapper Component... /opt/Axway/xib/xib/local/user/kavindra/4edi/pgm/dm_ix_nmsblacklist_csv_to_xml.s4: 230: ERROR: function "OUTPUT.GetNrOfErrors" is not declared /opt/Axway/xib/xib/local/user/kavindra/4edi/pgm/dm_ix_nmsblacklist_csv_to_xml.s4: 241: ERROR: statement "OUTPUT.GetError" is not declared 3. Are there any patches available to solve this or any one know how to eliminate the errors ? -------------------- Kavindra Kulathilake
Mobile: +94 777 419 025 Tel: +94 11 2662255-8, 2662331-2 Fax:+94 11 2662333, 2662334 kavindra.kulathilake@ebuilder.lk www.ebuilder.com eBuilder Technology Centre 95, Dr. N M Perera Mawatha, Colombo 8 ,Sri Lanka MSN : Kavindra_Kulathilaka@hotmail.com |
|
|
|
![]() ![]() |
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:
|
Lo-Fi Version | Time is now: 30th July 2010 - 01:11 PM |
Skin designed by IPB Forum Skins
Expand / Collapse Navigation



Jun 19 2009, 05:37 AM


