Limit on Replace?

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Limit on Replace?

Postby bigi » Tue Jul 22, 2025 2:50 pm

I had a problem some time ago with corruption of the Replace field; this was resolved by making a fresh backup before any update and resaving; since then there's been zero issue.

I've been using BRU heavily to rename many thousand files since with no problem, and the list was upto 435 last time i looked and saved (15-07). I opened today as usual and the list has corrupted the end and truncated to 415 entries - it appears to have overwritten a few entries at the bottom with ones already in the list from earlier on. I performed the normal fix - opened a copy, and updated the corruption and saved as a new file, closed and re-opened. only this time it's truncated to 415 entries and overwritten the end entries as before.

I've just installed 4.0.9 to see if it makes any difference; but i'm wondering if the large number of entries in the list is filling a buffer somewhere and causing it to overwrite?
bigi
 
Posts: 14
Joined: Fri Nov 22, 2024 12:10 am

Re: Limit on Replace?

Postby bigi » Tue Jul 22, 2025 3:44 pm

I've just updated to 4.0.9, cleared the corrupt entries out of the entries list, saved a new file, restarted and then added 10 test entries at the end. save a New file, reloaded and list is down to 415 entries again - only the 1 character of line 415 is still there, all the rest have gone - but all the replace fields are complete.

Before restart - new file:
https://ibb.co/KzbGNqQj

After restart and reload of same file:
https://ibb.co/23wWX82G
bigi
 
Posts: 14
Joined: Fri Nov 22, 2024 12:10 am

Re: Limit on Replace?

Postby bigi » Tue Jul 22, 2025 4:13 pm

Another update, I've just done some checking and it appears the application is truncating the file upon loading. To test, I edited the .bru config file in VS code and added the test entries manually into the search entry list - as expected the replace matching fields are still present.

the file saves and reloads fine in both VS Code and Notepad++; but as soon as i load a copy of this file into BRU it truncates it in the application and overwrites the file. the maximum length of the search field line appears to be 5011 characters (According to VS Code) - anything added after that is truncated (this includes the declaration at the start of the line and the quotes at the end; so 5206 in the actual definitions themselves.
bigi
 
Posts: 14
Joined: Fri Nov 22, 2024 12:10 am

Re: Limit on Replace?

Postby Admin » Wed Jul 23, 2025 1:47 am

Hi, the limit of the entry size in the .BRU file is around 5k, we will increase this to around 10k in 4.0.1.0
Admin
Site Admin
 
Posts: 3019
Joined: Tue Mar 08, 2005 8:39 pm

Re: Limit on Replace?

Postby Admin » Wed Jul 23, 2025 5:38 am

Admin
Site Admin
 
Posts: 3019
Joined: Tue Mar 08, 2005 8:39 pm

Re: Limit on Replace?

Postby bigi » Wed Jul 23, 2025 9:12 am

Awesome - Thanks for the quick fix!
bigi
 
Posts: 14
Joined: Fri Nov 22, 2024 12:10 am


Return to BRU Support