Expand my Community achievements bar.

Never miss an update of the Adobe Journey Optimizer Community Lens! Subscribe now to get the latest updates, insights, and highlights delivered straight to your inbox every time a new edition drops.
SOLVED

Test mode working fine but, when publishing the Journey it gives errors

Avatar

Level 5

I have created a Journey that updates the profile in the DEV sandbox.

When in test mode, everything works fine. But then, when Published, the path that the journey takes is sometimes the correct one and other times the alternative error/timeout one.

 

I am doing the same tests in test mode as when Published. Why this might happen?

 

P:S: I am able to see the events in the profile while published

1 Accepted Solution

Avatar

Correct answer by
Level 5

Ok, we solved it. The problem was the timeout, we raised it to 90 seconds, and the repeated entry of profiles timeout, we lowered it to the minimum. 

View solution in original post

6 Replies

Avatar

Employee Advisor

Could you share the screenshot of the journey with the details of the branching ? 

Avatar

Level 5

Of course, here they are:
The journey: 

GigiCotruta_0-1760682484518.png

And the "recibo pendiente" code:

if (
    isEmpty(#{ExperiencePlatform.fieldgroup1.profile._clienttechsa.customPersonalization})
)
    then (
    	concat (
        	concat (
            	concat (
                    concat(
                        concat(
                            concat ('[{\"importeTotal\":',
                            toString(@event{kafkaEvent._clienttechsa.kafka.paymentDocument.totalAmount})),
                        ',\"numeroPoliza\":'),
                    toString(@event{kafkaEvent._clienttechsa.kafka.policy.number})),
                ',\"tipoSegmento\":\"segmento recibo\",\"idObjeto\":\"'),
	        @Event{kafkaEvent._clienttechsa.kafka.invoice.id}),
        '\",\"tipoObjeto\":\"recibo\"}]')
    )
else ( 
    if (
        not ( contain(#{ExperiencePlatform.fieldgroup1.profile._clienttechsa.customPersonalization}, @Event{kafkaEvent._clienttechsa.kafka.invoice.id} ) )
    )
    then (
        concat(
            concat (
                concat (
                    concat (
                        concat(
                            concat(
                                concat ('[{\"importeTotal\":',
                                toString(@event{kafkaEvent._clienttechsa.kafka.paymentDocument.totalAmount})),
                            ',\"numeroPoliza\":'),
                        toString(@event{kafkaEvent._clienttechsa.kafka.policy.number})),
                    ',\"tipoSegmento\":\"segmento recibo\",\"idObjeto\":\"'),
                @Event{kafkaEvent._clienttechsa.kafka.invoice.id}),
            '\",\"tipoObjeto\":\"recibo\"},'),
        substr(#{ExperiencePlatform.fieldgroup1.profile._clienttechsa.customPersonalization}, 1))
    )
    else (#{ExperiencePlatform.fieldgroup1.profile._clienttechsa.customPersonalization})   
)

 

Basically I am trying to create a parseble JSON so any platform can read and personalize the user's experience.

 

Once again, when I am trying in test mode, there is no problem, but then, when I am sending events via an HTTP connection, I am getting all the errors from the screenshot. 

Avatar

Community Advisor

@GigiCotruta

It is not possible to post data into the profile level using a JSON structure with the update profile activity.

Thanks, Sathees

Avatar

Level 5

As I mentioned, above, It is not JSON, it is string in form of a JSON.

Avatar

Employee Advisor

I see you are forming a stringified JSON and updating it on profile. Can you query the step events and see what is the http error code on the action node ? 

https://experienceleague.adobe.com/en/docs/journeys/using/building-journeys/sharing-journey-steps/qu... 

Avatar

Correct answer by
Level 5

Ok, we solved it. The problem was the timeout, we raised it to 90 seconds, and the repeated entry of profiles timeout, we lowered it to the minimum.