problem referencing iCloud files as source in the load

Discussions about iCompta on macOS
Post Reply
SRIC
Posts: 11
Joined: 23 October 2019, 23:51

problem referencing iCloud files as source in the load

Post by SRIC » 20 November 2019, 01:57

a launch of automatic import referencing an iCloud file fails after I update the file outside of icompta, overwriting it.
the launch restarts to execute correctly after I reselect again the same file with the choose file option (re-specify the file in the import config)

on macOS Catalina 10.15.1

workaround adopted: workflow copying to local directory the required files, set icompta to reference the local files.

User avatar
Angeman
Administrateur
Posts: 2015
Joined: 28 December 2008, 21:28
Location: Toulouse, France
Contact:

Re: problem referencing iCloud files as source in the load

Post by Angeman » 20 November 2019, 09:36

This is certainly due to sandboxing in Catalina so your workaround is required indeed.

SRIC
Posts: 11
Joined: 23 October 2019, 23:51

Re: problem referencing iCloud files as source in the load

Post by SRIC » 27 November 2019, 16:25

hello, I have been trying also the automatic load of files located in Users\myname\icomptafolder
I still get the same error.

the flow to replicate the error is this
create an import config with reference to a file under users\username
load, validate, save.
the data are now in icompta
overwrite the source file via AppleScript or equivalent.
load again: the load succeeds.
close icompta.
reopen icompta: the load fails.

using latest Catalina available as data of post with icompta 6 latest.
loading data in csv and txt formats.

if I select again manually the file in the import config, the issue disappears.

User avatar
Angeman
Administrateur
Posts: 2015
Joined: 28 December 2008, 21:28
Location: Toulouse, France
Contact:

Re: problem referencing iCloud files as source in the load

Post by Angeman » 27 November 2019, 16:32

Definitely a sandboxing enforcement…

SRIC
Posts: 11
Joined: 23 October 2019, 23:51

Re: problem referencing iCloud files as source in the load

Post by SRIC » 27 November 2019, 16:50

any suggestion how to overcome that? granting full disk access to icompta did not solve the issue
with this problem, the "automatic import on open" setting does not work.

User avatar
Angeman
Administrateur
Posts: 2015
Joined: 28 December 2008, 21:28
Location: Toulouse, France
Contact:

Re: problem referencing iCloud files as source in the load

Post by Angeman » 27 November 2019, 18:07

It doesn't work because iCompta is not asking for full disk access by default and so even if you give it it doesn't change anything. I will have to rewrite this part entirely to use a different mechanism in iCompta 7.

SRIC
Posts: 11
Joined: 23 October 2019, 23:51

Re: problem referencing iCloud files as source in the load

Post by SRIC » 30 November 2019, 14:52

:mrgreen: thanks! I look forward to an even better iCompta

Post Reply