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

Getting 500 when adding rules in Adaptive forms(Only in one of the Environment) in publisher

Avatar

Avatar
Give Back 5
Level 2
kamalakannank62
Level 2

Likes

10 likes

Total Posts

31 posts

Correct Reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 3
Ignite 1
View profile

Avatar
Give Back 5
Level 2
kamalakannank62
Level 2

Likes

10 likes

Total Posts

31 posts

Correct Reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 3
Ignite 1
View profile
kamalakannank62
Level 2

01-06-2021

Hey folks,

I am facing an issue in one of the environment, my AAF form is throwing 500 in publish instance when I add rules to the field and publish it. 

 

here is the logs 

com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl Could not emit JSON with context
java.lang.NullPointerException: null
at com.adobe.aem.dermis.core.service.slingmodel.FormDataModelManager.getAllRules(FormDataModelManager.java:1035) [aem-dermis-core:3.0.128]
at com.adobe.aem.dermis.core.service.slingmodel.FormDataModelManager.getRules(FormDataModelManager.java:1063) [aem-dermis-core:3.0.128]
at com.adobe.aemds.guide.addon.service.impl.FormDataModelServiceImpl.getFDMEntityRule(FormDataModelServiceImpl.java:161) [com.adobe.aemds.guide.aemds-guide-addon-impl:6.0.198]
at com.adobe.aemds.guide.internal.impl.utils.RulesCompiler.mergeFDMRulesWithAFRules(RulesCompiler.java:107) [com.adobe.aemds.guide.aemds-guide-core-impl:6.0.198]
at com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl.create(JsonObjectCreatorImpl.java:581) [com.adobe.aemds.guide.aemds-guide-core-impl:6.0.198]
at 

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

309 likes

Total Posts

1,131 posts

Correct Reply

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

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

309 likes

Total Posts

1,131 posts

Correct Reply

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

01-06-2021

@kamalakannank62 have you published the fdm?

Avatar

Avatar
Affirm 25
Employee
PulkitJain
Employee

Likes

59 likes

Total Posts

62 posts

Correct Reply

27 solutions
Top badges earned
Affirm 25
Boost 50
Give Back 10
Establish
Boost 25
View profile

Avatar
Affirm 25
Employee
PulkitJain
Employee

Likes

59 likes

Total Posts

62 posts

Correct Reply

27 solutions
Top badges earned
Affirm 25
Boost 50
Give Back 10
Establish
Boost 25
View profile
PulkitJain
Employee

01-06-2021

@kamalakannank62 

Please make sure that the JSON schema is correct. I think this is an issue with JSON format so you can validate the swagger in swagger.io for a valid definition there.

 

For a quick test, I just created a data source based on RESTful service (using Petstore swagger- https://petstore.swagger.io/ ) on my in-house latest 6.5 set-up and able to populate FirstName/LastName in Adaptive form using GET /user service. You may quickly test this one at your end.

Avatar

Avatar
Affirm 25
Employee
PulkitJain
Employee

Likes

59 likes

Total Posts

62 posts

Correct Reply

27 solutions
Top badges earned
Affirm 25
Boost 50
Give Back 10
Establish
Boost 25
View profile

Avatar
Affirm 25
Employee
PulkitJain
Employee

Likes

59 likes

Total Posts

62 posts

Correct Reply

27 solutions
Top badges earned
Affirm 25
Boost 50
Give Back 10
Establish
Boost 25
View profile
PulkitJain
Employee

01-06-2021

@kamalakannank62  

As per the logs shared, seems that you're using dataIntegrationUtils API to prefill this field (?). Could you please elaborate on the use case? 

 

com.adobe.aemds.guide.service.impl.JsonObjectCreatorImpl Could not emit JSON with context
java.lang.NullPointerException: null

....
at com.adobe.aemds.guide.internal.impl.utils.RulesCompiler.mergeFDMRulesWithAFRules(RulesCompiler.java:107) [com.adobe.aemds.guide.aemds-guide-core-impl:6.0.198]

 

Please be informed that for adaptive forms using FDM schema, you need to use the prefill JSON compliant with the FDM schema. More details here.