Power AutomateからDataverseのリレーションを「行の更新」で張ろうとして、エラー『Error identified in Payload provided by the user for Entity』がでたので、対処方法をメモ。
エラー発生の条件
親テーブルのレコードと、子テーブルのレコードを「行の更新」でリレーションを張ろうとしたところ、


エラーが発生。


エラーの内容はこちら。
Error identified in Payload provided by the user for Entity :”, For more information on this error please follow this help link https://go.microsoft.com/fwlink/?linkid=2195293 —-> InnerException : Microsoft.Crm.CrmException: AbsoluteUri – https://orgc523ee4b.crm7.dynamics.com/api/data/v9.1/cr861_parents(38a04bf0-c608-ed11-82e5-000d3a402e18) should contain ServiceRouteUri – https://orgc523ee4b.crm7.dynamics.com/api/data/v9.2
解決方法
エラーの内容で問題だったのは以下の文章で、『v9.2が必要』とある。
AbsoluteUri should contain ServiceRouteUri – https://orgc523ee4b.crm7.dynamics.com/api/data/v9.2
AbsoluteUri should contain ServiceRouteUri – https://orgc523ee4b.crm7.dynamics.com/api/data/v9.2
そこで取得したOData IDを見てみると、「v9.1」になっているので、


これをreplace関数で9.1から9.2に置き換えたところ、
※Odataの指定についてはバージョンの差異なしのため

※Odataの指定についてはバージョンの差異なしのため

無事動作。




ということで、「行の更新」でリレーションを貼る場合、今後はv9.2を使う必要があるらしい。
おまけ1:レコードの作成日は関係ない
先ほど作成したParentレコードの作成日が古い(2022年7月)からOData IDがv9.1なのかと思って、新しくレコードを作成し、


リレーションを貼ろうとしたところ、


こちらもOData IDはv9.1でダメだった。


ということで、OData IDのバージョンと、レコードの作成日は関係ないらしい。
おまけ2:アクション「行を関連付ける」はv9.1で動く
ちなみに、行を関連付けるアクションでリレーションを設定してみたら、


v9.1で問題なく動作。


この辺できれば動作を合わせてほしい。。。
コメント