Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
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 ...
stewchicken's user avatar
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, ...
Kunal Awasthi's user avatar
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): ----------------...
Sunny85's user avatar
  • 77
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....
Siva's user avatar
  • 98
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” -...
veejay's user avatar
  • 115
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 ...
wehelpdox's user avatar
  • 603
-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="...
E F's user avatar
  • 23
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 ...
Gopi Majji's user avatar
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 ...
stewchicken's user avatar
-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 ...
William's user avatar
  • 97
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 ...
CactusCake's user avatar
  • 1,011
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 ...
Aakash Giri's user avatar
-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,...
Mahari's user avatar
  • 13
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/...
codeseeker's user avatar
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 ...
jthorn's user avatar
  • 25
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 ...
ramesh.metta's user avatar
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 ...
Keith Fosberg's user avatar
-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 ...
PurpleSkittles's user avatar
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 ...
elegantcomplexity's user avatar
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 ...
MyDream's user avatar
  • 45
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 ...
Zak01's user avatar
  • 33
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 ...
Zak01's user avatar
  • 33
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 ...
Zak01's user avatar
  • 33
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-...
boomslaw's user avatar
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. ...
Mule-Newbie's user avatar
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'; $...
Veera Raghava Prasad Govindara's user avatar
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 ...
Kasey Normam's user avatar
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 ...
user3286888's user avatar
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", &...
Elizabeth Goldy Antony's user avatar
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 ...
Infinity's user avatar
  • 526
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....
Vatsal Mehta's user avatar
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 ...
Zyoumir's user avatar
  • 73
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 '...
Thiru's user avatar
  • 424
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='...
user12277274's user avatar
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 ...
Ladysm's user avatar
  • 1
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 ...
Rhoda_Mumo's user avatar
-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",...
user2260040's user avatar
  • 1,420
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 ...
stewchicken's user avatar
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 ...
Norman Lynch's user avatar
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 ...
andersoal's user avatar
  • 175
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 ...
Sidh's user avatar
  • 139
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 ...
stewchicken's user avatar
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) (...
Niña Mae de Guzman's user avatar
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 ...
andersoal's user avatar
  • 175
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....
andersoal's user avatar
  • 175
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. &...
Anonim's user avatar
  • 93
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> ...
boomslaw's user avatar
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? ...
stewchicken's user avatar
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) "" ...
stewchicken's user avatar
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 ...
Jesus Abraham Felix González's user avatar

1
2 3 4 5
28