Announcements
We are importing a data package into the system via the Data Management Framework.
How do we define a column that is auto-generated within the package. It appears as though we can define it in the manifest.xml, but we don't know the schema definitions.
(our hunch is that is should reside in the <EntityMapList>.....just don't know how its supposed to look)
The package works fine if we manually define the auto-generated column mappings.....but our goal is to have the package stand alone without manual intervention.
Note: The import file is an XML-attribute file
Thanks and any help is appreciated
That's what we were hoping for..... here is the mapping that we created for the "Project Expense Journals" entity.
.... <EntityMapList> <EntityMap> <ArrayIndex>0</ArrayIndex> <EntityField>JournalBatchNumber</EntityField> <EntityFieldConversionList i:nil="true" /> <IsAutoDefault>false</IsAutoDefault> <IsAutoGenerated>true</IsAutoGenerated> <IsDefaultValueEqualNull>false</IsDefaultValueEqualNull> <UseTextQualifier>false</UseTextQualifier> <XMLField>JournalBatchNumber</XMLField> </EntityMap> </EntityMapList> .....
And here's a sample of our actual import file:
<Document> <ExpenseJournalHeaderEntity DESCRIPTION="test description" JOURNALNAMEID="test journal name id"> <ExpenseJournalLineEntity ...></ExpenseJournalLineEntity> </ExpenseJournalHeaderEntity> </Document
We're able to import the package but when viewing the mapping the JournalBatchNumber doesn't show.
So we also tried including a JournalBatchNumber tag with a blank string (JOURNALBATCHNUMBER="") ....but the autogenerated is never checked. We tried setting the other values to true....but it never seems as though the EntityMap definitions take.
Is there some other parameter or flag in the Manifest that needs to be modified so that the EntityMap is applied?
EDIT: We've been able to make this work with just the Project Expense Journal Header.....but doesn't seem to work with the composite entity of Project Expense Journals. Is there any way around this?
It's in the manifest.xml as you suspect. Change the IsAutoGenerated value inside the EntityMap element corresponding to the field you want to auto-generate:
<EntityMap> <ArrayIndex>0</ArrayIndex> <EntityField>VENDORACCOUNTNUMBER</EntityField> <EntityFieldConversionList i:nil="true" /> <IsAutoDefault>false</IsAutoDefault> <IsAutoGenerated>true</IsAutoGenerated> <IsDefaultValueEqualNull>false</IsDefaultValueEqualNull> <UseTextQualifier>false</UseTextQualifier> <XMLField>VENDORACCOUNTNUMBER</XMLField> </EntityMap>
André Arnaud de Cal...
294,099
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator