Questions tagged [mule]

Mule is a lightweight Java-based enterprise service bus (ESB) and integration platform that allows developers to connect applications together quickly and easily, enabling them to exchange data. Mule enables easy integration of existing systems, regardless of the different technologies that the applications use, including JMS, Web Services, JDBC, HTTP, and more.

Filter by
Sorted by
Tagged with
0 votes
2 answers
30 views

How to filter over an array of objects and extract requested payload?

I have a requirement where I need to filter over an array of objects and check whether the "Id" is same for all the lines. If it is same, then "QTY" in the first line should retain ...
james11's user avatar
  • 57
0 votes
0 answers
36 views

Excel generation with a particular template in Mule

In Mule4 can we generate Excel with a particular template where we will need formatting of content and I see as per below mule doc there are limitations where formatting is not supported. Mule ...
subhash chandra's user avatar
0 votes
0 answers
37 views

How to handle IndirectLookUp datatype in Odata Service Metadata(odata.raml) for Mule 4

In Salesforce External Datasource we are trying to Consuming Mule Application via Odata. As part of this, client requirement is for one of the field datatype is IndirectLookup which links to ...
saieem ali's user avatar
0 votes
2 answers
30 views

Mule 4 Database Insert into Oracle Table with Date field issues

Am using Mule 4 ( runtime 4.3 ) running in anypoint studio ( 7.15.0 ) Am trying to do a simple database insert ( Database is Oracle ) Here is the relevant code for insert : <db:insert doc:name=&...
GettingStarted With123's user avatar
0 votes
1 answer
24 views

Mule 4 anypoint studio in Debug Mode - can I change the payload value or a variable value

This may not really be a code question , but many times when running Mule in debug mode in Anypoint studio ( Mule 4.3 , Anypoint Studio 7.15.0 ) , is there a way where while in Debug mode I can update ...
GettingStarted With123's user avatar
1 vote
3 answers
103 views

filter out the objects from JSON array based on conditions using Mule4 dataweave

I have a Json array which has the transactions. Basically, here I'm trying to filter out the records that has equal payments (Payment received should have date greater than payment returned/reversed)....
Satish Reddy's user avatar
0 votes
0 answers
28 views

Can Mulesoft listen to an external event bus and push data directly to Salesforce via REST API? [closed]

Salesforce itself can not listen to events emitted to an external event bus. The solution to this is that a microservice would push these changes directly to Salesforce if they happen on the event bus....
DevelBase2's user avatar
1 vote
2 answers
66 views

Generate dataweave from YAML of REST service I need to invoke?

I have a rather large and complex YAML that I was given by the developer of a REST service to which I need to POST complex data payloads. Can I automatically generate the Dataweave for the payload of ...
Infin8Loop's user avatar
-1 votes
0 answers
15 views

transaction -- Multiple insertion

I'd like to know what is the pattern for my case in mule 4. I get JSON data from which I extract multiple different subsets of data, transform each of them and perform INSERT to different tables in a ...
Mavuluri Umamahesh's user avatar
0 votes
1 answer
32 views

Mule 4 Getting Database Connection in Java Code

In Mule 3, I can get the database connection using the following Java code snippet: StaticDbConfigResolver staticDBConfig = org.mule.RequestContext.getEventContext().getMuleContext().getRegistry()....
Sunny Lim's user avatar
0 votes
2 answers
59 views

Mule code to convert elements in array to individual element qoutes

I want to create a dynamic insert query in mulesoft as part of the system API that is can be used to interact with DB for multiple tables as per the calling processing API. I want to below outout &...
Kunal Awasthi's user avatar
0 votes
1 answer
59 views

How to read xml file set the content as Transform Message 's payload in Mulesoft (Dataweave)

I need to read the content of XML file and set it as payload via Transform Message Component I did it as below, but got Error as below Dataweave Script %dw 2.0 output application/xml --- Mule::p('file:...
stewchicken's user avatar
-1 votes
0 answers
39 views

pre login api authorizations

how to protect prior login apis like registration api, change password etc from unauthorized clients? how to accept requests from only UI not from postman or curl or other domains? I tried placing the ...
user avatar
0 votes
1 answer
39 views

Convert Dataweave 1 to 2 trying to generate same response

Here is the sample request and response along with the code used in Dataweave 1 { "employees": [ { "eId": "1", "email": "[email protected]&...
boomslaw's user avatar
-2 votes
2 answers
73 views

Mule custom library using java class throwing NoClassDefFoundError

I have developed a custom mule library to verify and generate jwt token using java module. I imported my library in Mule application and added it to shared library. The custom library uses com.auth0....
Ahmed Hmidi's user avatar
0 votes
1 answer
49 views

How to extract value as string from XML by MuleSoft Transform component

In Mulesoft, I need to use Transform component to extract value as String from XML payload ,If I dont write output/plain , it will throw xml parsing error. BTW, I use Transform component to ...
stewchicken's user avatar
0 votes
1 answer
71 views

Could not find imported resource during MuleSoft build

I have mule-artifact.json containing "configs": [ "global.xml", "flow.xml" ], In global.xml I have <import file="connectors/global-connectors.xml" /> ...
N1kk1's user avatar
  • 3
0 votes
0 answers
41 views

Based on varying number of objects, how to build the following composite request dynamically in dataweave?

The input is dynamic with respect to the number of objects that can come within "users". It can be a maximum of 25 objects. { "users": [{ "userId": "12345&...
Arjit Sharma's user avatar
0 votes
3 answers
55 views

Compare two Arrays and remove the block from one array if certain data exists in both arrays

I need to compare two arrays that have different data fields in them. The comparison is based on lets say Id number and if data matches in the two arrays, I need to remove the whole block/row from the ...
Zak01's user avatar
  • 17
0 votes
1 answer
44 views

how to map multiple array elements in mulesoft

we have to map multiple array objects to form the resultant array. Input: { "data": { "contents": { "desserts": [ { "id": "0001&...
Uday's user avatar
  • 17
0 votes
0 answers
31 views

Getting an error while trying to read mail through IMAP in mule esb 3.9

We get below error, when we are trying to access our outlook mail which is hosted on Azure Cloud 2023-10-24 20:58:30,087 [INFO] mail.test | Cron Job TokenValidityPoll Called ->-> Not ...
Mahesh A R's user avatar
0 votes
1 answer
50 views

DB payload to JSON transformation in mulesoft

[enter image description here][1]my expected output is below, { "TicketNo":6255, "Name": "Issac", "Age": 20, "Code": "IND354" } but ...
jan's user avatar
  • 3
0 votes
1 answer
29 views

Is there any Anypoint Studio Licensed Version?

Is there a licensed version of Anypoint Studio that Mulesoft customers need to purchase ? Does the free version that we get not connect with Anypoint Platform with customer domain ? I am having issue ...
Nadeem's user avatar
  • 87
0 votes
1 answer
44 views

Mulesoft - How to get the remote host (caller) details?

One of our experience API is being called by our multiple customer systems. We want to log the origin of the call with the caller host (domain) and IP address so that we know what was the origin of ...
ray's user avatar
  • 4,220
0 votes
0 answers
23 views

Mulesoft project that creates queues in Salesforce?

I want to make an API with a POST request that receves a body with the queue name and the message to push to the queue, if that queue doesn't exist I want the API to create it in Salesforce and then ...
Luís Pereira's user avatar
1 vote
0 answers
61 views

Mulesoft Connector for Azure Service bus returns sessionId as null

We have one sessionEnabled queue in azure service bus, and we are setting sessionId for that queue as "orders" before we send it to the queue. In the explorer tab we can see the session ...
Hrithik Naha's user avatar
0 votes
1 answer
76 views

How to convert base64 to xml in dataweave?

I'm trying to convert the following payload to xml, but facing errors. { "RelayState": "/", "SAMLRequest": "...
Arjit Sharma's user avatar
0 votes
1 answer
75 views

Consuming payload with multipart/mixed Content-Type in Mule 4

I have to send a multipart/mixed request to an external API and I've built a Mule 4 flow in which an endpoint is configured to receive multipart/mixed payload. The endpoint I created should accept a ...
Dan's user avatar
  • 425
2 votes
2 answers
60 views

How to truncate DateTime to minutes in DW?

Looking for a way to truncate a timestamp DateTime value (e.g. result of now()) to minutes with preserving the time zone i.e. something like this: From: |2023-10-04T10:48:07.975905Z| To: |2023-10-...
spoonboy's user avatar
  • 2,614
0 votes
2 answers
32 views

We get java.util.ConcurrentModificationException in Mule ESB while we try to do jaxb-object-to-xml-transformer

In Mule 3.9.0, while we are trying to convert an object to XML using jaxb, we are getting the below error Message : null (java.util.ConcurrentModificationException) Element ...
Mahesh A R's user avatar
0 votes
0 answers
42 views

Failed to Invoke Salesforce Apex Rest endpoint in Mule 3

I am new to Salesforce and am trying to invoke a APEX rest endpoint in Salesforce. This Salesforce endpoint is created by me - code as below : @RestResource(urlMapping='/MyAccounts/*') global ...
boomslaw's user avatar
0 votes
0 answers
23 views

Mule Studio - difference in APEX method that gets populated in Mule 3 Vs Mule 4

I am migrating an existing Mule 3 application to Mule 4 Mule 3 is making an APEX GET call Here is the source code for Mule 3: <sfdc:invoke-apex-rest-method config-ref="SFDC_config" ...
boomslaw's user avatar
0 votes
2 answers
105 views

How to pass a path param / uri param from Mule 4 to SFDC via APEX call?

I am migrating an existing Mule 3 application to Mule 4 Mule 3 is making an APEX GET call and passing a path param / uri param as well as a query param Here is the source code for Mule 3: <sfdc:...
boomslaw's user avatar
0 votes
0 answers
32 views

Mule Java SDK Module/Connector - java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError [duplicate]

I built a Mule 4 module/connector with the Mule Java SDK using mule-module-batch-ee (4.5.0-20220622) internally. To build the 'batch-manager-connector' project, I used the Maven archetype org.mule....
Julian's user avatar
  • 1
0 votes
1 answer
43 views

How to transform object to array of objects with special rules in DW?

I need to transform an object that looks like this: { myKey: 'abc', att1:'val1', att2:'val2', ,,, attN: 'valN' } to [ {myKey: 'abc', att1:'val1'}, {myKey: 'abc', att2:'...
spoonboy's user avatar
  • 2,614
1 vote
1 answer
55 views

Get XML payload size in MB

I need to check the size of incoming payload that is in the XML format in MB. And if size is over certain MB (example 50 MB) I need to route the flows using choice router. I have issues checking the ...
Zak01's user avatar
  • 17
0 votes
1 answer
49 views

How to remove the trailing hyphen and add it in leading in dataweave

This is my input and I want the desired output, but i am not able to figure it out how to do it using dataweave Input: "2000-" Output: "-2000"
Bikrant Thakur's user avatar
0 votes
1 answer
84 views

How to escape "\" in mule 4?

I have a function which replaces special characters, but i'm not being able to skip the backslash \. I tried to add { searchValue: "\", replaceValue: "\\" } to the searchReplace ...
Arjit Sharma's user avatar
0 votes
1 answer
89 views

Mule 3 in Debug Mode - how do I view payload as JSON?

So this question is specific while running Anypoint Studio 6.x ( 6.6.10 ) in debug mode ( Mule 3 ) Now as a part of the implementation many a times the payload or variables are stored in format ...
boomslaw's user avatar
0 votes
2 answers
67 views

How to get last matching record after the left join in Mulesoft

We have to get the all records from Array1 and only last matching records from Array2. I tried the leftJoin in dataweave but it's matching all records in Array2. Array1: [ { &...
Uday's user avatar
  • 17
2 votes
0 answers
41 views

Mule 4 debug how to maintain history of debug statements in studio

In Mule 4 anypoint studio when I am debugging an application , many a times I need to view the payload in json format , so while in debug view I go here : Evaluate Dataweave expression Here everytime ...
boomslaw's user avatar
0 votes
1 answer
57 views

How to merge values in an array by comparing other common field value in that object in Mule

We have an array of objects below, whose fields address1,mobile,nickName are to be concatenated based on other fields value being common. For example, mobile is an array so when we merge the mobile ...
Uday's user avatar
  • 17
0 votes
1 answer
110 views

Mule API Proxy returns 503 Service Unavailable

I installed a Mule API proxy on premise on a very restricted server. In order to see if the proxy is working I tried the following from the server: curl https://localhost:8080/console/ As expected, ...
MiguelSlv's user avatar
  • 14.4k
0 votes
1 answer
92 views

define xml payload in transform message or set payload in mule 4

I need to define the below payload in transform message to send to different system but while adding in transform message or set payload component it's giving error. Please let me know how i can ...
Devendra's user avatar
  • 219
0 votes
1 answer
39 views

Migrating Mule 3 to Mule 4 - sfdc Query Single

Am migrating an existing Mule 3 api that interacts with Salesforce. In mule 3 we are using Query Single as below: <sfdc:query-single config-ref="XYZ" query="dsql:SELECT abc blah blah&...
boomslaw's user avatar
0 votes
1 answer
81 views

transform and map xml in mule 4

I am trying to transform the xml request but facing issue while mapping the ID parameter. for account_work I have to map the id where type will be Revenue_category_id. for ledger_work I have to map ...
Devendra's user avatar
  • 219
0 votes
0 answers
148 views

Error 403 forbidden accesssing Mule Release EE Repository for a licenced account

I'm trying to modify a Mule API proxy, which i downloaded from Anypoint Platform portal. When I try to build with maven I get the following error: ERROR] Failed to execute goal on project api-gateway-...
MiguelSlv's user avatar
  • 14.4k
0 votes
1 answer
271 views

RAML: example vs examples

While doing Walkthrough 3-3 in mule 4 developer training, I am unable to understand why RAML facet examples works but example doesn't. Environment: Anypoint-Design Centre - API Designer RAML 1.0 ...
Nitin's user avatar
  • 79
0 votes
1 answer
45 views

Unable to download application from OnPrem Servers

I need to change a Mule Proxy API created by the Anypoint portal. To download it I am following the this official guide. To get the JAR file I need to invoke CURL like this: curl -X GET \ https://...
MiguelSlv's user avatar
  • 14.4k
0 votes
0 answers
39 views

How to add a new server to anypoint studio, using a cloned server that had already a mule runtime installed

To install a new server, our IT team cloned a previous server running Mule Runtime 4. On the new server, I removed the previous connection to Anypoint by deleting both Mule agent files, the keystore, ...
MiguelSlv's user avatar
  • 14.4k

1
2 3 4 5
160