wso2 / integration-studio-examples

Example project files for WSO2 Integration Studio
Apache License 2.0
34 stars 21 forks source link

[Import Contacts Asynchronously] Issues in this project #110

Open isuruuy429 opened 4 years ago

isuruuy429 commented 4 years ago

Description:

  1. This is not a multi module maven project.
  2. This path (https://github.com/wso2/integration-studio-examples/tree/master/migration/mule/import-contacts-asynchronously/SalesforceImportContactsAsynchronously) does not contain a resource folder which contains the contacts.csv file as mentioned in the README.md
  3. Once it runs the application, does not get the expected output.

Expected:

HTTP/1.1 201 Created
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Robots-Tag: none
Cache-Control: no-cache,must-revalidate,max-age=0,no-store,private
X-Content-Type-Options: nosniff
Public-Key-Pins-Report-Only: ...
Set-Cookie: BrowserId=...; domain=.salesforce.com; path=/; expires=Wed, 28-Apr-2021 08:43:39 GMT; Max-Age=31536000
Vary: Accept-Encoding
X-XSS-Protection: 1; mode=block
Content-Type: application/json;charset=UTF-8
Expect-CT: max-age=86400, report-uri="https://a.forcesslreports.com/Expect-CT-report/nullm"
Sforce-Limit-Info: api-usage=18/15000
Date: Tue, 28 Apr 2020 08:43:40 GMT
Transfer-Encoding: chunked

{"hasErrors":false,"results":[{"referenceId":"John","id":"0032x000002yF6cAAE"},{"referenceId":"Jane","id":"0032x000002yF6dAAE"}]}

Actual:

[2020-05-06 13:20:39,769]  INFO {org.apache.synapse.mediators.builtin.LogMediator} - Message = File is Read
[2020-05-06 13:20:39,769]  INFO {API_LOGGER.SalesforceImportContactAsynchronously} - Message = File is Read
[2020-05-06 13:20:41,599]  INFO {org.apache.axis2.transport.jms.JMSSender} - JMS Sender started
[2020-05-06 13:20:41,600]  INFO {org.apache.axis2.transport.jms.JMSSender} - JMS Transport Sender initialized...
[2020-05-06 13:20:41,601]  INFO {org.apache.axis2.transport.mail.MailTransportSender} - MAILTO Sender started
[2020-05-06 13:20:41,602]  WARN {javax.mail} - expected resource not found: /META-INF/javamail.default.address.map
[2020-05-06 13:20:41,621]  INFO {org.apache.synapse.core.axis2.TimeoutHandler} - This engine will expire all callbacks after GLOBAL_TIMEOUT: 120 seconds, irrespective of the timeout action, after the specified or optional timeout
[2020-05-06 13:20:42,921]  INFO {org.apache.synapse.mediators.builtin.LogMediator} - To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:1bc0ccbb-de53-461a-a6ae-415ed04e6eae, Direction: request, Message = Contacts have been created in SFDC: , Payload: {"hasErrors":true,"results":[{"referenceId":"id","errors":[{"statusCode":"INVALID_EMAIL_ADDRESS","message":"Email: invalid email address: email","fields":["Email"]}]}]}
[2020-05-06 13:20:42,921]  INFO {API_LOGGER.SalesforceImportContactAsynchronously} - To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:1bc0ccbb-de53-461a-a6ae-415ed04e6eae, Direction: request, Message = Contacts have been created in SFDC: , Payload: {"hasErrors":true,"results":[{"referenceId":"id","errors":[{"statusCode":"INVALID_EMAIL_ADDRESS","message":"Email: invalid email address: email","fields":["Email"]}]}]}
[2020-05-06 13:21:02,953]  INFO {org.apache.synapse.mediators.builtin.LogMediator} - Message = Migration has been Completed
[2020-05-06 13:21:02,954]  INFO {API_LOGGER.SalesforceImportContactAsynchronously} - Message = Migration has been Completed