syndesis: Datamapper fails with split in some cases

This is a…


[ ] Feature request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Documentation issue or request

Description

We have had problems with datamapper causing errors when using split and aggregate steps. You can import this integration to see the error: https://drive.google.com/open?id=1aNSEt21U-NW8tyUrGo5JbL23V_tkNMQc Since it’s an API provider, you need to invoke the flow with:

curl -X POST <url> -d '[{"id":2,"completed":1,"task":"task2"},{"id":3,"completed":1,"task":"task3"}]'

This is the resulting stacktrace (there are multiple errors so choose one you find most useful 😄): i-todo-integration-post-collection-2-6qkd4.log

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 33 (32 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks @gashcrumb this resolved my issue, let’s see if it does the same to @mmelko

@gashcrumb small correction: this is the correct schema with the POST multiple operation

Steps to reproduce the API provider case: Create API Provider from this schema Implement flow POST multiple tasks Add split Add aggregate In between split and aggregate ad DB connection with query INSERT INTO todo (id, completed, task) VALUES (:#id, :#completed, :#task) Add data mapper between split and DB and map id -> id, completed -> completed, task -> task Add data mapper after DB and map the properties the same way Publish the integration and run the CURL curl -X POST <url> -d '[{"id":2,"completed":1,"task":"task2"},{"id":3,"completed":1,"task":"task3"}]'

EDIT: updated export TODO Integration post collection-export(1).zip