Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Unanswered

Unexpected line break in workflow email notification

Posted on by 5

Hi

I just experienced a problem with workflow notification. The symptom of this problem is that some hyperlink in the email notification is broken. When we look into the broken link, we found some unexpected %20 in the URL. After some investigation we believe it is because the HTML source code of the email content don't contain any line break. When the email content was submitted to a SMTP server, the SMTP server will insert some line break when it reach the 1000 characters limit, if the line break just occur in the URL, it will be recognized as %20 in browser.

Does any one else have same problem? How can I solve it?

  • York Chen Profile Picture
    York Chen 5 on at
    RE: Unexpected line break in workflow email notification

    OK, I will ask our partner again. Thanks for your help!

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,995 Super User on at
    RE: Unexpected line break in workflow email notification

    Hi York,

    You can indeed ask your consulting partner. If they have an active contract, they would be able to help you.

  • York Chen Profile Picture
    York Chen 5 on at
    RE: Unexpected line break in workflow email notification

    Hi, Andre

    I tried to log a support ticket but it turns our that I don't have a service contract. Usually we get support from our consulting partner, but in this case seems they don't have better solution.

    I tried to search on google but not on LCS, I'm not quite familiar with LCS/Microsoft support. Maybe I should ask our consulting partner to reach Microsoft support instead.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,995 Super User on at
    RE: Unexpected line break in workflow email notification

    Hi York,

    This can be caused by indeed having variables with 1000 character limits. Have you logged a case for Microsoft Support or searched on LCS issue search for a known issue?

  • York Chen Profile Picture
    York Chen 5 on at
    RE: Unexpected line break in workflow email notification

    Hi, Andre

    Thanks for your reply.

    When I click the link, it's being recognized a %20 by browser by if I look into the source code of the email, it is a like break.

    This is the original like vs received link. The first one is received link, the second one is original link.1-_2800_2_2900_.jpg

    Here is the received email HTML body, you can see a line break right occurred in the middle of the URL where %20 appeared above. If I find this message in SysOutgoingMailTable, the message only contain two lines, first line is "<hrml><HEAD></HEAD>" and the rest is the second line. the line break occurred at 998th character of the line, so I suppose it is because of the 1000 characters limit of SMTP.  But I didn't find any way to insert line break manually to the source code, any line break inserted into the editor will be converted into <BR> tag. I also tried to use \n in the editor and it also not recognized as escape sequence.

    7215.jpg

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,995 Super User on at
    RE: Unexpected line break in workflow email notification

    Hi York,

    %20 is not a line break, but a space. Can you review the URL setting itself if someone did put in a space somewhere?

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,995 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,610 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans