Unable to create the logic app with the below mentioned error

Anindita Kar 5 Reputation points
2024-08-28T15:50:07.71+00:00

Unable to process template language expressions in action 'Get_Expired_Subscription' inputs at line '0' and column '0': 'The template language function 'formatDateTime' was unable to find the locale associated with 'T23:59:59Z'. The provided locale name is either invalid or does not have a locale associated with it. Please see https://aka.ms/logicexpressions#formatdatetime for usage details.'.

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

1 answer

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 14,831 Reputation points Microsoft Employee
    2024-08-29T22:32:34.2966667+00:00

    Hi @Anindita Kar Thank you for posting the question and confirming that the issue is resolved.

    Analyzing the error, it looks like an action in Logic App Get_Expired_Subscription is trying to format a date time that is passed in incorrect format. If you are trying to format a datetime using a locale, you can do so y using the formatDateTime function as below

    formatDateTime('08/29/2024', 'dddd MMMM d', 'es-es')
    
    

    If you encounter the issue again, please do reach out to us through comments.


    If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    0 comments No comments

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.