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

Sample for integrating drafts & submissions component with database

Avatar

Avatar
Level 1
ivank87588001
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
ivank87588001
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
ivank87588001
Level 1

02-04-2017

Hi,

My project's requirements are to save data to a database, i have create a simple registration adaptive form and follow the instructions on the link below

https://helpx.adobe.com/aem-forms/6-2/integrate-draft-submission-database.html

 

Upon submitting the data i got the following error

{"code":"ALC-FMP-001-001"}

Please see attachment for exception found in the error log, any help is appreciated

Thanks,

 

 

Replies

Avatar

Avatar
Boost 5
Level 3
MaxBarrass
Level 3

Likes

18 likes

Total Posts

42 posts

Correct Reply

4 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 3
View profile

Avatar
Boost 5
Level 3
MaxBarrass
Level 3

Likes

18 likes

Total Posts

42 posts

Correct Reply

4 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 3
View profile
MaxBarrass
Level 3

03-04-2017

Try creating a 

Ivan Khong wrote...

Hi,

My project's requirements are to save data to a database, i have create a simple registration adaptive form and follow the instructions on the link below

https://helpx.adobe.com/aem-forms/6-2/integrate-draft-submission-database.html

 

Upon submitti ng the data i got the following error

{"code":"ALC-FMP-001-001"}

Please see attachment for exception found in the error log, any help is appreciated

Thanks,

 

  1.  
  2.  

 

 

Does this happen on publish?

Do you have reverse replication agent setup?

Try creating a reverse replication agent on publisher called "outbox".

Avatar

Avatar
Level 1
ivank87588001
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
ivank87588001
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
ivank87588001
Level 1

03-04-2017

        Hi MaxBarrass, I have not test this on the publish instance yet. I am testing this on the author instance first. I forgot to add the datasource and now it can write to database. however, the data submitted twice on button click,  i found 2 records in "additionalMetaData" table and "metadata" table., but  the  "data" table is emptied. The submission component indicated that there are two submmited forms, but when i click on "submission" tab there is no form listed. There were no exception thrown, but i checked the browser console, it showed that   "item.formName is undefined". I checked the "addionalMetadata" table in MySQL and the formName column is not emptied. Thanks, Ivan