1,371 questions
0
votes
1
answer
54
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
64
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
100
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
1
answer
75
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....
3
votes
2
answers
236
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
63
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 ...
-1
votes
1
answer
77
views
Mule4 Upload multi-part file
I am trying to upload a file to a remote API that is expecting the file to have a key of "file", this is my Transform which is right before a HTTP Requestor
<ee:transform doc:name="...
1
vote
1
answer
44
views
I need to stop warn loggers while using salesforce Subscriber topic lisner in Anypoint Studio Mule4
After application got deployed I am getting warn messages continuously like getting connected and disconnected to salesforce topic here what the log messages looks like. Want to avoid these warn ...
0
votes
1
answer
84
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 ...
-1
votes
1
answer
71
views
How to stream lines of text from large file using Mule 4.5.0 Kernel
Using Mule 4.5.0, I need to read in a large text file (~1GB-2GB) line by line (/n) and generate individual mule messages of each line. Using dataweave and the foreach scope I was able to stream the ...
2
votes
2
answers
61
views
Append to a matched regex string
Using dataweave with import * from dw::core::Strings
I have converted a JSON payload into a plain text string. I am able to use the Java functions replaceAll, match, etc. with a regex pattern to find ...
0
votes
1
answer
96
views
Mule 4.9 JMS appender error: Modules javax.jms.api and jakarta.jms.api export package javax.jms to module org.eclipse.sisu.inject
I am new to mule and trying to push logs to activemq queue using jms appender. I was getting error while using jms appender with mule 4.3
2025-06-05T07:02:25.588889200Z WrapperListener_start_runner ...
-2
votes
2
answers
80
views
Dataweave / Mule : CSV to JSON - 3 level Hierarchy Issue [closed]
Source Data : Here is the CSV Data (4 Records):
EMP_ID,DEPT_ID,OPRT_UNIT_CODE,PROD_CODE,NODE_CODE,ALLOC_PCT
123456,00700,0101,000,00700-0101,5
123456,00700,0101,000,00700-0101-000,5
123456,02150,0101,...
0
votes
0
answers
108
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
167
views
Mulesoft CICD Pipeline Deployment Failing on "Publish Release to Exchange" step - Possible Maven Issue
We have an older Mulesoft application deployed to cloudhub. A username / password needed updated in a config file so I pulled the app from github and changed the user/pass. Then checked the code ...
1
vote
1
answer
91
views
Translate UTF-8 punctuation with normal ascii punctuation marks
I'm trying to cleanup a raw data that has embedded \r\n or \n in csv lines.Line terminator is \r\n.
trying to translate utf-8 punctuation marks to normal ascii punctuation marks.
cleaning up any ...
0
votes
2
answers
68
views
Mule 4: Problem referenceing subflows when converting from Mule 3
I have a catalog of Mule 3.9 apps that I need to convert to 4.0+ compliant apps.
I have worked through many minor issues but I am stuck on one thing.
Many of these apps use several configuration XMLs ...
-1
votes
1
answer
661
views
Test connection failed: Got status code:500 when trying to resolve a Mule Runtime operation. Reason: 'Internal Server Error [closed]
Mule runtime Version: 4.9.0
JDK: 17.0.12
I am using Anypoint studio version 7.21 and not able to connect to the Oracle SQL database through the insert connector.
I have tested the database ...
0
votes
1
answer
123
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
113
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 ...
1
vote
1
answer
85
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
49
views
XML attributes being lost after adding namespace prefix to an existing XML
I need to add namespace and prefix(ns0) to the root tag of an existing XML. I tried doing it with the piece of code below. However the output has removed all the existing attributes that were already ...
0
votes
1
answer
97
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
66
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
81
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
1
answer
97
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
1
answer
500
views
Error Running MUnit Tests in Mulesoft: NoSuchFieldError: JAVA_21
I'm having a problem.
I'm new to the MuleSoft world and I'm creating a Mule Connector for my company. I downloaded Anypoint Studio 7.21 and created a new project with my connector code.
My project ...
0
votes
0
answers
173
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
66
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
252
views
Connection reset by peer: socket write error when using smb connector in Mule 4
I am currently working on the Mule 4.4 On-Prem application which runs on Unix container based. the app is trying to create new folder and creates new file on the folder. I am using smb connector 3.1.1 ...
0
votes
1
answer
238
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
0
answers
30
views
AMQP queue headers disappearing after the message is published
in a circuit breaker context, we are trying to publish rabbit messages in a "headers" exchange.
We're using the AMQP publish connector (version 1.7.4) in mule 4.4.0, and we're trying to ...
0
votes
1
answer
422
views
SFTP connector on new or updated file issue in Mule 4
I have a peculiar behavior with SFTP connector in MuleSoft. When a file is placed, I need to pick up and process the file in MuleSoft. Here in the first step, I'm fetching the file name by using the '...
0
votes
1
answer
92
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
163
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
93
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
81
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
51
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 ...
3
votes
1
answer
228
views
Error: Deployed Mule Project Requires a Different Runtime
When I compiled my Mule project and deployed it to mule-standalone-4.5.0, I got the following error:
org.mule.runtime.api.exception.MuleRuntimeException: The artifact
bridge-1.0.0-mule-application ...
1
vote
1
answer
140
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
58
views
Getting 503 in even when application is properly deployed and running in backend in mule4
The app and domain is deployed successfully in my local anypoint studio system and i am able to open console .. When i hit the API from console i am getting 503 errror .
The same api work from ...
0
votes
1
answer
104
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
45
views
app.name variable is null after upgrading to Mule Runtime 4.6.0
When we upgraded to Mule Runtime 4.6.0, we started seeing errors in our logs that the app.name is null.
But it expects one of these combinations:
(Array, Array)
(Date, Time)
(Date, LocalTime)
(...
0
votes
0
answers
164
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
1k
views
Export Mule Project - Cannot invoke org.eclipse.aether.RepositorySystem.newLocalRepositoryManager
When I do the export of a project this error happens:
Cannot invoke "org.eclipse.aether.RepositorySystem.newLocalRepositoryManager(org.eclipse.aether.RepositorySystemSession, org.eclipse.aether....
0
votes
1
answer
229
views
Convert XML to JSON with Attributes and Text as Keys Without __text
I have a payload in XML format, and I need to convert it to JSON. The XML contains many key-value pairs and also a lot of attributes, and I need those attributes to be included in the JSON as well.
&...
0
votes
1
answer
106
views
Trying to parse XML payload but getting an error : You called the function 'Descendants Selector ..' with these arguments: 1: String ("")
Am trying to parse an input XML payload and transform and generate a response XML.
Here is my input XML
<?xml version='1.0' encoding='UTF-8'?>
<EmployeesInfo>
<EmployeeDetails>
...
0
votes
1
answer
101
views
Call a function with NULL input
I have defined a DataWeave function that takes a string as input and can handle null input as well. However, when I call it with null input, I encounter a syntax error. Could anyone tell me why? ...
0
votes
1
answer
87
views
Function issue using if else and try catch
I need a dataweave function which extract fix string to convert it into ISO Date String format
fun convertToISO(dateString: String): String =
if (dateString == null)
""
...
0
votes
1
answer
89
views
How to keep the updates applied in a payload iterating in a map
I Have a issue in my code and I dont know how to solved, I explaint the situation, I have two arrays of objects; The Payload we need to do a loop and if it math with an item in the array named ...