Invalid Index

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Liberty
Pro Scripter
Posts: 56
Joined: Wed Jun 06, 2007 11:56 am
Location: Sweden

Invalid Index

Post by Liberty » Wed Jul 22, 2015 10:39 pm

I have all macros in D:\MacroData.

All Macros and Groups have now disappeared in MS.
When I try New Group I get Invalid Index all the time
why I cannot recreate the macros/group structure again.

This situation has now occurred on 2 computers, which is quite unsatisfactory

WHAT TO DO?
Last edited by Liberty on Wed Jul 29, 2015 1:47 pm, edited 1 time in total.

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Invalid Index

Post by Marcus Tettmar » Mon Jul 27, 2015 7:32 am

Hi,

This suggests something has deleted the data files. Have a look in My Documents\Macro Scheduler 14 and you should see backups of the files macro12.dat, groups12.dat and groups12.ini. Try restoring from those.

If that doesn't help, you can start afresh by simply deleting those files. Restart Macro Scheduler and you should then see a blank slate and should be able to recreate your groups and drag in your macro files.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Liberty
Pro Scripter
Posts: 56
Joined: Wed Jun 06, 2007 11:56 am
Location: Sweden

Re: Invalid Index

Post by Liberty » Wed Jul 29, 2015 1:21 pm

Thank you Marcus,

groups.ini seems to be intact

groups.dat and macros.dat are empty.

I have a lot of macros and groups.

Can I use groups.ini and delete only the other ones? This would be helpful.
I have the macro scripts stored in different subfolders following the groups.

If I delete groups.dat and macros.dat will I then be able to create new groups?

The backup you talk about is almost empty. It seems to be the one from the program installation.

But I have some regular backups maybe I could use the 3 files from these.

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Invalid Index

Post by Marcus Tettmar » Thu Jul 30, 2015 12:06 pm

You'd need to delete all of them or you'll risk things being out of sync and causing more problems.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Liberty
Pro Scripter
Posts: 56
Joined: Wed Jun 06, 2007 11:56 am
Location: Sweden

Re: Invalid Index

Post by Liberty » Wed Aug 05, 2015 10:40 am

Thank you. At least I understand what have to be done now.

This is a weak point in Macro Scheduler that should be improved and also be explained in the manual.
The possibility to have the macros stored separately from the programs should be clarified.
Thank you.
Last edited by Liberty on Wed Aug 05, 2015 1:02 pm, edited 1 time in total.

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Invalid Index

Post by Marcus Tettmar » Wed Aug 05, 2015 11:42 am

Hi,

I'm not really sure what you mean - you can store macros wherever you like. They are not stored in the same location as the software.

The data files are needed in order to store things like schedules and hot keys. These are, by default, stored in Documents\Macro Scheduler 14 but you can change that location too.

I don't know why your data files were corrupted, but sometimes third party software, like security software, can have an impact.

As always, with any data files, backups are advised. Macro Scheduler stores backups, and the Documents location is usually backed up by default by backup software / corporate backup solutions. If you aren't taking backups, it would be well worth considering to back up this location.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Liberty
Pro Scripter
Posts: 56
Joined: Wed Jun 06, 2007 11:56 am
Location: Sweden

Re: Invalid Index

Post by Liberty » Wed Aug 05, 2015 1:13 pm

Of course I use regular backups, for data each day.

It was first after this thread that I got information about the 3 essential files. There are often a lot of other files with the names groups and macros in this folder D:\MacroData, which thus are unimportant.

Thank you.

fightcancer
Macro Veteran
Posts: 239
Joined: Fri Apr 15, 2005 8:32 am

Re: Invalid Index

Post by fightcancer » Fri Oct 13, 2017 1:41 am

Liberty wrote:I have all macros in D:\MacroData.

All Macros and Groups have now disappeared in MS.
When I try New Group I get Invalid Index all the time
why I cannot recreate the macros/group structure again.
Same issue here in 14.3.11.

fightcancer
Macro Veteran
Posts: 239
Joined: Fri Apr 15, 2005 8:32 am

Re: Invalid Index

Post by fightcancer » Fri Oct 13, 2017 1:45 am

Marcus Tettmar wrote:This suggests something has deleted the data files. Have a look in My Documents\Macro Scheduler 14 and you should see backups of the files macro12.dat, groups12.dat and groups12.ini. Try restoring from those.
How do I restore from those files please?

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Invalid Index

Post by Marcus Tettmar » Fri Oct 13, 2017 6:37 am

Just rename them.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

fightcancer
Macro Veteran
Posts: 239
Joined: Fri Apr 15, 2005 8:32 am

Re: Invalid Index

Post by fightcancer » Sat Oct 14, 2017 8:58 pm

It didn't help in my case.

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Invalid Index

Post by Marcus Tettmar » Mon Oct 16, 2017 10:36 am

There should be a few backups. Look at the file sizes and/or open them in a text editor to make sure they have data. Use the most recent ones that do. Failing all that you can start over by dragging your .scp files back into Macro Scheduler.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts