Questions tagged [anypoint-studio]

Anypoint Studio (formerly know as Mule Studio) is an Eclipse-based integration development environment from MuleSoft.

1133 questions
-1
votes
1 answer

Update a Nested JSON object in MuleSoft DataWeave

Do I have a JSON object that looks like: {"application":{"desiredState":"STOPPED"}} I need to create this object at runtime in DataWeave based on the value of desiredState passed at runtime which could be STOPPED or STARTED. How can I do that in…
-1
votes
1 answer

mapping payload with json object in dataweave

What I'm trying to do is map the CodeOT to each object in my payload such as : null/0 get the value 1 1 to 5 get the value 2 and 6 to 9 get the value 3 I am lost in how to do it as I'm new to dataweave example of payload : { "refSig" :…
Zyoumir
  • 33
  • 6
-1
votes
1 answer

Mule esb 3.8 how to add variable into payload?

let say I have payload: { Name=User1, Age=29 } and variable: { Address=Planet Earth} I want to have a check if that variable not null then add it into payload. So final result will be: { Name=User1, Age=29, Address=Planet Earth } How?…
Gorodeckij Dimitrij
  • 4,209
  • 2
  • 17
  • 21
-1
votes
1 answer

Mulesoft Anypoint Studio will not let me connect to SQL Server database

I continue to get a error saying: Error trying to load driver: com.microsoft.sqlserver.jdbc.SQLServerDriver : Cannot load class 'com.microsoft.sqlserver.jdbc.SQLServerDriver': Class 'com.microsoft.sqlserver.jdbc.SQLServerDriver' has no package…
aquile hollins
  • 161
  • 1
  • 8
-1
votes
1 answer

Removal of Duplicates from payload in mule 4

How to remove duplicate object from payload. My requirement is I have a websocket connector which provides payload (a object) every second or sometimes after few hours,we will be receiving messages, In those few entries we will be duplicate records.…
-1
votes
2 answers

Compare fields in two arrays and replace values if certain condition matched

I need to compare two arrays and replace values if id field is matched between these arrays. Below are the two sample arrays: array1 = [ { "Id": "test1", "Date": "2021-11-05T12:53:00.000Z", "name": "data" }, …
Zak01
  • 7
  • 3
-1
votes
1 answer

Message body was 'null', which is not a value of a supported type

Message body was 'null', which is not a value of a supported type ERROR I need to publish my payload which is: { "items": { "compressString": "Unquitternuncaganayunganadornuncaabandona", "index": [2,10,16,21,23,26,34,40] …
-1
votes
2 answers

"Cannot coerce Null to String" in mule 4

%dw 2.0 import * from dw::core::Binaries output application/json var userCredentials = vars.userCredentials.userName as String ++ ":" ++ vars.userCredentials.password as String --- "Basic "++ toBase64(userCredentials as String) Error…
-1
votes
3 answers

Incorrect output from Dataweave 2.0

I need help on Dataweave 2.0 code for the output which I am receiving input as below: Input - 0000000123456789 Output should be - 0123456789 How can I fix this?
Ravi
  • 21
  • 2
  • 7
-1
votes
1 answer

How to centralise application properties outside project structure in mule 4

I have a requirement to keep all property file outside project in mule 4. I would appreciate any help regarding this. If there is any way to access property files from outside. I was trying zuul reffering to this link. But there is no support for…
-1
votes
1 answer

How to create a flow in runtime in mule 4

I want to create a new mule flow in runtime based on a flow-template. I found that Java module in mule 4 may help me with this, so in my main flow, I tried to invoke Java instance method:
-1
votes
1 answer

How to run the mule job based on an event

i want to run my mule flow only when the file arrives at a particular path.How to do that. since event wait is not there in mulesoft, i thought of running the job every 30 minutes .So that it check the file and run. But the problem here is, it is…
gunjan gupta
  • 51
  • 1
  • 12
-1
votes
1 answer

Need help on converting date from number to string format in Mule4

We have a requirement wherein we have to convert the date obtained in number format to String format using data weave 2.0. Below is the snippet of input date that we receive, want to perform transformations on that value.
Manvitha
  • 21
  • 3
-1
votes
1 answer

Convert HTML to Pdf in Mule 4

Input payload has html content, which is to be converted to PDF using Mule 4. That PDF will be sent as an attachment to other end point. Any suggestions? Thanks
ssdg
  • 97
  • 1
  • 3
  • 12
-1
votes
1 answer

Too many child contexts nested error in Anypoint Studio

I'm using Mule 4.2 and Anypoint Studio 7.3. I have a flow which has an HTTP request and scatter gather request. The HTTP request connector calls an API and returns a page size of 25. The API results are paged through by calling the same flow again…
user3165854
  • 1,505
  • 8
  • 48
  • 100