Questions tagged [mulesoft]

This tag is not clearly aligned with a specific MuleSoft product. If the question is related to the Mule ESB or Mule Runtime product please use the mule-esb tag instead.

MuleSoft is a company name, not a product.

MuleSoft was acquired by Salesforce in 2018.

MuleSoft produces the Anypoint Platform, which consists of:

  • Anypoint Exchange
  • Anypoint Security
  • Anypoint Analytics
  • Anypoint Studio
  • Mule runtime engine
  • etc.
1619 questions
2
votes
3 answers

Athena latest JDBC driver jar AthenaJDBC42_2.0.14

https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html I've installed latest jdbc jar into my local mvn repo. While i'm trying to build my project I'm getting below error. Failed to collect dependencies at…
ivihdhan
  • 21
  • 2
2
votes
6 answers

Mulesoft DataWeave 2.0 - conditionally change a single nested value

A status in XML needs to change before it gets forwarded. If RESPONSE.OUTBOUND.STATUS is equal to "ERR", it needs to say "FAILURE" instead. Other messages that STATUS may contain must remain as is. Sample XML before processing:
Tony
  • 2,658
  • 2
  • 31
  • 46
2
votes
2 answers

In Mulesoft 4 how do I get an http listener to accept all incoming messages regardless of path?

My Mule application has an HTTP listener. I would like to receive ALL incoming messages and then route the message based on the path for e.g. I have created the listener with the following properties: host: www.myhost.com port: 8080 path: / I have…
2
votes
2 answers

How to use nested "map"

I would like to map a json, based on some nested attribute, but somehow there seems to be a stupid mistake I make. My input: [ { "productNo": "00011111", "items": [ { "color": "000000000006000060", }, { …
2
votes
1 answer

Is it possible to include headers and query parameters with the Invoke request to AWS Lambda using the Java SDK

I'm replacing the AWS API Gateway in front of my Lambda by calling it directly from the AWS Java SDK using Invoke InvokeRequest request = new InvokeRequest(); try { request.putCustomQueryParameter("city", "Seattle"); …
djuang1
  • 23
  • 3
2
votes
3 answers

Unflatten a JSON Object into nested JSON Object using Dataweave 2.0

I have this Flattened Object { "abc.def.ghi": "foo", "abc.def.jkl": "bar" } I want to write a dataweave to convert it into the original object, i.e. { "abc": { "def": { "ghi": "foo", "jkl": "bar" } } } I am trying to…
Harshank Bansal
  • 2,798
  • 2
  • 7
  • 22
2
votes
1 answer

Mule 4 - Anypoint MQ Retry Exhausted Exception and dead letter queue

I started using Anypoint MQ Subscribe with Max Redelivery Countset to 2. Application should throw ANYPOINT-MQ:RETRY_EXHAUSTED exception after 2 failed deliveries, but the message was returned back to main queue and picked up again in the next…
2
votes
3 answers

DataWeave 2.0 how to build dynamically populated accumulator for reduce()

I'm trying to convert an array of strings into an object for which each member uses the string for a key, and initializes the value to 0. (Classic accumulator for Word Count, right?) Here's the style of the input data: %dw 2.0 output…
agentv
  • 739
  • 1
  • 9
  • 21
2
votes
1 answer

How to aggregate this data using Dataweave 2.0?

Take the following JSON. It is an array of objects. [ { "objects": [ { "saleItems": [ { "itemID": 1, "saleItemType": "Sale", "productCode": "072", "legacyProductCode":…
JackBruce
  • 23
  • 4
2
votes
2 answers

How to append fields in mule dataweave to existing json payload

Exisiting Json { a:1, b:2 } Add the field c:3 Final Output expected { a:1, b:2, c:3 }
user3440239
  • 78
  • 1
  • 5
2
votes
0 answers

Mule Batch Job StepResults are Miselading

I was working with sample batchJob and figured something about the BatchStepResults. Created a simple application with small payload and BatchJob, with 3 BatchSteps . I have below payload and as per the batchJob the batchstep1 should process 4…
Learner
  • 157
  • 2
  • 17
2
votes
2 answers

Unflatten an Array in Mulesoft Dataweave 2.0

I have a flat array of Customers, and could not find an appropriate Method (Way) to Unflatten it so that each Customer & his Age becomes Nested. INPUT { "1st Customer": "2216", "Age": "90", "2nd Customer": "2231", "Age": "90", "3rd Customer":…
2
votes
1 answer

How to call a java method with Long type in Mule4?

My Java class has a constructor like public Authenticator(String username, String applicationId, String zz, String yy, String zz, String vv,Long cc) { .. } Im initiating this constructor in mule as follows;
Ratha
  • 9,434
  • 17
  • 85
  • 163
2
votes
1 answer

Need Help in Dataweave

Can someone help me in converting this dataweave to target format ? basically convert the items into array. I even started , but not sure how to proceed further. any suggestions will be helpful payload mapObject(order,key,index) -> { …
Learner
  • 157
  • 2
  • 17
2
votes
1 answer

convert base64 to byte[] using Dataweave in Mule 4

Getting PDF Attachment from Salesforce as base64 format using Mulesoft like below: toBase64(payload as Binary) But when sending the same payload to NetSuite as File content, giving error. Sending as : write(fromBase64(acc.Body as String) as…
Learner
  • 157
  • 2
  • 17