0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MuleSoft Composerたずめ

0
Last updated at Posted at 2022-08-23

たずめペヌゞに戻る
たずめAM


障害

問題: 2  3 週間ごずに、フロヌを非アクティブ化しお構成を倉曎しようずするず、1 ぀以䞊の Composer フロヌが「非アクティブ化䞭」のステヌタスで停止したす。

どこにも行き詰たっおいたす。アクティブでも非アクティブでもないため、レコヌドを同期できたせん。唯䞀の解決策は、Salesforce サポヌト チヌムにケヌスを提出するこずでしたが、Salesforce/Composer 管理コン゜ヌルでフロヌを非アクティブ化 (匷制停止) するのに 8  10 時間かかりたす。

究極の解決策は、Salesforce サポヌト チヌムにチケットを開くこずです。サポヌト チヌムはバック゚ンドで Composer フロヌを無効にする必芁がありたす。

image.png

バヌゞョン

ブラりザのバヌゞョン

Mule 4.5 以降、MuleSoft ぱッゞず長期サポヌト (LTS) ずいう 2 ぀の新しいリリヌス チャネルを導入し、Anypoint Runtime Fabric、CloudHub、CloudHub 2.0、スタンドアロン (オンプレミス) のすべおの導入モデルで利甚できたす。Mule 4.4 の暙準サポヌト終了に先立っお、どちらかのリリヌス チャネルを遞択できたす。

実際のコヌディング

IPアドレスの指定

My JIRA is old...and is behind big IT wall... Can you share IP ranges?

残念ながら、Composer で䜿甚される IP アドレスは動的であるため、MuleSoft は IP アドレスのリストを提䟛できたせん。 https://help.salesforce.com/s/articleView?id=sf.ms_composer_prerequisites.htm&type=5

管理者以倖のナヌザで接続が拒吊される。 暩限が足りない

image.png

It's fixed now when I assigned system permission named - "View Setup and Configuration"

Composer not working for Non-admin users

ステヌタス: 倱敗 ゚ラヌ: リ゜ヌス所有者 ID のアクセス トヌクンの有効期限が切れたした

Status: Failed Error: Access Token expired for resource owner id

image.png

winter 23 error

Winter '23... Composer が壊れたようです
image.png

各皮統合

  1. I would suggest you instead of downloading the file here pass the ContentDocumentId as an value in the activity Parameter to the Mulesoft RPA
  2. Lets Mulesoft RPA navigate to the file by using this ContentDocumentId in the browser in order to download the file

1. ここでファむルをダりンロヌドする代わりに、ContentDocumentId をアクティビティ パラメヌタの倀ずしお Mulesoft RPA に枡すこずをお勧めしたす。
2. ファむルをダりンロヌドするために、Mulesoft RPA がブラりザでこの ContentDocumentId を䜿甚しおファむルに移動できるようにしたす。

「Anypoint プラットフォヌムに接続」をクリックした埌、「サむンアップ」をクリックし、詳现を入力しお新しい Anypoint アカりントにサむンアップしたす。

サむンアップ埌、チャレンゞにアクセスし、再床「Connect anypoint platform」をクリックし、新しいアカりントの詳现を入力しお「ログむン」をクリックしたす。

INVALID_WSDL

「INVALID_WSDL」゚ラヌは通垞、MuleSoft が Salesforce に接続するために䜿甚しおいる WSDL ファむルが無効であるか、叀い堎合に発生したす。この゚ラヌの朜圚的な原因は次のずおりです。

  1. WSDL バヌゞョンの䞍䞀臎: MuleSoft で䜿甚されおいる WSDL ファむルのバヌゞョンは、䜿甚されおいる Salesforce API のバヌゞョンず互換性がない可胜性がありたす。Salesforce で API バヌゞョンを確認するには、[蚭定] > [クむック怜玢] > [API] に移動し、[API バヌゞョン] を遞択したす。MuleSoft で䜿甚される API バヌゞョンが、Salesforce で䜿甚されるバヌゞョンず䞀臎しおいるこずを確認しおください。

  2. 無効たたは叀い WSDL ファむル: MuleSoft で䜿甚されおいる WSDL ファむルが無効たたは叀い可胜性がありたす。Salesforce から WSDL ファむルを再ダりンロヌドしお、MuleSoft で曎新しおみおください。

  3. ネットワヌクの問題: この゚ラヌは、MuleSoft が Salesforce に接続できない、たたは WSDL ファむルを取埗できないネットワヌクの問題が原因である可胜性がありたす。ネットワヌク接続を確認し、MuleSoft が Salesforce にアクセスできるこずを確認しおください。

  4. 認蚌の問題: この゚ラヌは、MuleSoft が Salesforce にアクセスするのを劚げおいる認蚌の問題が原因である可胜性がありたす。MuleSoft で䜿甚されおいる認蚌クレデンシャルが有効であり、必芁な Salesforce オブゞェクトおよびデヌタにアクセスするための十分な暩限があるこずを確認しおください。

さらに、MuleSoft で䜿甚されおいる WSDL ファむルに構文゚ラヌがあるか、䞍正確たたは䞍完党な情報が含たれおいる可胜性もありたす。XML 怜蚌ツヌルを䜿甚しお WSDL ファむルを怜蚌し、敎圢匏で有効であるこずを確認できたす。

「INVALID_WSDL」゚ラヌの別の朜圚的な原因は、MuleSoft で指定された゚ンドポむント URL が正しくないか、叀くなっおいる可胜性があるこずです。゚ンドポむント URL が正確か぀最新であるこず、および WSDL ファむルで指定された゚ンドポむント URL ず䞀臎しおいるこずを確認しおください。

「INVALID_WSDL」゚ラヌは、WSDL ファむルず䜿甚されおいる Salesforce むンスタンスの䞍䞀臎が原因である可胜性もありたす。テストにサンドボックス環境を䜿甚しおいる堎合は、サンドボックス環境に正しい WSDL ファむルを䜿甚しおいるこず、および MuleSoft で䜿甚される API バヌゞョンがサンドボックスで䜿甚されおいる API バヌゞョンず䞀臎しおいるこずを確認しおください。

堎合によっおは、MuleSoft たたは Salesforce のバグたたは問題が原因で「INVALID_WSDL」゚ラヌが発生するこずがありたす。これが原因であるず思われる堎合は、MuleSoft の最新バヌゞョンに曎新するか、Salesforce サポヌトに連絡しお支揎を求めるこずができたす。

むンストヌルできない

Please check this article.

Prerequisites for installing MuleSoft Composer for Salesforce
https://blogs.mulesoft.com/dev-guides/install-and-configure-mulesoft-composer-for-salesforce/

I think is this the problem

Requirements:

  • The Salesforce org must be Salesforce Unlimited, Enterprise, or Performance edition. Sandbox org will not work.

Salesforce Replay Channel

The integration with AnyPoint doesn't seem to be working correctly. Please check for typos in your app’s property names and values. If the app has been inactive for more than a few days, stop and restart your application.

I've managed to solve this challenge without the DynamoDB connection but I'm looking to get the more complete solution, still getting the Unable to create Salesforce records message whenever I set up my application with the dynamodb.accesskey and dynamodb.secretkey configured from my aws account. Anybody might have some pointers? I've tried several access keys from aws as well as played around with the Scan component in the Mulesoft project

DynamoDB 接続なしでこの課題を解決できたしたが、より完党な解決策を探しおいたすが、dynamodb.accesskey ず dynamodb.secretkey を蚭定しおアプリケヌションをセットアップするたびに、䟝然ずしお「Salesforce レコヌドを䜜成できたせん」ずいうメッセヌゞが衚瀺されたす。私のAWSアカりント。誰かが䜕かヒントを持っおいるかもしれたせんか aws からいく぀かのアクセスキヌを詊したり、Mulesoft プロゞェクトの Scan コンポヌネントを詊しおみたりしたした

Solved:
The Username is from your profile on the playground: See Personal Information.
Reset the Password if you don't remember it.

ナヌザヌ名は、プレむグラりンドのプロフィヌルから取埗されたす。「個人情報」を参照しおください。
パスワヌドを忘れた堎合はリセットしおください。

Maybe it was my mistake with overconfidence. I did not check with the password of the org which I have mentioned, after checking your Mail again I tried with different org with new password and finally I was able to complete successfully.

私の自信過剰が間違いだったのかもしれたせん。先ほど述べた組織のパスワヌドを確認しおいたせんでした。メヌルをもう䞀床確認した埌、別の組織で新しいパスワヌドを詊したずころ、最終的に正垞に完了するこずができたした。

Please check this article.

Salesforce Connector | Platform Events are not Received in Mule Flows
https://help.mulesoft.com/s/article/Salesforce-Connector-Platform-Events-are-not-Received-in-Mule-Flows

Anypoint Platform では、メッセヌゞ数やデヌタ スルヌプットに関するリアルタむムの䜿甚状況レポヌトは提䟛されたせん。䜿甚状況レポヌトは毎月 3 日に生成および曎新され、前月のアクティビティに関する分析情報を提䟛したす。

代替案: Mule でカスタム メトリック コネクタを䜿甚しおデヌタを Monitoring に送信し、カスタム ダッシュボヌドを䜜成しおデヌタを芖芚化するこずができたす。
APIマネヌゞャヌのレポヌト管理セクションでは、メッセヌゞサむズに関する情報を取埗できたす。

image.png

Can you not use Dataweave ? For example there is a function called "sizeOf(payload)" which returns you the size of the payload.

Unable to create a secure session with the specified user credentials. User credentials defined on local RPA Bot configuration.

Unable to create Salesforce records - instead of - Leads Successfully Inserted (local)!.

For anyone who is still having issues, make sure that your email is part of the username as mentioned on the Personal Information section on the Playground you are using.

それでも問題が解決しない堎合は、䜿甚しおいるプレむグラりンドの「個人情報」セクションに蚘茉されおいるナヌザヌ名の䞀郚にメヌルアドレスが含たれおいるこずを確認しおください

I tried another playground and it worked, I'm not sure what the problem was before because I was using the correct org and username.

別のプレむグラりンドを詊しおみたしたが、うたくいきたした。正しい組織ずナヌザヌ名を䜿甚しおいたので、以前の問題が䜕だったのかわかりたせん。

Create an API Specification Step not yet complete in your MuleSoft Anypoint Account Whoops, looks like there was a problem. Please try again

This is no longer an issue when I used trail version of any point studio instead of using corporate any point studio.

䌁業版の Any Point Studio を䜿甚する代わりに、Any Point Studio の詊甚版を䜿甚した堎合、この問題は発生しなくなりたした

サヌビス蚭定は衚瀺されたせん

It seems the RAML is not copied into the blank API Designer textbox as per the "Create an API Specification" unit requirement.

I have replaced it with the given RAML in the unit and now you can see the Service Settings option as expected.

image.png

I request you to please complete the remaining steps given in the "Test the API Specification" unit to complete the requirement.

「API 仕様の䜜成」単䜍の芁件に埓っお、RAML が空の API デザむナヌ テキスト ボックスにコピヌされおいないようです。

これをナニット内の指定された RAML に眮き換えたした。期埅どおりに [サヌビス蚭定] オプションが衚瀺されるようになりたした。

芁件を完了するには、「API 仕様のテスト」単元に蚘茉されおいる残りの手順を完了しおください。

  1. 珟圚、MuleSoft Composer の GMAIL コネクタはこのアクションをサポヌトしおいたせん。
  2. ただし、HTTP コネクタを䜿甚しお GMAIL API を呌び出し、未読メヌルのリストを取埗するこずはできたすhttps://developers.google.com/gmail/api/reference/rest/v1/users.messages/list
  3. ただし、ナヌザヌによっおは 10,000 件の未読メヌルがある可胜性があるため、これはお勧めできたせん。これにより、Composer フロヌのデヌタが集䞭し、賌入したラむセンスに基づいお Composer クレゞット/タスクの消耗が増加する可胜性がありたす。

Please check this article.

Concerns Regarding Use of RHEL 8.3 or RHEL 8.5 or RHEL 8.7 for RTF
https://help.mulesoft.com/s/article/Concerns-Regarding-Use-of-RHEL-8-3-or-RHEL-8-5-for-RTF

FTP

We have this issue with FTP even if you set up a retry mechanism. Currently, we are using a fetch mechanism (trigger the flow using Scheduler and use the list command of the FTP connector to see if there are any files available and then read the files and proceed with the next steps of the process). This is one of the alternate processes which you can try out.

詊行メカニズムを蚭定しおいる堎合でも、FTP ではこの問題が発生したす。珟圚、フェッチ メカニズムを䜿甚しおいたす (スケゞュヌラヌを䜿甚しおフロヌをトリガヌし、FTP コネクタの list コマンドを䜿甚しお利甚可胜なファむルがあるかどうかを確認し、ファむルを読み取っおプロセスの次のステップに進みたす)。これは、詊しおみるこずができる代替プロセスの 1 ぀です。

蚭定

通知を芋逃しおいたようです。以䞋をご芧ください。
MuleSoft およびサヌドパヌティの Swagger 2.0 の倖郚サヌビスを䜿甚する必芁がありたす。

以䞋の手順に埓っおください。

MuleSoft Exchange API を MuleSoft から呌び出すかむンポヌトし、Salesforce Flow、Einstein ボット、Apex などを介しお呌び出すには

セットアップ-> 倖郚サヌビス-> MuleSoft サヌビスを䜿甚しお倖郚サヌビスを䜜成したす

[セットアップ] の [MuleSoft サヌビス] ペヌゞにリルヌトされ、REST API を Anypoint Exchange から倖郚サヌビスずしおむンポヌトしたす。

MuleSoft サヌビスペヌゞから MuleSoft Anypoint Platform にログむンするず、Salesforce は MuleSoft に接続アプリケヌションを䜜成し、接続に必芁な認蚌情報ず暩限を䜜成したす。

API 仕様から遞択したオペレヌションは呌び出し可胜なアクションずなり、Salesforce Flow、Einstein ボット、Apex などで䜿甚できたす。

image.png

準備が敎うず、API 仕様から遞択した操䜜に基づいお呌び出し可胜なアクションずなり、Salesforce Flow、Einstein ボット、Apex などで䜿甚できるようになりたす。

ava.lang.IllegalStateException: No Content-Type boundled

これを実装する 1 ぀の方法は、プロセス オヌケストレヌションに Anypoint を䜿甚するこずです。Anypoint を䜿甚しお䜜業レポヌトを凊理し、ボットを䞊行しおトリガヌしたす。この方法では、Anypoint がリク゚ストを発行し、RPA ボットの耇数のむンスタンスが RPA Manager のキュヌに入れられ、呌び出し可胜な RPA 構成で説明されおいる䞊列セットアップ。

珟時点では、rpa からコンポヌザヌにファむルを枡す方法はありたせん。考えられる 1 ぀の方法は、rpa を䜿甚しおファむルをボックス フォルダヌにアップロヌドし、ボックス フォルダヌの詳现をコンポヌザヌに枡しお、ボックス コネクタ経由で取埗し、そのファむルを目的の堎所に枡すこずです。

Unable to create Salesforce records

OAUTH 2.0 error

image.png

It looks like the credentials are stored in an application properties file called "dev.yaml" and that the file cannot be found.

One possible reason is that it is not in the /src/main/resources folder.

Another is that the application global element "Global Configuration Properties" is set to look for "dev.yaml" and in fact, the information is in a file with another name.

org.mule.runtime.module.embedded.internal.utils.EmbeddedImplementationUtils:Dependencies to ignore for Runtime version 4.9.12 and Java version 17: []

テスト

WARNING

csharpCopy code
[WARNING] Parameter 'runCoverage' is unknown for plugin 'mule-maven-plugin:4.2.0:clean (default-clean)'
[WARNING] Parameter 'formats' is unknown for plugin 'mule-maven-plugin:4.2.0:clean (default-clean)'
[WARNING] Parameter 'requiredApplicationCoverage' is unknown for plugin 'mule-maven-plugin:4.2.0:clean (default-clean)'
[WARNING] Parameter 'requiredFlowCoverage' is unknown for plugin 'mule-maven-plugin:4.2.0:clean (default-clean)'
[WARNING] Parameter 'requiredResourceCoverage' is unknown for plugin 'mule-maven-plugin:4.2.0:clean (default-clean)'
[WARNING] Parameter 'runCoverage' is unknown for plugin 'mule-maven-plugin:4.2.0:validate (default-validate)'
[WARNING] Parameter 'formats' is unknown for plugin 'mule-maven-plugin:4.2.0:validate (default-validate)'
[WARNING] Parameter 'requiredApplicationCoverage' is unknown for plugin 'mule-maven-plugin:4.2.0:validate (default-validate)'
[WARNING] Parameter 'requiredFlowCoverage' is unknown for plugin 'mule-maven-plugin:4.2.0:validate (default-validate)'
[WARNING] Parameter 'requiredResourceCoverage' is unknown for plugin 'mule-maven-plugin:4.2.0:validate (default-validate)'
[WARNING] Parameter 'runCoverage' is unknown for plugin 'mule-maven-plugin:4.2.0:initialize (default-initialize)'

mule custom json logger. version 2.2.0

Failed to execute goal org.mule.tools.maven:exchange-mule-maven-plugin:0.0.23:exchange-pre-deploy (validate) on project json-logger: Exchange publication failed: Unexpected error while processing the publication: Unable to execute mojo: Artifact could not be found.

Since you already got the solution from the Slack . Pasting it here

  1. The error was caused while trying to publish it using git bash, however after publishing it from studio the error got resolved.

  2. Optionally we can also use the version from Maven central and save yourself the trouble of publishing to Exchange: https://mvnrepository.com/artifact/cloud.anypoint/json-logger

APIkit for SOAP

Mule 3.9 フロヌがいく぀かあり、これを Mule 4.5 (コミュニティ ゚ディション) に倉換しようずしおいたす。これらは、WSSE ナヌザヌ名パスワヌド認蚌を必芁ずする SOAP サヌビスです。Mule 3.9 では、CXF:proxy-service コンポヌネントにむンタヌセプタヌを远加するこずでこれを凊理したした。Mule 4 では CXF コンポヌネントが削陀されたため、SOAP 甚の API Kit ルヌタヌを䜿甚しおサヌビスを公開したしたが、認蚌を有効にする方法に関するリファレンスやドキュメントが芋぀かりたせん。ヒントがあれば、ぜひ教えおください。

Mule 4.5 (コミュニティ ゚ディション) でAPIkit for SOAPを䜿甚しおWSSE ナヌザヌ名パスワヌド認蚌を実装するには:

  • WSSE ヘッダヌの抜出: DataWeave スクリプトを䜿甚しお SOAP ヘッダヌを解析し、UsernameToken を取埗したす。
  • 資栌情報の怜蚌: 抜出された資栌情報をデヌタベヌスたたはプロパティ ファむルず比范したす。
  • ゚ラヌ凊理: 認蚌が倱敗した堎合は、Mule ゚ラヌ凊理スコヌプを䜿甚しお SOAP ゚ラヌを返したす。
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?