Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-11767

AWS dynamo Db - query action output with Atlasmap - AtlasException: Errors: [Cannot read a field '/email' of JSON document

XMLWordPrintable

    • % %
    • Hide
      • Create an integration with DynamoDb as middlestep, with the query action operation
      • End step - e.g. postgres DB, with insert:
        INSERT INTO CONTACT(first_name, company) VALUES(:#first_name, :#company)
        
      • Add datamapper to map the dynamoDB output to the end step
      • Fire the integration and observe the mapping error.
      Show
      Create an integration with DynamoDb as middlestep, with the query action operation End step - e.g. postgres DB, with insert: INSERT INTO CONTACT(first_name, company) VALUES(:#first_name, :#company) Add datamapper to map the dynamoDB output to the end step Fire the integration and observe the mapping error.
    • Fuse 7.5 Sprint 54 - Interim

      There seems to be an error when trying to create an integration, where the output of DynamoDb query would be utilized in another connection, with the need to use datamapper. The datamapper throws following exception:

      io.atlasmap.api.AtlasException: Errors: [Cannot read a field '/email' of JSON document '-Lplbh513fVhE9i-WyUk', document is null: docId='-Lplbh513fVhE9i-WyUk', path='/email'], [Cannot read a field '/name' of JSON document '-Lplbh513fVhE9i-WyUk', document is null: docId='-Lplbh513fVhE9i-WyUk', path='/name'], 
      	at org.apache.camel.component.atlasmap.AtlasEndpoint.onExchange(AtlasEndpoint.java:262) ~[camel-atlasmap-1.42.3.jar!/:1.42.3]
      	at org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:71) ~[camel-core-2.21.0.fuse-750007.jar!/:2.21.0.fuse-750007]
      	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[camel-core-2.21.0.fuse-750007.jar!/:2.21.0.fuse-750007]
      

      The full log, together with screenshots and exported integration is attached.

              mariasde Maria Arias de Reyna Dominguez (Inactive)
              tplevko@redhat.com Tomas Plevko
              Tomas Plevko Tomas Plevko
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: