AEM Forms: Capture Exception in process variable

Avatar

Avatar
Establish
Level 2
manu-gupta
Level 2

Likes

4 likes

Total Posts

33 posts

Correct reply

1 solution
Top badges earned
Establish
View profile

Avatar
Establish
Level 2
manu-gupta
Level 2

Likes

4 likes

Total Posts

33 posts

Correct reply

1 solution
Top badges earned
Establish
View profile
manu-gupta
Level 2

24-09-2019

HI Techies,

We are using standard services like Foundation/FileUtilServices and similar services in our workbench process and want to assign error thrown by FileUtilException to process variable, so that we can pass it to output whenever process fails.

Can you help provide inputs how we can achieve it.

AEM 6.2

AEM Forms on JBOSS

Workbench 6.2

Manu

Accepted Solutions (0)

Answers (4)

Answers (4)

Avatar

Avatar
Establish
Level 2
manu-gupta
Level 2

Likes

4 likes

Total Posts

33 posts

Correct reply

1 solution
Top badges earned
Establish
View profile

Avatar
Establish
Level 2
manu-gupta
Level 2

Likes

4 likes

Total Posts

33 posts

Correct reply

1 solution
Top badges earned
Establish
View profile
manu-gupta
Level 2

26-09-2019

thanks Mayank, this we are already doing.

I want more details on specific error thrown from exception like if my PDF generation is failing with generatePDFOutput2 OutputException then is it XML input causing issue or XDP.

Or if I am doing XML validation against XSD then I should get which node is causing issue.

So more or less I am looking for Stacktrace assigned to output variable and see it directly rather than logging into server and look for server.log.

Hope you got my point which direction I am looking into.

Manu

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

25-09-2019

1837410_pastedImage_0.png

Call a set value on exception event and write the type of exception in a custom variable. You can append more detail like timestamp as well, the error stack trace can be checked in server logs further based on the time captured. Whenever the exception will occur your process will generate the output string.

1837411_pastedImage_1.png

Avatar

Avatar
Establish
Level 2
manu-gupta
Level 2

Likes

4 likes

Total Posts

33 posts

Correct reply

1 solution
Top badges earned
Establish
View profile

Avatar
Establish
Level 2
manu-gupta
Level 2

Likes

4 likes

Total Posts

33 posts

Correct reply

1 solution
Top badges earned
Establish
View profile
manu-gupta
Level 2

25-09-2019

Sure, awaiting response

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

24-09-2019

Hi Manu,

I will share a sample/screenshot with you shortly.

Thanks,

Mayank