1,749 questions
0
votes
1
answer
26
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>
...
1
vote
1
answer
30
views
Where to store key for Secure Configuration Properties?
I encrypted my properties and wanted to use Secure Configuration Properties, but I don't understand where to store the key. I tried setting it in Run configuration Environment, Argumets, and also as ...
1
vote
1
answer
88
views
Mule 4 cache expiry - when does the cache exactly expire?
In my implementation I need to invoke an api which needs a token to be supplied .
This token has a life of 15 minutes .
So what I was implementing was an inmemory cache with the cache expiring after ...
0
votes
0
answers
35
views
How to connect to TeraData in Mule application using trustStore in TLS based on Generic connection?
I'm trying to connect to teraData using Mule application. i'm able to establish connectivity using Generic connection where i pass the db creds via URL. However,
i wanted to establish connectivity ...
0
votes
1
answer
56
views
How to remove namespace from XML in dataweave [duplicate]
Need to remove namespace from XML by keeping everything else as is including the attributes. I tried using replace and update but it does not seem to work. Below is the sample XML where I need to ...
0
votes
2
answers
58
views
Issue Integrating Custom Java Maven Library in Mule Flow
I am new to Mule and Anypoint Studio, and I'm trying to integrate a custom Java Maven library project into a Mule flow. I've followed these steps:
Built the custom library project and ensured it is ...
-2
votes
2
answers
73
views
unable to use password from property file in mule 4
I am not able to use the below mentioned password from property file in mule4.
I am trying like ${db.password} and database connectivity is failing but hardcoded value is working fine. Is it because ...
0
votes
0
answers
78
views
Mule 4 Anypoint studio 7.17 - takes a long time to show properties for connectors like HTTP Request
This is not necessarily a programming question but am getting frustrated with Anypoint studio seemingly 'stuck'for a few seconds before it is able to resolve / display properties for components.
I ...
0
votes
0
answers
50
views
How to use OAuth 2.0 Token Introspection Policy in mule4
I have to apply OAuth 2.0 Token Introspection Policy in mule4 application but not sure how to implement this. I can find below documentation for the same but not sure exactly apply this to code.
https:...
0
votes
0
answers
75
views
how to use google-play-scraper python script in mule 4
My requirement is to use the google play scraper script in mule4 using python script.
I am following this portal https://pypi.org/project/google-play-scraper/ to get the python script.
jython engine ...
0
votes
1
answer
90
views
Batch update of records in MongoDB
I iterated over records in the batch step and in Batch Aggregator I wanted to update all of them at once in mongoDb. Is there a way to update them all together or I need to separately update each one ...
0
votes
0
answers
34
views
Set XML parameters dynamically in transform message
I have a flow that makes a request to soap service, and before the request I need to transform input JSON to XML:
I tried setting Qualified Name as dynamic property:
%dw 2.0
output application/xml
ns ...
0
votes
1
answer
107
views
Unable to resolve value for the parameter in Consume node
In my flow i set variable operation as :payload.operation then in Consume node i want to get it's value
Variable value is set corectly
I also include xml of my flow:
<?xml version="1.0" ...
1
vote
4
answers
161
views
conditional logic for dataweave code in mule 4
I need help on dataweave code. My requirement is to add the status field in the response based on the below criteria.
var manditory_field="D6V_Cod,D6V,DYR_Cod,DYR"
If any of the ...
0
votes
1
answer
69
views
Convert String to Array with numeric values only
I have the below dataweave code (maybe not the best one) to check if an array contains any non-numeric elements. It also check for the number of items in the array.
%dw 2.0
output json
fun ...
0
votes
0
answers
41
views
What should be my response body in raml if i am sending hashmap as response?
I am using sharepoint connector in my api and able to receive response in form of hashmap, i want to send the hashmap response as it is as output, what should i do?
(Note: i have set my raml body ...
1
vote
1
answer
679
views
Maven Base Command Line Behavior with Munit Tests in Anypoint Studio 7.16
I've encountered what seems to be an issue or perhaps a behavior in Anypoint Studio version 7.16. In the Windows -> Preferences -> Maven settings, the default Base command line for builds is:
...
1
vote
1
answer
154
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 ...
0
votes
0
answers
277
views
Unable to set the attribute userAccountControl to 512 on Active Directory using mule4 LDAP connector
I´m trying to replicate the creation of a new user using MuleSoft LDAP connector.
When I create a user manually on Active Directory, the attribute "userAccountControl" is set to the value ...
0
votes
2
answers
2k
views
How do I know the url I need to call an api deployed in CloudHub using anypoint platform? (MuleSoft)
I want to make a request to another api deployed in cloudhub but I am not sure how to call it because I don`t know where is the url,is it possible to get in anypoint platform?
-1
votes
1
answer
131
views
Unable to add additional flows to MuleSoft generated API Proxy Code
I have a mulesoft proxy code that I generated by configuring an HTTP proxy in CloudHub and then downloading it.
The Anypoint Studio project has 3 mule files,
http-proxy.xml
inbound-config.xml
...
0
votes
1
answer
297
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 ...
1
vote
0
answers
110
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 ...
0
votes
0
answers
450
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-...
0
votes
1
answer
418
views
How to update an existing object having multiple key value pairs dynamically?
I have two Json structures.
Input 1 has the structure of the response that needs to be created :
{
"Chats": {
"customerContact": "",
"reply": &...
0
votes
1
answer
563
views
How to convert xml into a single line in DataWeave 2.0?
I need help to convert an input XML into an XML output on a single line, that is without spaces, without line breaks and without tabs.
That is to say show the data followed in one line. Could you ...
0
votes
1
answer
369
views
Handling Negative Numbers in Hex in DataWeave
I am working on retiring a Python Kafka Consumer to use Mule runtime instead.
I have ran into a blocker with DataWeave and bitwise operators, specifically how to handle negative hex numbers.
Currently,...
0
votes
1
answer
451
views
Message remains in flight mode in anypoint mq
I have a flow which submits around 4 salesforce bulk query job details ( all jobs are and will always be already in inCompletes status) to anypoint mq to be processed asynchronously. I am using a ...
0
votes
1
answer
311
views
Create dwl library for common dwl mapping in mule 4
My requirement is to do externalized dwl mapping files outside of the project and not include in src/main/resources folder.
To fulfil the requirement I need suggestion how I can proceed. Please check ...
0
votes
0
answers
525
views
Anypoint MQ messages remains in in-flight and not been processed
I have a flow which submits around 10-20 salesforce bulk query job details to anypoint mq to be processed asynchronously.
I am using normal Queue, Not using FIFO queue and wants process one message at ...
0
votes
0
answers
210
views
problem cluster runtime 4.3 standalone disconnect - Mule Runtime Standalone
I have a problem with one of the servers in a unicast cluster, for a few days a server had been disconnected on the Anypoint Platform, I explain the architecture a bit, we have 2 servers with Mule ...
-1
votes
1
answer
353
views
Getting invalid column type while inserting data in to database
I am using database connector to insert data in database in Mule-4 the insert query statement looks like this. I have tested multiple times. below is the sql query using for inserting data
INSERT ...
0
votes
0
answers
844
views
Getting Invalid Key Store format error when running MUnit Tests in Jenkins
I am enabling SSL in my mulesoft application.
I have added a keyStore in my application in http request connector.
Everything works fine. Deployed to cloudhub by skipping Munits and tested. Everything ...
0
votes
1
answer
598
views
How to insert an Array into a single column in SQL Table using Mule4 DB insert operator
I am trying to insert an array into a single column in the SQL Table. The data type of the column is varchar but I can change it to anything else if required. I am using DB single insert operator and ...
0
votes
2
answers
730
views
Need to change csv header from camel case to snake case in dataweave
I am working on a pipeline to dynamically dump all columns from the salesforce object to the S3 bucket.
I get all columns for a salesforce object using describe object API. I store all columns into a ...
0
votes
1
answer
1k
views
How to frame dynamic salesforce composite query by iterating array
Below is my input and through which I need to frame composite query to Salesforce
{
"headerId": "123",
"Status": "Created",
"OrderId": "...
0
votes
1
answer
167
views
Get last 24 hours data from mongo with mule4
How can I used the mongodb component "find documents" to get the last 24 hours data from collection?
I tried the following query in the component but it didn't work.
Sample:
"createdAt&...
0
votes
2
answers
850
views
Extract lines from input text file to text file with some transformation with Mule 4
I have a requirement where I need to read text file and extract some data and send the extracted to other system for which am unable to do it.
Input file:
1BoraBora Island ...
1
vote
1
answer
343
views
How to remove the duplicate elements in arrays of JSON file using Datawave transformations?
Here I want to remove duplicate accounts with the help of account_id for all accounts in this JSON file. There are 12 accounts in this JSON file need to duplicate accounts to make them unique. someone,...
0
votes
1
answer
754
views
Mulesoft Scheduler is executing twice
I have a flow having scheduler as source.
This scheduler is having a cron expression to get it executed 15th of every month at 4 am.
0 0 4 15 * ? *
But somehowe this flow is getting executed twice. ...
0
votes
1
answer
860
views
Mule 4 is modifying Java object variables
I'm migrating my Mule apps from 3.9.0 to Mule 4.4.0. I'm using a Java object to propagate metadata and other objects across transports. Here is a snippet of that class:
package com.test;
import java....
0
votes
1
answer
147
views
Mule esb 3.8 how to add object variable (HashMap) into payload (HashMap)
Hello need a bit of help to understand how I can merge 2 payloads from db calls into one - final payload.
First payload is like:
[{Name=John, Age=31}]
Second payload is like:
Address=[{Planet=Earth, ...
0
votes
1
answer
192
views
In DataWeave reading CSV with header=false causes the missing first line in the output
In DataWeave reading CSV with header=false causes the missing first line in the output how to fix in dataWeave 1.0
1
vote
1
answer
673
views
.classpath is not getting recreated after adding in .ignore (Anypoint Studio 7)
I'm running into an issue that Anypoint Studio can't create the .classpath for my Mule application project after I have added it the .ignore (which include .settings, .classpath) file. If I also pull ...
0
votes
3
answers
2k
views
RAML structure for Arrays
My JSON input is as below
{
"test" : ["t1259", "t2895"]
}
I want to generate RAML data type for the above as below but it is failing with the validation, please let me ...
0
votes
1
answer
598
views
validate integer value in mule 3 dataweave 1.0
I want to validate the field value as integer and make the test value as integer. In below code if the field value is string then I am getting error. Here I need to configure like if the value is not ...
0
votes
1
answer
1k
views
Undeclared namespace prefix "soapenv" error while using web service consumer
I am using web service consumer in Mule4 and after configuration and deployed the application and triggered the target ARIBA SOAP service in logs I see below error:
org.apache.cxf.binding.soap....
-1
votes
1
answer
1k
views
Add HTTP headers to SOAP web service
I am using Web service consumer in Mule4 and I need to pass http header for passing Authentication details to the SOAP service, in Web service consumer there is headers section but it is for SOAP ...
0
votes
1
answer
456
views
Web service consumer SOAP version is showing error by default
I am trying to configure a SOAP service using web service consumer, as soon as I click on new configuration in the connector configuration, I see SOAP version column is turning into error and when I ...
0
votes
1
answer
125
views
Unable to configure Send Email
I am trying to add a send email functionality in my flow and when I try to place the Send from the Palette to the flow I get the below error
Hitting Ok in the above pop up and tried to create the ...