KB Article #190320

[MAPPING SERVICES] Datamapper compilation error

Problem

After imported a datamapper project or *.arc file in Mapping Services, an issue occurred when trying to deploy or simulate a datamapper map with option "recompile".

Errors could be seen in /Integrator/data/log/broadcast.log :
2025-04-15 09:47:24,918 [Thread-0 ] INFO L82 BasicImportLogger.info -
2025-04-15 09:47:24,923 [Thread-0 ] INFO L246 ExecProcess.outputLog - mainDMgen Done generating source code
2025-04-15 09:47:24,924 [Thread-0 ] INFO L82 BasicImportLogger.info - mainDMgen Done generating source code
2025-04-15 09:47:24,929 [Thread-0 ] INFO L246 ExecProcess.outputLog - Generation OK !
2025-04-15 09:47:24,929 [Thread-0 ] INFO L82 BasicImportLogger.info - Generation OK !
2025-04-15 09:47:24,934 [Thread-0 ] INFO L246 ExecProcess.outputLog - Compiling Datamapper Component...
2025-04-15 09:47:24,934 [Thread-0 ] INFO L82 BasicImportLogger.info - Compiling Datamapper Component...
2025-04-15 09:47:24,940 [Thread-0 ] INFO L246 ExecProcess.outputLog - /opt/b2bi/Integrator/local/user/b2bi_user/4edi/pgm/test_map_xml_realtimedata.s4:
17: ERROR: failed to open include file "test_extension.s4h": No such file or directory
2025-04-15 09:47:24,940 [Thread-0 ] INFO L82 BasicImportLogger.info - /opt/b2bi/Integrator/local/user/b2bi_user/4edi/pgm/test_map_xml_realtimedata.s4:
17: ERROR: failed to open include file "test_extension.s4h": No such file or directory
2025-04-15 09:47:25,015 [Thread-0 ] INFO L246 ExecProcess.outputLog - /opt/b2bi/Integrator/local/user/b2bi_user/4edi/pgm/test_map_xml_realtimedata.s4:
45: ERROR: record "XTOY_ATTRIBUTES.RoutingInfo" is not declared
2025-04-15 09:47:25,015 [Thread-0 ] INFO L82 BasicImportLogger.info - /opt/b2bi/Integrator/local/user/b2bi_user/4edi/pgm/test_map_xml_realtimedata.s4:
45: ERROR: record "XTOY_ATTRIBUTES.RoutingInfo" is not declared
2025-04-15 09:47:25,026 [Thread-0 ] INFO L246 ExecProcess.outputLog - /opt/b2bi/Integrator/local/user/b2bi_user/4edi/pgm/test_map_xml_realtimedata.s4: 661: ERROR: variable "XTOY_ATTRIBUTES.$RoutingInfoAttributeName" is not declared
2025-04-15 09:47:25,026 [Thread-0 ] INFO L82 BasicImportLogger.info - /opt/b2bi/Integrator/local/user/b2bi_user/4edi/pgm/test_map_xml_realtimedata.s4: 661: ERROR: variable "XTOY_ATTRIBUTES.$RoutingInfoAttributeName" is not declared
2025-04-15 09:47:25,031 [Thread-0 ] INFO L246 ExecProcess.outputLog - Errors were detected during compilation.
2025-04-15 09:47:25,031 [Thread-0 ] INFO L82 BasicImportLogger.info - Errors were detected during compilation.
2025-04-15 09:47:25,037 [Thread-0 ] INFO L246 ExecProcess.outputLog - See progress messages for details !!!
2025-04-15 09:47:25,037 [Thread-0 ] INFO L82 BasicImportLogger.info - See progress messages for details !!!


Resolution

Copy the missing attribute *.s4h files under /shared_local/4edi/include/ folder.