Hi everyone,

After a significant search of the group here, the docs website and our
good friend Mr. google... I seem to be no closer to answering my
question - why am I getting this error?

I have included all (what I thought are the relevant bits of code...
so it is a bit lengthy in source code.
But I figured if I didn't - someone would say show us.... insert
code...  I didn't provide in the Original Post.

The requested object could not be found in the config file
Could not find 'car.environmentUser' in 'C:\Inetpub\wwwroot\trimasCar
\transferConfig\transfer.xml.cfm'.

Here is the transfer.xml

        <objectCache>
                <defaultcache>
                        <maxminutespersisted value="60" />
                        <accessedminutestimeout value="30" />
                </defaultcache>

                <cache class="car.generalCAR">
                        <scope type="session" />
                </cache>
        </objectCache>

        <objectDefinitions>
                <package name="people">
                        <object name="role" table="tbl_roles">
                                <id name="id_tbl_roles" type="numeric" 
generate="true"/>
                                <property name="roleDescription" type="string" 
/>
                                <property name="hourlyRate" type="numeric" />
                        </object>

                        <object name="user" table="tbl_users">
                                <id name="id_tbl_users" type="numeric" 
generate="true" />
                                <property name="username" type="string" />
                                <property name="firstname" type="string" />
                                <property name="surname" type="string" />
                                <manytoone name="role">
                                        <link to="people.role" 
column="id_tbl_roles" />
                                </manytoone>
                                <property name="phoneNumber" type="string" />
                                <property name="mobilePhoneNumber" 
type="string" />
                                <property name="isdeleted" type="boolean" />
                        </object>
                </package>

                <package name="car">
                        <object name="issueType" table="tbl_issueType">
                                <id name="id_tbl_issueType" type="numeric" />
                                <property name="issueType" type="string" />
                        </object>
                        <object name="saleType" table="tbl_saleType">
                                <id name="id_tbl_saleType" type="numeric" />
                                <property name="saleType" type="string" />
                        </object>
                        <object name="productType" table="tbl_productType">
                                <id name="id_tbl_productType" type="numeric" />
                                <property name="productType" type="string" />
                        </object>
                        <object name="problemType" table="tbl_problemType">
                                <id name="id_tbl_problemType" type="numeric" />
                                <property name="problemType" type="string" />
                        </object>
                        <object name="workflowPosition" 
table="tbl_workflowPosition">
                                <id name="id_tbl_workflowPosition" 
type="numeric" />
                                <property name="workflowPosition" type="string" 
/>
                        </object>
                        <object name="workStatus" table="tbl_workStatus">
                                <id name="id_tbl_workStatus" type="numeric" />
                                <property name="workStatus" type="string" />
                        </object>
                        <object name="generalCAR" table="tbl_CAR">
                                <id name="id_tbl_car" type="numeric" 
generate="false" />
                                <property name="dateRaised" type="date" />
                                <manytoone name="issueType">
                                        <link to="car.issueType" 
column="issueTypeId" />
                                </manytoone>
                                <manytoone name="saleType">
                                        <link to="car.saleType" 
column="saleTypeId" />
                                </manytoone>
                                <manytoone name="productType">
                                        <link to="car.productType" 
column="productTypeId" />
                                </manytoone>
                                <property name="companyName" type="string" />
                                <property name="contactName" type="string" />
                                <property name="contactEmail" type="string" />
                                <property name="contactPhoneNumber" 
type="string" />
                                <property name="partNumber" type="string" />
                                <property name="quantity" type="numeric" />
                                <property name="serialNumber" type="string" />
                                <property name="email" type="string" />
                                <property name="batchNumber" type="string" />
                                <property name="unitCost" type="numeric" />
                                <property name="totalCost" type="numeric" />
                                <property name="toBeReturned" type="boolean" />
                                <property name="rma" type="string" />
                                <property name="productDescription" 
type="string" />
                                <manytoone name="problemType">
                                        <link to="car.problemType" 
column="problemTypeId" />
                                </manytoone>
                                <property name="warranty" type="boolean" />
                                <property name="problemDescription" 
type="string" />
                                <manytoone name="customerActivityUser">
                                        <link to="people.user" 
column="customerActivityUserId" />
                                </manytoone>
                                <manytoone name="qualityEngineerUser">
                                        <link to="people.user" 
column="qualityEngineerUserId" />
                                </manytoone>
                                <manytoone name="manafacturingUser">
                                        <link to="people.user" 
column="manafacturingUserId" />
                                </manytoone>
                                <manytoone name="engineeringUser">
                                        <link to="people.user" 
column="engineeringUserId" />
                                </manytoone>
                                <manytoone name="environmentUser">
                                        <link to="people.user" 
column="environmentUserId" />
                                </manytoone>
                                <manytoone name="qualityAssuranceUser">
                                        <link to="people.user" 
column="qualityAssuranceUserId" />
                                </manytoone>
                                <manytoone name="currentWorkflowPosition">
                                        <link to="car.workflowPosition"
column="currentWorkflowPositionId" />
                                </manytoone>
                                <manytoone name="previousWorkflowPosition">
                                        <link to="car.workflowPosition"
column="previousWorkflowPositionId" />
                                </manytoone>
                                <manytoone name="nextWorkflowPosition">
                                        <link to="car.workflowPosition" 
column="nextWorkflowPositionId" /
>
                                </manytoone>
                                <property name="lastModifiedBy" type="string" />
                                <property name="lastModifiedDate" type="date" />
                                <property name="insertedBy" type="string" />
                                <manytoone name="workStatusId">
                                        <link to="car.workStatus" 
column="workStatus" />
                                </manytoone>
                        </object>
                </package>
        </objectDefinitions>


Creation of transfer singleton;

application.transferFactory = createObject("component",
"transfer.TransferFactory").init("/trimasCar/transferConfig/
datasource.xml.cfm",
"/trimasCar/transferConfig/transfer.xml.cfm",
"/trimasCar/transferData");

application.datasource = application.transferFactory.getDataSource();
application.transfer = application.transferFactory.getTransfer();

Here is the code I use to create the new TO's. and whre the ocde falls
down.

        <cfscript>
                session.environmentUser =
application.transfer.new("car.environmentUser");
                session.engineeringUser =
application.transfer.new("car.engineeringUser");
                session.manafacturingUser =
application.transfer.new("car.manafacturingUser");
                session.qualityEngineerUser =
application.transfer.new("car.qualityEngineerUser");
                session.customerActivityUser =
application.transfer.new("car.customerActivityUser");
                session.qualityAssuranceUser =
application.transfer.new("car.qualityAssuranceUser");

                session.problemType = 
application.transfer.new("car.problemType");
                session.productType = 
application.transfer.new("car.productType");
                session.saleType = application.transfer.new("car.saleType");
                session.issueType = application.transfer.new("car.issueType");
                session.generalCAR = application.transfer.new("car.generalCAR");
        </cfscript>

If I remove the first block (the user objects) then it works.
but since the user objects are a replica of the 2nd block that works -
I can't figure it out.

Any assistance / thoughts are gratefully appreciated.

Beau.
--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to