Mule4 with Anaplan Execute Export streaming Integration (Unparseable date issue)

Hello Team,

 

We are using Execute export streaming Anaplan operation connector in Mule 4.

But we are getting the following exception from the Anaplan connector while performing the export option!

   org.mule.modules.mulesoftanaplanv3.internal.client.AnaplanV2Client: Exception while parsing currentTime
    java.text.ParseException: Unparseable date: "Mar 05 2021 12:48:54.940 UTC"

 

Why we are getting the above error; though we are performing export operation! Have attached the error stack for reference.

Can anyone help me here !?

Answers

  • Hello, the error you are encountering in your Mule 4 application using the Anaplan connector seems to be related to date parsing. The exception message indicates that there is an issue parsing the date "Mar 05 2021 12:48:54.940 UTC." This error can occur if the date format does not match the expected format for parsing in Java. I think you should use the SimpleDateFormat class in Java to specify the format that matches the date string you are working with. For the date format in your error message, you can use a pattern like "MMM dd yyyy HH:mm:ss.SSS z" to parse it.

  • davecarraway
    edited October 2

    @ slope game: Hope that my answer is useful for you.