question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Salesforce connector: Missing option value for Id or sObjectIdName exception

See original GitHub issue

This is a…


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

The problem

Running Periodic DB -> Datamapper -> Salesforce Create or update produces the following error.

db-sf-export.zip

 Missing option value for Id or sObjectIdName

2018-04-12 13:41:53.489 ERROR 1 --- [r://integration] o.a.camel.processor.DefaultErrorHandler  : Failed delivery for (MessageId: i-L9u4pA9_SfSdQKrTZ_fz on ExchangeId: i-L9u4p1__SfSdQKrTZ_cz). Exhausted after delivery attempt: 1 caught: org.apache.camel.component.salesforce.api.SalesforceException: Missing option value for Id or sObjectIdName
--
  |  
  | Message History
  | ---------------------------------------------------------------------------------------------------------------------------------------
  | RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
  | [i-L9u4RoLxQYNXsa8Q] [i-L9u4RoLxQYNXsa8Q] [timer://integration?period=60000                                              ] [       740]
  | [i-L9u4RoLxQYNXsa8Q] [-L9u4BfOaKGOj3REgD] [Processor@0x7797f462                                                          ] [         0]
  | [i-L9u4RoLxQYNXsa8Q] [process2          ] [Processor@0x235502f8                                                          ] [         2]
  | [i-L9u4RoLxQYNXsa8Q] [process3          ] [Processor@0x7296d3cc                                                          ] [         0]
  | [i-L9u4RoLxQYNXsa8Q] [-L9u4JHUaKGOj3REgD] [atlas:mapping-step-2.json?sourceMapName=Syndesis.CAPTURED_OUT_MESSAGES_MAP    ] [       544]
  | [i-L9u4RoLxQYNXsa8Q] [-L9u4JHUaKGOj3REgD] [Processor@0x71935d8d                                                          ] [         0]
  | [i-L9u4RoLxQYNXsa8Q] [process4          ] [Processor@0x235502f8                                                          ] [         0]
  | [i-L9u4RoLxQYNXsa8Q] [process5          ] [Processor@0x396f9339                                                          ] [         0]
  | [i-L9u4RoLxQYNXsa8Q] [-L9u4EBjaKGOj3REgD] [salesforce-3                                                                  ] [         1]
  |  
  | Stacktrace
  | ---------------------------------------------------------------------------------------------------------------------------------------
  |  
  | org.apache.camel.component.salesforce.api.SalesforceException: Missing option value for Id or sObjectIdName
  | at io.syndesis.connector.salesforce.customizer.ForUpdateCustomizer.beforeProducer(ForUpdateCustomizer.java:57) ~[connector-salesforce-1.3-SNAPSHOT.jar!/:1.3-SNAPSHOT]
  | at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) [camel-core-2.21.0.jar!/:2.21.0]
  | at io.syndesis.integration.component.proxy.ComponentProxyProducer.process(ComponentProxyProducer.java:44) ~[integration-component-proxy-1.3-SNAPSHOT.jar!/:1.3-SNAPSHOT]
  | at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) ~[camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:711) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:634) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:248) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.Splitter.process(Splitter.java:114) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197) [camel-core-2.21.0.jar!/:2.21.0]
  | at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79) [camel-core-2.21.0.jar!/:2.21.0]
  | at java.util.TimerThread.mainLoop(Timer.java:555) [na:1.8.0_151]
  | at java.util.TimerThread.run(Timer.java:505) [na:1.8.0_151]


Expected behavior

Integration is deployed running without errors.

Tasks involved / Steps to Reproduce

  1. Periodic SELECT * FROM CONTACT
  2. Salesforce - Create or update record -> Contact with custom field
  3. Datamapper - all fields mapped
  4. Profit

Cc @zregvart

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
gashcrumbcommented, Apr 13, 2018

Wonder if there should be some mention on the page where you select the ID field that it needs to have data mapped to it, it’s probably not that obvious currently why this is needed.

0reactions
zregvartcommented, Apr 16, 2018

I’ve created #2397 feel free to comment over there if I’ve missed anything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fuse Online integration fails to update a Salesforce Case record ...
org.apache.camel.component.salesforce.api.SalesforceException: Missing option value for Id or sObjectIdName at io.syndesis.connector.salesforce.customizer.
Read more >
How to solve this select option - Salesforce Developers
I am fetching the values of account. Now when I selected. One record related..Id should display how can I do that? The code...
Read more >
Salesforce - Apache Camel
Communicate with Salesforce using Java DTOs. ... Configuring Component Options ... Default replayId setting if no value is found in initialReplayIdMap.
Read more >
SalesforceEndpointBuilderFactory ... - javadoc.io
Default replayId setting if no value is found in initialReplayIdMap. ... Custom Jetty Http Client to use to connect to Salesforce.
Read more >
camel-salesforce-sink.json - Google Git
"class": "org.apache.camel.kafkaconnector.salesforce. ... "description": "Default replayId setting if no value is found in initialReplayIdMap",.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found