パブリッシュ時の検証が終わらない

パブリッシュボタンを押した直後に添付画像の状態で止まってしまい、パブリッシュができません。
スクリーンショット 2023-06-29 232645

原因となっていそうな現象があり、プロジェクトを開くと

Object reference not set to an instance of an object.
スクリーンショット 2023-06-29 233647

というエラーが出てくるようになってしまいました。
OKを押せば実行はできますが、プロジェクトを開くときやプロジェクト検証を行うときに出てきます。

※追記
別のPCにもプロジェクトをコピーして開いてみたら、やはり上記のエラーが出てきてパブリッシュはできませんでした。(1枚目の画像と同じ状況です)

解決方法が分かる方がいらっしゃいましたらアドバイスいただけますと幸いです。

Hi @111860

Due to the software updation,Sometimes the Variables and arguments will disappear.
Check the Variables and arguments initialiazation,Properties and their Passage

Hope it helps!!

List型をいくつか使っていますが、それらは全て初期化済みでした。

ReInitialize once and try.

スクリーンショット 2023-06-30 101439

Already initialized.

こちらの件、引き続き情報をお待ちしております。

Hi @111860

Make sure that your variables are passed correctly in the place you want. If it’s not passed, the project will not get published. “Object reference not set to instance of an object” error generally occur when your are not initialized or your output variable is not passed. Try checking that once.

Hope it helps!!
Regards,

こんにちは

取り急ぎ、原因の切り分け:どのxamlあるいはproject設定に起因してこの事象が発生してるかを
確認した方が良いように思えます。

例えばプロジェクト全体を検証用にコピーしたうえで、ワークフロー呼び出しでアクティビティとその呼び出し先xamlを削除して、改善するかを確認する。これを繰り返すことにより、呼び出し先のxamlに原因がある場合は、それを特定できるのではないかと思います。
特定できれば、そのファイルの修正あるいは作り直しで対応できればと思います。

ちなみに、これまでは同プロジェクトのパブリッシュはできていて複数のバージョンがあるのですが、突然できなくなったのはアップデートの影響と考えられますでしょうか?

変化点がそれしかなければ、それの可能性が高いと思いますが、いずれにしましても検証してみないと確かなことは言えませんね...。

ワークフロー呼び出しアクティビティを使用していないため、List変数を使用しているアクティビティと変数を順に削除してみましたが、状況変わりませんでした・・

エラー内容の詳細を念のため貼っておきます。

23.6.1-beta.13324+Branch.release-v23.6.1.Sha.52787b786620e97cba5555379da6e6bb423b3e6b
Object reference not set to an instance of an object.
エラー: System.Exception: Object reference not set to an instance of an object.
   at System.Activities.Presentation.Validation.ValidationService.MarkParents(ValidationError validationError, IEnumerable`1 errorParents, ModelItem source)
   at System.Activities.Presentation.Validation.ValidationService.MarkError(ValidationError validationError, List`1 errorSourcePath, ModelItem source)
   at System.Activities.Presentation.Validation.ValidationService.MarkErrors(ICollection`1 errors, ValidationReason reason, Activity rootActivity)
   at System.Activities.Presentation.Validation.ValidationService.OnValidationWorkCompleted(Tuple`3 input)
   at System.Activities.Presentation.Validation.BackgroundValidationSynchronizer`1.<>c__DisplayClass26_0.<UpdateUI>b__0()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2147467261

パッケージのバージョンは以下です。
スクリーンショット 2023-07-03 151736

他に切り分けができる方法はないでしょうか?

こんにちは

List型というのはどこから出てきた話でしょうか?
ワークフロー呼び出しがないということは巨大な一つのxamlファイルということでしょうか?
そうであれば、内部のアクティビティを部分的に削除していくことにより、問題個所が特定できるかもしれません。

初期化が必要というアドバイスがあったため、List型の問題なのかと思っていました。

はい、ご認識の通りです。
シーケンスレベルで削除してみます。

本件、「要素が出現した時」アクティビティが原因であったことが分かりました。
これに代わって、要素の存在有無を繰り返しに入れるような方法になるかとは思うのですが、他に代替となるアクティビティはないですよね・・?

こんにちは

実現したいことにもよりますが
CheckAppStateをつかうか
あるいは
TriggerScope + ApplicationEventTrigger
あたりになるのではと思います。

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.