Workflow emails are not getting triggered

Avatar

Avatar
Give Back 3
Level 2
saik8550271
Level 2

Like

1 like

Total Posts

20 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile

Avatar
Give Back 3
Level 2
saik8550271
Level 2

Like

1 like

Total Posts

20 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile
saik8550271
Level 2

10-12-2018

Workflow emails are not getting triggered and we are getting error as below mentioned. We cross checked the run modes as well and it is pointing to correct one only. Not able to figure it out what is cause of the issue.

Here is the error log:

*ERROR* [EMailNotificationService-Processor] com.day.cq.workflow.impl.email.EMailNotificationService Error while sending email.

  1. java.lang.IllegalArgumentException: Could not find configuration for domain 'local'

        at com.day.cq.commons.impl.ExternalizerImpl.externalLink(ExternalizerImpl.java:308) [com.day.cq.cq-commons:5.11.14]

        at com.day.cq.commons.impl.ExternalizerImpl.externalLink(ExternalizerImpl.java:299) [com.day.cq.cq-commons:5.11.14]

        at com.day.cq.workflow.impl.email.EMailNotificationService.getHostPrefix(EMailNotificationService.java:426) [com.day.cq.workflow.cq-workflow-impl:6.2.12]

        at com.day.cq.workflow.impl.email.NotificationImpl.load(NotificationImpl.java:184) [com.day.cq.workflow.cq-workflow-impl:6.2.12]

        at com.day.cq.workflow.impl.email.EMailNotificationService.sendNotification(EMailNotificationService.java:262) [com.day.cq.workflow.cq-workflow-impl:6.2.12]

        at com.day.cq.workflow.impl.email.EMailNotificationService$EventProcessor.run(EMailNotificationService.java:542) [com.day.cq.workflow.cq-workflow-impl:6.2.12]

        at java.lang.Thread.run(Thread.java:748)

Any idea on what would be the problem?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 3
GaneshM
Level 3

Likes

15 likes

Total Posts

49 posts

Correct reply

9 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
GaneshM
Level 3

Likes

15 likes

Total Posts

49 posts

Correct reply

9 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
GaneshM
Level 3

13-12-2018

Hi sai,

I don't see any config name as "local", you should have local config value. Did you try adding "local" and test?

In externalizer, the config name "local" is hardcoded, so you need to have local regardless you are using it or not.

Ex:

return externalLink(null, "local", scheme, path);

However, externalizer is multifield, you can add one more config as "local".  Please add the local and check.

Thanks!

Answers (8)

Answers (8)

Avatar

Avatar
Give Back 3
Level 2
saik8550271
Level 2

Like

1 like

Total Posts

20 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile

Avatar
Give Back 3
Level 2
saik8550271
Level 2

Like

1 like

Total Posts

20 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile
saik8550271
Level 2

17-12-2018

Above resolve the issue. Thank you GaneshM​ for the help.

Avatar

Avatar
Give Back 3
Level 2
saik8550271
Level 2

Like

1 like

Total Posts

20 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile

Avatar
Give Back 3
Level 2
saik8550271
Level 2

Like

1 like

Total Posts

20 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile
saik8550271
Level 2

13-12-2018

Hi GaneshM​-

PFA.Capture.PNG

Avatar

Avatar
Validate 1
Level 3
GaneshM
Level 3

Likes

15 likes

Total Posts

49 posts

Correct reply

9 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
GaneshM
Level 3

Likes

15 likes

Total Posts

49 posts

Correct reply

9 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
GaneshM
Level 3

11-12-2018

Can you share the screenshot of externalizer?

Thanks!

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

11-12-2018

To send an email in a workflow - you can write a custom step and use the MesssageGateWay service - whcih works perfect: Adobe Experience Manager Help | Creating an Adobe Experience Manager 6.4 custom workflow step that u...

Avatar

Avatar
Give Back 3
Level 2
saik8550271
Level 2

Like

1 like

Total Posts

20 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile

Avatar
Give Back 3
Level 2
saik8550271
Level 2

Like

1 like

Total Posts

20 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile
saik8550271
Level 2

11-12-2018

Hi GaneshM​ - We alredy the runmode configuration to fill the domain value. We are maintaining author, publisher and pdf urls for domains field of Link Externalizer. I cross checked and it still it didn't helped us.

Avatar

Avatar
Validate 1
Level 3
GaneshM
Level 3

Likes

15 likes

Total Posts

49 posts

Correct reply

9 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
GaneshM
Level 3

Likes

15 likes

Total Posts

49 posts

Correct reply

9 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
GaneshM
Level 3

10-12-2018

Hi Sai,

Did your "local" field empty in Externalizer? in "EMail Notification Service" its mentioned that "Deprecated - Use the 'Link Externalizer' service to configure the host prefix (host.prefix)"

The Notification Email uses the "local" config value for host in Email Notification Service

FYI, I made the local value empty and trigged workflow got the same exception

1643643_pastedImage_0.png

Exception

java.lang.IllegalArgumentException: Could not find configuration for domain 'local'

at com.day.cq.commons.impl.ExternalizerImpl.externalLink(ExternalizerImpl.java:308)

at com.day.cq.commons.impl.ExternalizerImpl.externalLink(ExternalizerImpl.java:299)

at com.day.cq.workflow.impl.email.EMailNotificationService.getHostPrefix(EMailNotificationService.java:417)

at com.day.cq.workflow.impl.email.NotificationImpl.load(NotificationImpl.java:180)

at com.day.cq.workflow.impl.email.EMailNotificationService.sendNotification(EMailNotificationService.java:253)

at com.day.cq.workflow.impl.email.EMailNotificationService$EventProcessor.run(EMailNotificationService.java:512)

Can you make the field with some host name and try?

Thanks!

Avatar

Avatar
Give Back 3
Level 2
saik8550271
Level 2

Like

1 like

Total Posts

20 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile

Avatar
Give Back 3
Level 2
saik8550271
Level 2

Like

1 like

Total Posts

20 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile
saik8550271
Level 2

10-12-2018

Hi GaneshM​-

Thank you for the response. We have externalizer configurations  to a specific environments based on run-mode value. And when I checked again it is reflecting all author and publisher specific urls that we have configured. As this issue is happening at environment level, it should not be local. But we trigger a workflow it is failing with the exception, which I mentioned above.

-Sai

Avatar

Avatar
Validate 1
Level 3
GaneshM
Level 3

Likes

15 likes

Total Posts

49 posts

Correct reply

9 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
GaneshM
Level 3

Likes

15 likes

Total Posts

49 posts

Correct reply

9 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
GaneshM
Level 3

10-12-2018

Go to <server>/system/console/configMgr and locate Link Externalizer and add value for "local"

1643553_pastedImage_0.png

Hope this helps!.

Thanks!