periodic error from azure logic apps with inline js code

Ping Li 1 Reputation point Microsoft Employee
2022-08-25T06:38:06.223+00:00

Hi,

I am using azure logic apps to automate email sending, in the email body, it will infer to inline js code.
234708-image.png

however when logic apps runs, periodically came across below errors, don't know why ["body"] got added.
234781-image.png

Does anyone knows why and how to solve it?

Many thanks,
Ping

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,135 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,431 Reputation points
    2022-08-29T07:19:16.227+00:00

    @Ping Li Thanks for reaching out. I couldn't reproduce the issue at my end. As per the error it looks like the body is added. Can you please navigate to the code view of your logic app and verify if [body] is added to the body of your Send an email (v2) 2 action which could have caused this behavior for the second and third occurrence of result of your inlince code.

    @{body('monthName')}@{body('monthName')[body]}@{body('monthName')[body]}'


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.