Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

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

4 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

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 ? 

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