Quantcast
Channel: Microsoft Dynamics GP
Viewing all articles
Browse latest Browse all 38722

Forum Post: Troubleshooting GP Macros

$
0
0
I am using GP macros to automate the check selection process – this client has a large number of checks to select and macros seem to be the only way to do so. I am puzzled by an error – Error on line 30: Cannot type to Field VendorID. I have looked at the macro file and see no errors. (see macro text below) This macro works perfectly sometimes and fails at other times. it is the same macro file, not a recreated version. i.e. I can try the macro, get the error. Restart the computer, use the same macro file, and it works. Sometimes, even restarting does not help. Today, I tried to get the error, and it worked perfectly every time, so I can’t even attach a screenshot. Any insight on what could be causing this? would waiting a second or two before typing to field help? If yes, what is the syntax for the wait command? Regards Habib ------------------------ macro code------------------- # DEXVERSION=14.00.0073.000 2 2 ClickHitIE , ' dexterity/.../args=0,1566,24 ' NewActiveWin dictionary 'default' form 'PM_Mass_Voucher_Selection' window 'PM_Mass_Voucher_Selection' ActivateWindow dictionary 'default' form 'PM_Mass_Voucher_Selection' window 'PM_Mass_Voucher_Selection' TypeTo field 'Batch Number' , '151001IRNSTOPAY' MoveTo field '(L) Select By' item 1 # 'Vendor ID' NewActiveWin dictionary 'default' form DiaLog window DiaLog ClickHit field OK NewActiveWin dictionary 'default' form 'PM_Mass_Voucher_Selection' window 'PM_Mass_Voucher_Selection' NewActiveWin dictionary 'default' form 'PM_Batch_Entry' window 'PM_Batch_Entry' ActivateWindow dictionary 'default' form 'PM_Batch_Entry' window 'PM_Batch_Entry' ActivateWindow dictionary 'default' form 'PM_Batch_Entry' window 'PM_Batch_Entry' CommandExec dictionary 'default' form 'PM_Batch_Entry' command 'Save Button_w_PM_Batch_Entry_f_PM_Batch_Entry' ActivateWindow dictionary 'default' form 'PM_Mass_Voucher_Selection' window 'PM_Mass_Voucher_Selection' ActivateWindow dictionary 'default' form 'PM_Mass_Voucher_Selection' window 'PM_Mass_Voucher_Selection' MoveTo field '(L) Start Vendor ID' TypeTo field '(L) Start Vendor ID' , 'PRO7003' MoveTo field '(L) End Vendor ID' MoveTo field 'Insert>> Button I' ClickHit field 'Insert>> Button I' MoveTo field '(L) Select By' item 1 # 'Vendor ID' ClickHit field '(L) Select By' item 6 # 'Document Number' MoveTo field '(L) Start Document Number' TypeTo field '(L) Start Document Number' , '1003930' MoveTo field '(L) End Document Number' MoveTo field 'Insert>> Button I' ClickHit field 'Insert>> Button I' CommandExec dictionary 'default' form 'PM_Mass_Voucher_Selection' command '(L) Build Batch Button_w_PM_Mass_Voucher_Selection_f_PM_Mass_Voucher_Selection' MoveTo field '(L) Start Vendor ID' TypeTo field '(L) Start Vendor ID' , 'NOR7026' MoveTo field '(L) End Vendor ID' MoveTo field 'Insert>> Button I' ClickHit field 'Insert>> Button I' MoveTo field '(L) Select By' item 1 # 'Vendor ID' ClickHit field '(L) Select By' item 6 # 'Document Number' MoveTo field '(L) Start Document Number' TypeTo field '(L) Start Document Number' , '1009617' MoveTo field '(L) End Document Number' MoveTo field 'Insert>> Button I' ClickHit field 'Insert>> Button I' CommandExec dictionary 'default' form 'PM_Mass_Voucher_Selection' command '(L) Add to Batch Button_w_PM_Mass_Voucher_Selection_f_PM_Mass_Voucher_Selection' NewActiveWin dictionary 'default' form DiaLog window DiaLog ClickHit field OK NewActiveWin dictionary 'default' form 'PM_Mass_Voucher_Selection' window 'PM_Mass_Voucher_Selection' MoveTo field '(L) Start Vendor ID' TypeTo field '(L) Start Vendor ID' , 'PRO7009'

Viewing all articles
Browse latest Browse all 38722

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>