Unfortunately, it looks like the V7 include fields would reduce the errors by automatically including more fields in the list.
We get this problem where we have deliberately excluded fields from the components field list, because it should only affect a subset of the fields, and we want to keep the other fields unaffected by this program.
(There are two components, one has the 'master' copy with all the fields, the other one is to accept these, control some but not pass back the other fields, meaning they cannot be included in a putlistitems/occ.)
I do still have a copy of U9.7 here, and will see if I can generate a testset which outputs differently between the two.
But it seems to me that the getlistitems/occ should (probably) not complain about the list containing fields which are not included on the component..... no?
------------------------------
Iain Sharp
Head of Technical Services
Pci Systems Ltd
Sheffield GB
------------------------------
Original Message:
Sent: 11-16-2021 12:06
From: Daniel Iseli
Subject: getlistitems/occ raising field not found errors
Iain,
I've already send a reply for the case you've raised for this issue. For the benefit of the other forum users here's a quick summary:
I don't see a difference between Uniface 9 and 10 in the described scenario. Both versions generate the same amount of 8059 messages. In case the compiler setting $V7_INCLUDE_FIELDS is not used then enabling it should reduce the number of 8059 messages in the mentioned scenario.
I hope this helps.
------------------------------
Daniel Iseli
Principal Technical Support Engineer
Uniface Services
Rocket Software, Switzerland
Original Message:
Sent: 11-16-2021 10:15
From: Iain Sharp
Subject: getlistitems/occ raising field not found errors
#uniface-10
We've noticed a lot more entries in the putmess log for both uniface.exe and userver.exe about
8059 - reference made to excluded field....
These seem to be tied to where we use getlistitems/occ to populate a modeled entity from a list. (The standard behavior for our client-server legacy code), obviously where the entity field list is not set to 'all fields' .
I don't recall getting these stacks of messages in the log files before we migrated to uniface 10. Is this new behaviour, and if so how can I turn it off?
------------------------------
Iain Sharp
Head of Technical Services
Pci Systems Ltd
Sheffield GB
------------------------------