*TypeError: Error #1034: Type Coercion failed: cannot convert
Tools.dal.dataObjects::datainvestmentallocat...@2d28301 to
Tools.dal.dataObjects.dataInvestmentAllocation.*
This one has me a little stumped!
The client's project is modular, and has a 'global' array of data objects.
They access them a bit like this:
*var dataIA:dataInvestmentAllocation =
Application.application._dataCollection.DataObjectGet("investmentAllocation");
*
Every other object works in the same way without issues. In fact I'm
fetching two data objects without issues directly before this. The object
I'm getting is in the array of objects, is of type *dataInvestmentAllocation
(excuse the casing!)* and there is only one in the array, yet the error
message seems to append an instance id to the type (?!).
The only difference I can see is that with this object, it was created and
added to the collection in the previous module (but as I said, it's there in
the array, and it's put there way before I try to access it in the next
module)
Can anyone shed any light on this?