(++English Follows Japanese++)
□DatatableからSelectする処理のエラー
はじめまして。
win7で稼働している既存のRPAをwin10端末に対応させています。
下記のデバックがうまくいかず、お力添え頂けませんでしょうか。
<―――――――――――――――――――――
■周辺処理
・ExcelファイルAからデータを取得してデータテーブルに格納
取得したデータテーブルを変数に格納して整形 ←該当コード
変数データをExcelファイルBへ貼付け
■期待する処理
・データテーブル内の「項目名A」が空行のデータを削除した上で、変数に格納する
■該当コード
TMP_DataRow=DT_Item_Array(TMP_CountA).Select(“項目名A <> ‘’”)
■エラー内容
DataTable Select function cannot perform “<>” operation on System.Double and System.String
■試したデバック
-Select内を修正 →同様のエラー
Select(“項目名A <> “””)
Select(“項目名A<>’’”)
Select(“項目名A<>’ '”)
Select(“項目名A ={0}”)
Select(“項目名A IS NULL”)
Select("[項目名A] <> ‘’") ←new(11/28)
Select("[項目名A]<>’’") ←new(11/28)
-本処理をコメントアウト →次処理でエラー
※次の処理
TMP_DataRow.Count > 0
―――――――――――――――――――――――>
恐らく初歩的なテキスト挿入で躓いているのだと思いますが…。
RPA初心者の上こちらが初投稿のため内容に不備などございましたら恐れ入りますがご指摘頂けますと幸いです。
どうぞよろしくお願いいたします。
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
□Error in processing to select from Datatable
Hello, nice to meet you.
Now I’m making compatible the RPA from win7 to win10.
Could you help me with the following debug?
<―――――――――――――――――――――――
■ Peripheral processing
・ Acquire data from Excel file A and store in data table
Store the acquired data table in a variable and format it. ← Corresponding code
Paste variable data to Excel file B
■ Expected processing
-Delete the data with blank “Item name A” in the data table and store it in the variable
■ The code
TMP_DataRow = DT_Item_Array (TMP_CountA) .Select (“Item name A <> ‘’”)
■Error details
DataTable Select function cannot perform “<>” operation on System.Double and System.String
■ Tried Debug
-Fixed in Select → Same error
Select (“Item name A <>” “”)
Select (“item name A <> ‘’”)
Select (“Item name A <> ‘’”)
Select (“Item name A = {0}”)
Select (“Item name A IS NULL”)
Select("[Item name] <> ‘’") ←new(11/28)
Select("[Item name]<>’’") ←new(11/28)
-Comment out this process → Error in next process
(* Next processing: TMP_DataRow.Count> 0)
―――――――――――――――――――――――>
I think I got bogged at very basic grammer mistake…
I’m sorry but This is the first post for me at this forum and I’m new at RPA itself,
So I would be very appreciate if you could point out any deficiencies in this content.
Thank you.