[ 
https://issues.apache.org/jira/browse/CAMEL-21901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17941897#comment-17941897
 ] 

Claus Ibsen commented on CAMEL-21901:
-------------------------------------

Oh s*** the replyId code is a bit messy in camel-salesforce

> Salesforce consumer endpoint query parameter fallBackReplayId not working
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-21901
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21901
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-salesforce
>    Affects Versions: 4.8.5, 4.10.2
>            Reporter: Alexei Cubata
>            Priority: Minor
>              Labels: salesforce
>             Fix For: 4.12.0
>
>
> I am using the Salesforce consumer to consume Platform Events:
> {{salesforce:subscribe:/event/Process_Orchestration_Data__e?initialReplayIdMap=#bean:mapBuilder&fallBackReplayId=-1}}
> fallBackReplayId endpoint query parameter is not working as expected.
> The consumer keeps using the Replay ID in initialReplayIdMap instead of 
> fallBackReplayId even though I see the log messages:
> {{[org.apa.cam.com.sal.int.str.SubscriptionHelper] (Camel (camel-1) thread #3 
> - SalesforceHttpClient) 400::The replayId \{111} you provided was invalid.  
> Please provide a valid ID, -2 to replay all events, or -1 to replay only new 
> events.}}
> {{[org.apa.cam.com.sal.int.str.SubscriptionHelper] (Camel (camel-1) thread #3 
> - SalesforceHttpClient) Falling back to replayId -1 for channel 
> /event/Process_Orchestration_Data__e}}
> but then again:
> {{[org.apa.cam.com.sal.int.str.SubscriptionHelper] (Camel (camel-1) thread #4 
> - SalesforceHttpClient) Subscription failure: 
> {clientId=d2j3pq7ikli449ej2cc0xsme2hq, channel=/meta/subscribe, id=35, 
> subscription=/event/Process_Orchestration_Data__e, error=400::The replayId 
> }}{{{111} }}{{you provided was invalid.  Please provide a valid ID, -2 to 
> replay all events, or -1 to replay only new events., successful=false}}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to