Re: [GNC] Fwd: Gnucash

2023-08-25 Thread David Cousens
Maf,

Windows after 95 had a maximum PATH length of 256 characters in Win32 apps but
after Windows 10 V1067 it is 32767 chars but use of this is apparently an option
(not a Windows user) requiring setting of the registry key
HKLM\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled to a value of
1 (see post in
https://stackoverflow.com/questions/57807466/what-is-the-maximum-filename-length-in-windows-10-java-would-try-catch-would
for details)

Barry's problems seem to be more to do with Window's housekeeping than specific
GnuCash problems. I have GnuCash on a Windows 11 system my wife's) as well as
Linux Mint sharing the same data file from a dropbox server without any
difficulties. I have several sets of books (i.e. different GnuCash data files)
but I have made it a practice to keep each separate data file/set of books in
its own sub-directory/folder which keeps all the relevant backup and logfiles in
the one place. It also makes backing up the data easy as you just backup the
whole directory

Barry do you have all the gnucash data files and their associated backups and
log files in a single subdirectory/folder of your user directory. If you don't
it may be advisable to sort that out first. 

The main data files have the format 
.gnucash

the backup files
.gnucash..gnucash

and the log files
,gnucash..log

where  is replaced by the name you gave your file and  has
the format "mmddhhmmss".

My practice is to keep there in a sub-directory with the name  which
makes finding the datafiles easy and all of the  separate datafile directories
are under a directory "GnuCash_Data_Files" in my user directory which makes them
easy to find.


If you have files with a double timestamp e.g.
.gnucash..gnucash..gnucash
it usually means you have opened up one of the backup files rather than the main
datafile .gnucash at some point.

If you do a 
dir  *.* /T:C >file_creation.txt
dir *.* /T:A > file_access.txt

in command window after changing directory to the directory your gnucash
datafiles are in and then attach the file_creation.txt and file_access.txt to a
message to the list we may be able to give you more assistance in sorting out
which files are which. This will list the filenames and their creation dates.

David Cousens

On Sat, 2023-08-26 at 00:30 +0100, Maf. King wrote:
> I've just had a thought on a possible reason the original file could not be 
> saved.  I may be barking up the wrong tree.
> 
> Does Win have a maximum length for a filename?
> 
> If Barry (OP) has been repeatedly opening and working on backups and backups 
> of backups etc.., is it possible that repeated time-stamps have hit some sort 
> of string-length limit (either in Win, GC, Gnome-libs or whatever layer)??
> 
> Last time I was actively using MS for anything regularly, the filename length 
> limit was 8+3 ... so I'll defer to pretty much anyone's opinion on this! 
> 
> Maf
> 
> 
> 
> 
> On Friday, 25 August 2023 17:09:54 BST David Carlson wrote:
> > Barry,
> > 
> > Please do not send messages to individuals on the Gnucash-user list.
> > I have no idea what did not go through in that prior email because it
> > didn't go through.
> > Then your next sentence confuses me too because I cannot tell if it is a
> > comment about the user list, about the GnuCash program. about your Email
> > app or about how permissions for users works in Windows.
> > 
> > -- Forwarded message -
> > From: Barry Mahon 
> > Date: Fri, Aug 25, 2023 at 10:24 AM
> > Subject: Gnucash
> > To: 
> > 
> > 
> > Thanks to all.
> > 
> > On the issue of rights, I have never had any issues before this saga, so
> > should I assume I have had 'rights' to save documents under administrato??
> > 
> > When you say 'truncated' does that mean you cannot see the CaptureWiz
> > images?? I have had issues all along with Gnucash needing specific file
> > types to display files for messages, does that apply to gnucash-user?? For
> > reasons I don't understand I have never been able to copy files from Gnu in
> > my MS Windows10 to the 'required' format, for queries about Gnucash!!
> > Quite frustrating.
> > 
> > Finbar
> 
> 
> 
> 
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Fwd: Gnucash

2023-08-25 Thread Jeff

On 26/8/23 11:46, Stan Brown (using GC 4.14) wrote:

On 2023-08-25 16:30, Maf. King wrote:

I've just had a thought on a possible reason the original file could not be
saved.  I may be barking up the wrong tree.

Does Win have a maximum length for a filename?

It does, both for filename specifically (see below) and for total of
path+filename.  But recent versions of Windows have
increased it to the point where real-life use is unlikely to hit the limit.

However, "In the Windows API [for use by applications, as opposed to
components of Windows itself], the maximum length for a path is
MAX_PATH, which is defined as 260 characters. A local path is structured
in the following order: drive letter, colon, backslash, name components
separated by backslashes, and a terminating null character."
That limit does still exist, I have just been dealing with it where a 
particular file would not open in LibreOffice Writer due to the limit 
(actually it would open if LibreOffice was open and the file was opened 
from inside LibreOffice, but it would not open if double clicked, while 
all other (shorter) files opened fine via both methods).  It also did 
strange things at the File Explorer level, such as not allowing the file 
to copied to the same folder, with a suggested name change.  So the 
issue affected both 3rd Party apps (LibreOffice) and Windows core apps 
(Explorer).  I could see the possibility of the issue affecting GnuCash.

I doubt that file save dialogs are be affected by that, since they're
part of Windows, but maybe.

May well be, as above.

Later in the same article, there is a procedure to remove that
limitation in the Windows API, if you're in Windows 10 or 11. I hesitate
to suggest that Barry try that procedure himself, because it involves
editing the Windows Registry. However, anyone who's comfortable with
Registry edits could easily follow the directions to do it for him.
Unfortunately the registry change isn't honoured by all apps.  Some have 
the newly increased limit, and some don't.


This may or may not be the issue with OP, but there is a fair chance 
that the maximum limit has been reached.


Regards,
Jeff.
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Profit and loss report

2023-08-25 Thread Stan Brown (using GC 4.14)
On 2023-08-25 12:31, Roger Lewry via gnucash-user wrote:
> Please can anyone tell me if it is possible to generate a P&L report
> for a previous accounting period? I have been able to create a report
> for the period from 1 January 2023 to the present time but cannot see
> how to specify a different period. For example I would like to have a
> report for the calendar year 2019.
Create your report and press the Options icon in the top row. Select the
General tab, and you can select dates. Click Apply or OK.

If you don't want so much specific dates as "last month", you can select
those relative dates on that options screen. Having done that, you might
then want to select Save Report Configuration As, and then ion future
months you can use can select that report from the saved configurations
with no need to reset the dates.


Stan Brown
Tehachapi, CA, USA
https://BrownMath.com/
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Fwd: Gnucash

2023-08-25 Thread Stan Brown (using GC 4.14)
On 2023-08-25 16:30, Maf. King wrote:
> I've just had a thought on a possible reason the original file could not be 
> saved.  I may be barking up the wrong tree.
> 
> Does Win have a maximum length for a filename?

It does, both for filename specifically (see below) and for total of
path+filename.  But recent versions of Windows have
increased it to the point where real-life use is unlikely to hit the limit.

However, "In the Windows API [for use by applications, as opposed to
components of Windows itself], the maximum length for a path is
MAX_PATH, which is defined as 260 characters. A local path is structured
in the following order: drive letter, colon, backslash, name components
separated by backslashes, and a terminating null character."



I doubt that file save dialogs are be affected by that, since they're
part of Windows, but maybe.

Later in the same article, there is a procedure to remove that
limitation in the Windows API, if you're in Windows 10 or 11. I hesitate
to suggest that Barry try that procedure himself, because it involves
editing the Windows Registry. However, anyone who's comfortable with
Registry edits could easily follow the directions to do it for him.

> If Barry (OP) has been repeatedly opening and working on backups and backups 
> of backups etc.., is it possible that repeated time-stamps have hit some sort 
> of string-length limit (either in Win, GC, Gnome-libs or whatever layer)??
> 
> Last time I was actively using MS for anything regularly, the filename length 
> limit was 8+3 ... so I'll defer to pretty much anyone's opinion on this! 

That limit was increased to 254 (or maybe 199) about 20 years ago, with
the release of Windows XP. No blame to you for not knowing, if you don't
use Windows.




Stan Brown
Tehachapi, CA, USA
https://BrownMath.com
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Fwd: Gnucash

2023-08-25 Thread Maf. King
I've just had a thought on a possible reason the original file could not be 
saved.  I may be barking up the wrong tree.

Does Win have a maximum length for a filename?

If Barry (OP) has been repeatedly opening and working on backups and backups 
of backups etc.., is it possible that repeated time-stamps have hit some sort 
of string-length limit (either in Win, GC, Gnome-libs or whatever layer)??

Last time I was actively using MS for anything regularly, the filename length 
limit was 8+3 ... so I'll defer to pretty much anyone's opinion on this! 

Maf




On Friday, 25 August 2023 17:09:54 BST David Carlson wrote:
> Barry,
> 
> Please do not send messages to individuals on the Gnucash-user list.
> I have no idea what did not go through in that prior email because it
> didn't go through.
> Then your next sentence confuses me too because I cannot tell if it is a
> comment about the user list, about the GnuCash program. about your Email
> app or about how permissions for users works in Windows.
> 
> -- Forwarded message -
> From: Barry Mahon 
> Date: Fri, Aug 25, 2023 at 10:24 AM
> Subject: Gnucash
> To: 
> 
> 
> Thanks to all.
> 
> On the issue of rights, I have never had any issues before this saga, so
> should I assume I have had 'rights' to save documents under administrato??
> 
> When you say 'truncated' does that mean you cannot see the CaptureWiz
> images?? I have had issues all along with Gnucash needing specific file
> types to display files for messages, does that apply to gnucash-user?? For
> reasons I don't understand I have never been able to copy files from Gnu in
> my MS Windows10 to the 'required' format, for queries about Gnucash!!
> Quite frustrating.
> 
> Finbar




___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Issues with gnucash files

2023-08-25 Thread Maf. King
On Friday, 25 August 2023 16:31:47 BST Mahon Finbar wrote:
> As I said, I have had unresolved issues with creating .jpg files from MS.

did you?  sorry, must have missed that bit.  is it easier to send a PNG?  that 
should get through as an attached image well enough.

> 
> I'' try creating jpg from CaptureWiz and attach
> 

OK.  or whatever file type CaptureWiz defaults to (I don't know that program).  
I'd imagine that  (some) others on the list and I can open the vast majority 
of probable image formats this end.

good luck.
Maf.


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Profit and loss report

2023-08-25 Thread Michael or Penny Novack

On 8/25/2023 3:31 PM, Roger Lewry via gnucash-user wrote:

Please can anyone tell me if it is possible to generate a P&L report for a 
previous accounting period? I have been able to create a report for the period from 
1 January 2023 to the present time but cannot see how to specify a different 
period. For example I would like to have a report for the calendar year 2019. Any 
help will be much appreciated.
I am using version 4.11 on Windows 10 Home 22H2.


Rather basic --- you can run this report for ANY (valid) date interval.

edit => report options => general (remember, gnucash is peculiar in that 
first you run a report and THEN you use report options to change it)


In the general specifications you get to choose start and stop date 
(this report is always for a time interval). You don't have to be doing 
the report for "current accounting period" but can change that to any 
(valid) date range you desire.


Michael D Novack

* by valid I mean things like "start date must be before end date" and 
"the date range is meaningful in terms of dates in your books".



___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


[GNC] Profit and loss report

2023-08-25 Thread Roger Lewry via gnucash-user
Please can anyone tell me if it is possible to generate a P&L report for a 
previous accounting period? I have been able to create a report for the period 
from 1 January 2023 to the present time but cannot see how to specify a 
different period. For example I would like to have a report for the calendar 
year 2019. Any help will be much appreciated.
I am using version 4.11 on Windows 10 Home 22H2.



Roger

Sent from Yahoo Mail on Android
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


[GNC] Fwd: Gnucash

2023-08-25 Thread David Carlson
Barry,

Please do not send messages to individuals on the Gnucash-user list.
I have no idea what did not go through in that prior email because it
didn't go through.
Then your next sentence confuses me too because I cannot tell if it is a
comment about the user list, about the GnuCash program. about your Email
app or about how permissions for users works in Windows.

-- Forwarded message -
From: Barry Mahon 
Date: Fri, Aug 25, 2023 at 10:24 AM
Subject: Gnucash
To: 


Thanks to all.

On the issue of rights, I have never had any issues before this saga, so
should I assume I have had 'rights' to save documents under administrato??

When you say 'truncated' does that mean you cannot see the CaptureWiz
images?? I have had issues all along with Gnucash needing specific file
types to display files for messages, does that apply to gnucash-user?? For
reasons I don't understand I have never been able to copy files from Gnu in
my MS Windows10 to the 'required' format, for queries about Gnucash!!
Quite frustrating.

Finbar


-- 
David Carlson
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


[GNC] Fwd: Re: Issues with gnucash files

2023-08-25 Thread Maf. King
CCing to the list.

--  Forwarded Message  --

Subject: Re: [GNC] Issues with gnucash files
Date: Friday, 25 August 2023, 13:52:20 BST
From: Maf. King 
To: Mahon Finbar 

On Friday, 25 August 2023 09:58:22 BST you wrote:
> Thanks to all.
> 
> On the issue of rights, I have never had any issues before this saga, so
> should I assume I have had 'rights' to save documents under administrato??


Assume nothing.  Test it and find out for sure.

> 
> When you say 'truncated' does that mean you cannot see the CaptureWiz
> images?? I have had issues all along with Gnucash needing specific file
> types to display files for messages, does that apply to gnucash-user??
> For reasons I don't understand I have never been able to copy files from
> Gnu in my MS Windows10 to the 'required' format, for queries about
> Gnucash!! Quite frustrating.
> 

Your images have not made it through on your last couple of posts.  just 
attach a jpg image to your email.  (attach, not inline)   If you want to send 
a GC test data file, (but don't ever send your "real" datafiles to the list!), 
just attach it (*.gnucash).  No format conversion or copy-paste needed.

Maf.

-


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Issues with gnucash files

2023-08-25 Thread Mahon Finbar via gnucash-user

Thanks to all.

On the issue of rights, I have never had any issues before this saga, so 
should I assume I have had 'rights' to save documents under administrato??


When you say 'truncated' does that mean you cannot see the CaptureWiz 
images?? I have had issues all along with Gnucash needing specific file 
types to display files for messages, does that apply to gnucash-user?? 
For reasons I don't understand I have never been able to copy files from 
Gnu in my MS Windows10 to the 'required' format, for queries about 
Gnucash!! Quite frustrating.


Finbar

On 24/08/2023 21:01, David Carlson wrote:
Your last message was truncated before the salient part, but I suspect 
that you do not have rights for GnuCash to save files in administrato 
user space.


You need to unscramble which username is your 'standard' username and 
put all your user files including other types from other applications 
such as spreadsheets, pdfs, text files, etc. in that userspace 
Documents folder or some subfolder.  I am not sure how much trouble it 
will be to do that, but you probably need to have administrator rights 
to accomplish that.  Then you can make sure that your 'standard' user 
has read/write rights for all those files so you no longer need 
administrator rights.  I am not a Windows guru so I may have 
overlooked some details to warn you about.  Good luck.




On Thu, Aug 24, 2023 at 12:47 PM Mahon Finbar via gnucash-user 
 wrote:


Thanks for the details, OK, here goes.

I opened this file in Gnu -

No 'log' It had a 'save' icon and when I try to save it I get this -

That is the problem. There is plenty of space.

Finbar

On 24/08/2023 18:28, Maf. King wrote:
> Barry,
>
> thanks for the update.
>
> The *.log and *.gcm files are not your data.  no idea what *.msf
and *.dmp
> would be (maybe a crash dump?).    Your main data file will most
likely be a
> *,gnucash file.
>
> As to backups and datestamps etc see the attached image.
>
> mafs-new-accs.xac is my data file (.xac is the very old suffix,
it still works
> and ,gnucash is equivalent.  I'm just old-school)
>
> ignore the .logs
>
> you can see the datestamps are MMDDhhmmss which should help
you decipher
> your list.
>
> the first backup in my image is 20230824120845.   So it was made
today
> (2023-08-24 at 12:08:45) . as you can see, that time matches
the "create
> time/date" for the base file.
>
> hope that helps you with the deciphering, if you can't get us a
screenshot.
>
> Just try to find the *.gnucash file with the most recent date
stamp in the name,
> move it into a new folder, call it something sensible and open
it.  see what
> transactions GC says is there.  Add a test txn in and try to
save it.
>
> Good luck
> Maf.
>
>
>
>
> On Thursday, 24 August 2023 16:14:26 BST Mahon Finbar via
gnucash-user wrote:
>> This is an update of sorts of a long series of messages here
since I had
>> an issue with saving my transactions at the end of July.
>>
>> I was unable to copy and send GNU files to the kind people who
tried to
>> help me. I have no idea why, copy and paste after changing to
the file
>> type required just did not work.
>>
>> There were many messages concerning why I seemed to have more
than one
>> set of GNU files with  different user names, and at different
times.
>>
>> I have now downloaded all the files containing "GNU" for the
period of
>> July 2023.
>>
>> There is bewildering list with an equally bewildering number of
names,
>> suffixes, etc., such as -
>>
>> 16  files of type  - gnucash.trace.YXDV81.log each one
duplicated and
>> where only the alphanumeric is different
>>
>> A large number of 'shortcuts' and many files which I think are
backups
>> with several date strings in the same file.
>>
>> I have not been able to decipher these nor files with .msf or
.gcm or
>> .dmp or GnuCash_is1 !!
>>
>> Maybe I have made numerous errors, and unwittingly put files in
>> different places or formats, but. I am a longtime user of
GNU, most
>> of the current longer files start with GNU FEB 12 2019.gnucash.
>>
>> Finally, all the files I have now are in Documents
>> (C:\users\administrato) with various sub-addresses. That seems
to have
>> sorted the issue with one of the issues raised in a message -
>>
>> "Be sure you aren't confusing the two users on your system! (one is
>> "Barry Mahon" and the other is "administrato""
>>
>>
>> Any help at this stage would be welcome. I have a tax
declaration to do
>> by mid November.
>>
>> I would be willing to start all over again and re-enter the 2022
>> transactions, the tax ye