1,845 questions
0
votes
1
answer
50
views
Mulesoft batch processing takes so long
I have a flow that uses a batch process to synchronize data into two target systems after receiving data from a source.
The batch contains two steps, and each step is encapsulated inside a try scope ...
0
votes
1
answer
92
views
MuleSoft logger component error at anypont RTF
I am using mulesoft logger component at my project, at local it works well
but at prouduction env (RTF) I always get below error, although I could see log output as well
ERROR StatusConsoleListener ...
0
votes
2
answers
79
views
How to send a literal time to a Salesforce Time field from DataWeave without timezone conversion?
I'm using MuleSoft to send data to a Salesforce custom object. My object has a field named Shift_End_Time__c, and its data type is Time.
My source system provides this time as a string in UTC format, ...
1
vote
1
answer
108
views
How to extract and clean JSON payload inside CSV field from multipart data in MuleSoft DataWeave 2.0
I am working in Mule 4 using DataWeave 2.0 and trying to transform a multipart/form-data payload that contains a CSV file.
Here is a simplified example of my input payload (multipart):
----------------...
0
votes
0
answers
60
views
Cloudhub 2.0 Ingress Timeout when forwarding Logs
We have a mule application and we are trying to load test the application with 8K records. It's a simple application that gets the request, sends its to GCP to fetch a value and then provide that ...
0
votes
2
answers
100
views
Failing to create Mule Maven projects from command line
I am trying to create mule project for Mule Community edition. I cannot use studio for this particular use case. I was trying the following steps
mvn archetype:generate \
-DarchetypeGroupId=org....
0
votes
1
answer
119
views
MuleSoft DataWeave Date Time Formatting
Using input payload of
{
"Date": "2025-09-09T18:03:06.830"
}
I'm trying to get an output of
"2025-09-09T18:03:06.830Z"
I've tried this DataWeave
%dw 2.0
output ...
0
votes
0
answers
56
views
How to override traits error response structure in raml
There is a trait defined for error response which has all error codes but for few resources I want to update a separate error response for few error codes like 400,403. I defined the 400 error data ...
3
votes
2
answers
243
views
Process .DAT files which contains PDF
I will be receiving a .dat file which contains multiple pdf files encoded as base64 string which will be separated by a new line or some character.
Initial approach is read -> payload splitBy “\n” -...
0
votes
0
answers
70
views
Mvn dependency tree for test
I need a way to generate dependency tree for test execution in my project that uses munit maven plugin and get all the dependencies that are downloaded as part of code coverage execution
I tried many ...
0
votes
0
answers
48
views
Power Automate API to Mulesoft IDP Document Action base64ToBinary Error
I'm trying to create a Power Automate Flow in cloud that sends a PDF to Mulesoft's IDP. I already created a document action on Mulesoft's site so I have the POST URI ready to go.
For some reason, when ...
0
votes
0
answers
60
views
Flex Gateway-MULE: Replace Authorization Header After OAuth Authentication for Backend Compatibility
Good morning,
I have a question regarding the use of Flex Gateway in MuleSoft. I would like to know if it's possible to configure, at the level of an experience API published on Flex Gateway, a way to ...
-1
votes
1
answer
89
views
debug java method in MuleApp
In my Mule app, I’m using the Invoke Static (Java Connector), and it works like a charm.
However, when I set a breakpoint in the Java method, it doesn’t stop at the breakpoint.
Does anyone know why?
P....
0
votes
0
answers
48
views
MuleSoft - vscode - ACB - workbench.editorAssociations - search bar
Is there an option to change the default editor association when opening a result from the search bar?
workbench.editorAssociations link
/**settings.json*/
"workbench.editorAssociations":...
0
votes
1
answer
91
views
Using MuleSoft Transform message initialize variables when payload is null
I am using the MuleSoft Transform Message component to initialize variables testIP and testDomain. It works well when the payload is not empty, but throws an exception when the payload is null or ...
0
votes
2
answers
53
views
How to get all elements with key ending with TXI to an array
I need to get all elements which has key ending with TXI, to a single array using simple 1 or 2 lines.
Tried various ways using mapObject(), However it doesn't work with the nested structure. Also ...
0
votes
1
answer
133
views
Unable to read DB using Mulesoft SELECT connector
I'm trying to read a Table data in MYSQL DB using Mulesoft SELECT connector, but it's failing with the following error below
java.lang.RuntimeException: Attempted to send invalid data through http ...
1
vote
1
answer
91
views
How to access a property name in URI params in Mulesoft
I'm trying to access a property in HTTP Request connector URI Params, But it doesn't seem to be working
Here's the way I generally access ${property_name} in all the places, but it's not resolving the ...
0
votes
1
answer
51
views
How to merge two lists based on a matching string and assign incremental numbers to each object using Mulesoft DataWeave
How can I merge the following two lists ids and attributes based on the matching did field and for each matched pair increment the iterid values
For example I have two lists below. size of the list ...
0
votes
0
answers
121
views
How to safely pass a value containing slashes (/) in a URI parameter to a Mule application?
I'm building an API in MuleSoft (Mule 4) using RAML and APIkit. I need to pass a query parameter that contains forward slashes (/) in its value.
example :
https://{{host}}:{{port}}/api/v1/school/S/AZ/...
0
votes
1
answer
85
views
Question about "On Error Continue" in Mule
I have a question regarding the behavior of On Error Continue in Mule.
In my scenario:
A private flow throws an error.
The private flow uses On Error Propagate.
The main flow uses On Error Continue.
...
0
votes
2
answers
147
views
Can I configure a MuleSoft app to preload a YAML file instead of waiting for it to load during each invocation?
I have a flow that utilizes a YAML file for payload reference and validation. The YAML is provided by a vendor. The YAML is about 5 MB, and it's included in src/main/resources. At the start of the ...
1
vote
0
answers
139
views
How to map auto-generated key column in MuleSoft Insert Database Connector?
For insert database connector, I try to map column name PROJECT_RECORD_ID on auto generated key colums names as below shown.
The result for payload of insert database looks like below, which doesnot ...
0
votes
0
answers
56
views
encoding issue for sap - > mulesoft's sap function listener
My use case is : SAP sends a payload to the MuleSoft SAP function listener.
The payload from SAP looks like this:
<LAST_NAME>exampleć</LAST_NAME>
However, the payload received by the ...
0
votes
1
answer
142
views
Is there a way to grab the JSON response message of a POST Request in Mulesoft?
I am working on building a Mulesoft application that GETs a bunch of information from one API endpoint, transforms it and makes a POST to another endpoint. However, when I try to make a POST that has ...
0
votes
1
answer
136
views
Should I go with if-else or match-case in the below scenario?
I have my input as json, where I have to derive the quantity based on one field shippingNode.
Mapping: data/availableQuantity/supplyQuantity
The conditions are as below
If shippingNode is starting ...
0
votes
1
answer
80
views
MuleSoft http request connector header in literal mode issue
Hello Mule Developers,
I noticed that in the MuleSoft HTTP Request Connector, the header in literal mode requires quotation marks (""). For example, it needs to be written as "${...
1
vote
1
answer
92
views
Remove data inside the arrays of an XML
I need to remove everything thing starting with "[@" and ending with "]" in the given XML. The text that falls in-between these sqaure brackers should also be removed. I tried the ...
0
votes
1
answer
106
views
JSON conversion to XML using attributes and namespaces
I have a JSON payload that I need to convert into an XML. However that JSON payload has many fields starting with '@' which are supposed to be the XML attributes. So when I converted those into XML ...
0
votes
1
answer
76
views
Mule 4 sfdc connector - force reconnection or even lazy loading of connection is it possible?
Here are the details of connector:
<salesforce:sfdc-config name="MySFDC_Connector" fetchAllApexRestMetadata="true" readTimeout="30">
<salesforce:jwt-...
1
vote
1
answer
87
views
How to sum values of same keys from objects in an array using Dataweave
The first key should remain as is, and the rest should be added as below output. The slash "/" is required at the end.
This is just an example, the DataWeave script needs to be dynamic.
...
0
votes
0
answers
121
views
How to connect to Azure Event Hub Emualtor
I dont' know how to connect to Azure Event Hub Emulator
Azure event hub emulator: link
What I tried:
Use the official connector: https://docs.mulesoft.com/azure-event-hubs-connector/latest/azure-...
1
vote
1
answer
213
views
Using the DataWeave update operator, how can I target a nested node with a dynamic reference?
I'm trying to use the DataWeave update operator to either modify or delete a nested node in a JSON payload. The node's path will be passed dynamically and will change, so it can't be hardcoded.
The ...
1
vote
1
answer
112
views
Mulesoft Dataweave use a variable as item in a selection at a JSON object
I want to do a selection on an item based on a (yaml) property in Dataweave. I have this code:
%dw 2.0
var testWithProperty = p('incoming.var')
// incoming.var refers to the value "resultSet&...
0
votes
1
answer
99
views
Mulesoft Http request fails but Php Curl works fine
Here is my curl code - it works fine:
$url="XXXXXX";
$key="XXXXXX";
$data='[{"producerNumber":"0500555"}]';
$relativeUrl = '/producer/npn';
$...
0
votes
0
answers
188
views
How to solve "Locally closed" error in Mulesoft
we have been constantly getting "Locally closed" error in http requestor component when large number of users are accessing the API at the same time. HTTP requester component consumes data ...
0
votes
1
answer
77
views
Mule 4 convert a string with an Array of enclosed Json Objects into individual Json objects
[
"{ "Context" : [ { "PeriodOfServiceId" : "30000020", "PersonName" : "LANA, LANA", "PersonNumber" : "259", &...
0
votes
1
answer
255
views
not able to modify errorType from error object in mule 4
I want to modify error.errotType to something else. How can I do that? I do not see any option to update error object in Mule 4.
Also why in 'raise-exception', type field can not be set dynamically i....
0
votes
1
answer
101
views
How to loop through the attributes inside the XML and update its value?
I have an XML where I want to find a particular attribute 'type' shiprefnum under ReferenceNums->Reference and replace the value to 124215133_AB_00010.
Input XML:
<?xml version='1.0' encoding='...
0
votes
1
answer
171
views
How to Automate Certificate Updates in a Truststore for anypoint studio resquest component?
Context:
I work in an environment where all HTTP/HTTPS connections are blocked due to security policies. Therefore, I use a truststore in Anypoint Studio (Mule 4) to make requests from the HTTP ...
1
vote
1
answer
107
views
How to retrieve the second XML element with a specific attribute value in DataWeave 2.0
I am working with MuleSoft DataWeave 2.0 to process an XML payload. I need to extract the second <wd:ID> element where the attribute wd:type equals "Learning_Course_ID".
Here is a ...
-1
votes
1
answer
93
views
Dataweave - What does ? mean in the following expression
I have a payload as follows:
{
"relatedParty": [
{
"id": "001",
"Role": "Account"
},
{
"id": "006",...
0
votes
0
answers
52
views
Mule's predefined error types and their associated Java exceptions?
I am a little confused with Mulesoft's predefined error types. Is there the associated Java exception with each of them? For example, what could be the associated Java exception for the Mule error ...
0
votes
2
answers
180
views
How do I get the year from a date in a Mulesoft dataweave expression
Date: |2000-03-29|
this is what I am trying but getting an error:
type LocalDateFormat = LocalDateTime { format: "yyyy-MM-dd'T'HH:mm:ss" }
fun myDate(myDateString: DateTime) = (
if(...
1
vote
1
answer
158
views
required type 'int' for property 'maxConcurrency'; nested exception is java.lang.NumberFormatException - MuleSoft
After updating an app from Mule Runtime 4.4.0 to 4.6.9 an error occurs during deploy on CloudHub. ** when deployed on Studio the app runs without raising an error.
The error on CloudHub:
Your ...
0
votes
1
answer
179
views
oauth2-custom-policy - Custom Policy Transform Extension
We have deployed oauth2-custom-policy compatible with Java17 into exchange. And configured oauth2-custom-policy in API Manager. But while deploying our API which is using oauth2-custom-policy in API ...
0
votes
1
answer
111
views
Variable Output Type in Transform
In the example below, When I create variable in Transform, I sometimes use application/java
and some times use application/json . It seems that the target system using this variable doesn't care
...
0
votes
0
answers
159
views
Mule Runtime fail to start in Windows 11 with Java 17
When trying to start mule runtime am getting the following error. What is causing this and how it can be fixed ?
D:\muletemp\mule-enterprise-standalone-4.8.1\bin>mule.bat
MULE_HOME is set to D:\...
0
votes
0
answers
168
views
MuleSoft 4.6.9 - Stored Procedure in Oracle with XMLTYPE - javax.xml.parsers.ParserConfigurationException
When I try to update the Runtime version from 4.4.0 to 4.6.9 and Mule Maven Plugin (MMP) from 3.5.4 to 4.3.0 the execution of the application shows: javax.xml.parsers.ParserConfigurationException
...
0
votes
1
answer
91
views
DataWeave Dynamic Mapping CSV to JSON objects
I have a Dataweave script based on an example from Mulesoft https://docs.mulesoft.com/dataweave/latest/dataweave-cookbook-map-based-on-an-external-definition
I am trying to map the contents of a CSV ...