Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Debug serverside validation

Avatar

Avatar
Validate 1
Level 2
urs_h_
Level 2

Likes

5 likes

Total Posts

42 posts

Correct Reply

6 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile

Avatar
Validate 1
Level 2
urs_h_
Level 2

Likes

5 likes

Total Posts

42 posts

Correct Reply

6 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile
urs_h_
Level 2

24-02-2017

Hi 

I'm trying to use server side (re-)validation. So I've enabled Server Validation in the form's Submit Action Dialog and I've specified the name of the clientlib into the Styles-Tab (see attached screenshots). It's the same clientlib I use clientside.

When I try to submit a form containing data validation succeeds on clientside but fails on serverside. Hence I assume that something went wrong when the validation expressions were evaluated. I guess that not all dependencies where available on serverside.

In error.log I can't see no error

24.02.2017 17:06:18.553 *WARN* [0:0:0:0:0:0:0:1 [1487952378408] POST /..xy../jcr:content/guideContainer.af.internalsubmit.jsp HTTP/1.1] com.adobe.aemds.guide.utils.SubmitDataCollector templateKey not found in merge json:guideGlobalLazyField 24.02.2017 17:06:24.289 *INFO* [0:0:0:0:0:0:0:1 [1487952378707] POST /..xy../jcr:content/guideContainer.af.submit.jsp HTTP/1.1] org.apache.sling.scripting.javascript.helper.SlingGlobal [  Envjs/1.6 (Rhino; U; Windows 7 amd64 6.1; en-US; rv:1.7.0.rc2) Resig/20070309 PilotFish/1.2.13  ] 24.02.2017 17:06:25.607 *INFO* [0:0:0:0:0:0:0:1 [1487952378707] POST /..xy../jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.GuideModelTransformerImpl Server side validation errors for the Adaptive Form :- /..xy../jcr:content/guideContainer 24.02.2017 17:06:25.607 *INFO* [0:0:0:0:0:0:0:1 [1487952378707] POST /..xy../jcr:content/guideContainer.af.submit.jsp HTTP/1.1] com.adobe.aemds.guide.service.impl.GuideModelTransformerImpl SomExpression: guide[0].guide1[0].guideRootPanel[0].panelXY[0].fldXY[0] ErrorMessage:    There is a validation error in the field.

Now I'm wondering how I can debug serverside evaluation of the validation expressions. Or is there any possibility to trace the serverside evaluation of the validation expressions?

Thanks,

Urs

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 1
Level 1
grahamc82268888
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
grahamc82268888
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile
grahamc82268888
Level 1

13-12-2017

I know its not of any help but I also see the similar message templateKey not found in merge json:guideGlobalLazyField

Answers (0)