Custom EDI Parser snap output view not recognised by mapper snap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2017 05:21 PM
we developed a custom snap to parse EDI 835 data on Java. puzzle is how to map Java object on mapper snap. when we add a mapper snap next to EDI parser, Input schema on mapper is blank. But when I add a copy snap in between EDI Parser custom snap and mapper, am able to see the input schema in mapper.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2017 09:44 AM
Did you ever figure out the issue?
Bumping up if not since there were no comments yet.
Diane Miller

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2017 10:04 AM
I helped out on this one. Yes, I believe the root cause was successfully identified.
A custom object was being used directly as the Document data and hence this behavior was experienced.
To ensure compatibility, an instance of SnapLogic’s Jackson ObjectMapper
can be injected and then used to create a JSON-compatible version of your custom object:
@Inject
private ObjectMapper mapper;
Instead of:
outputViews.write(documentUtility.newDocument(edi835Message));
do this:
outputViews.write(documentUtility.newDocument(mapper.convertValue(edi835Messsage, Map.class));
This ensures that the Document written to the output view contains a Map, which the Mapper will then be able to introspect and display in its input schema.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2017 01:59 PM
Thank you for helping us out…

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2017 08:17 PM
