PackOut process is not exporting UUIDs references for fields M_Locator_ID and C_Location_ID

Description

I was exporting a 2 pack with a list of Business Partners with their locations and a list of products with assigned Locators, when I tried to import the package an error was thrown in the console saying that there were no such foreing keys for M_Locator_ID or C_Location_ID, however all locators and locations were in the same package. Below is an example of one the products and one of the BP Locations:

Product
========

All IDs which make reference to another table were exported with the uuid reference with the exception of "M_Locator_ID", it was exported directly with the ID:

<M_Product type="table">
<CopyFrom>N</CopyFrom>
<Processing>false</Processing>
<M_Locator_ID>1000243</M_Locator_ID>
<ImageURL/>
<ProductType>I</ProductType>
<DescriptionURL/>
<IsDropShip>false</IsDropShip>
<GuaranteeDaysMin>0</GuaranteeDaysMin>
<Discontinued>false</Discontinued>
<Value>821-1023-5500Y</Value>
<IsVerified>false</IsVerified>
<SKU>821-1023-5500Y</SKU>
<ShelfDepth>0</ShelfDepth>
<ShelfHeight>0</ShelfHeight>
<ShelfWidth>0</ShelfWidth>
<Volume>0</Volume>
<Weight>0</Weight>
<M_FreightCategory_ID reference="id"/>
<M_Product_Category_ID reference="uuid" reference-key="M_Product_Category">b3974565-d578-4e60-bd7e-60228587666f</M_Product_Category_ID>
<SalesRep_ID reference="id">100</SalesRep_ID>
<S_ExpenseType_ID reference="id"/>
<S_Resource_ID reference="id"/>
<IsSummary>false</IsSummary>
<C_UOM_ID reference="id">100</C_UOM_ID>
<DiscontinuedAt/>
<UnitsPerPack>0</UnitsPerPack>
<C_SubscriptionType_ID reference="id"/>
<LowLevel>0</LowLevel>
<IsWebStoreFeatured>false</IsWebStoreFeatured>
<Description/>
<Name>821-1023-5500Y</Name>
<GuaranteeDays>0</GuaranteeDays>
<IsSold>true</IsSold>
<IsStocked>true</IsStocked>
<IsSelfService>true</IsSelfService>
<UnitsPerPallet>0</UnitsPerPallet>
<C_TaxCategory_ID reference="uuid" reference-key="C_TaxCategory">a175fa3b-2379-4c77-a04b-063b2b0d28aa</C_TaxCategory_ID>
<UPC/>
<IsActive>true</IsActive>
<M_Product_UU>f751f1b2-129d-4afd-9b03-d0008e496f6e</M_Product_UU>
<IsBOM>false</IsBOM>
<IsKanban>false</IsKanban>
<IsManufactured>false</IsManufactured>
<M_PartType_ID reference="id"/>
<IsPhantom>false</IsPhantom>
<IsOwnBox>false</IsOwnBox>
<RPS_Gross_Weight>0</RPS_Gross_Weight>
<C_RevenueRecognition_ID reference="id"/>
<M_AttributeSet_ID reference="id"/>
<M_AttributeSetInstance_ID>0</M_AttributeSetInstance_ID>
<R_MailText_ID reference="id"/>
</M_Product>

In order to be able to import the 2pack I had to change all M_Locator_Id lines with their respective uuid reference

<M_Locator_ID reference="uuid" reference-key="M_Locator">e22f02f7-b357-498a-8b7b-a6a14747ef67</M_Locator_ID>

BP Location
===========

Same pattern described above but with C_Location_ID

<C_BPartner_Location type="table">
<IsShipTo>true</IsShipTo>
<Phone/>
<Fax/>
<IsBillTo>true</IsBillTo>
<C_BPartner_ID reference="uuid" reference-key="C_BPartner">a212cc81-6223-40dc-86cb-28c8ebda0155</C_BPartner_ID>
<IsPayFrom>true</IsPayFrom>
<IsRemitTo>true</IsRemitTo>
<Phone2/>
<Name>Salt Lake City 840 1700 South Suite 3 UT</Name>
<ISDN/>
<C_BPartner_Location_UU>8366fc4e-a128-4570-8230-abf4c7ab3250</C_BPartner_Location_UU>
<CustomerAddressID/>
<IsActive>true</IsActive>
<AMAZON_SAN/>
<TaxExemptionNo/>
<C_SalesRegion_ID reference="id"/>
<C_Location_ID>1005075</C_Location_ID>
</C_BPartner_Location>

I had to change it with its proper uuid reference:

<C_Location_ID reference="uuid" reference-key="C_Location">42c79d00-0fa6-4418-adea-b4e1703c1994</C_Location_ID>

Environment

None

Activity

Show:
Juan David Arboleda Ruiz
March 11, 2014, 9:45 PM

Attached to this msg is the fix for peer review.

Thanks!

Assignee

Juan David Arboleda Ruiz

Reporter

Juan David Arboleda Ruiz

Labels

None

Tested By

None

Components

Affects versions

Priority

Critical
Configure