Topic
  • 1 reply
  • Latest Post - ‏2013-07-05T09:44:49Z by bportaluri
Hugues-Lo
Hugues-Lo
75 Posts

Pinned topic import failure code translation from MIF

‏2011-07-08T11:42:17Z |
Hello,

I have a problem with MIF (i have MAXIMO v7.1.1.7): i have an object structure on one object : "FAILURECODE".
In the database i have some existing failure codes in English (English is my base language).
I succeeded in exporting them from MIF with my object structure:

<?xml version="1.0" encoding="UTF-8"?>
<PublishALFAILCODE xmlns="http://www.ibm.com/maximo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" creationDateTime="2011-07-08T13:22:16+02:00" transLanguage="EN" baseLanguage="EN" messageID="1310124136651759599" maximoVersion="7 1 20100522-0325 V7117-47" event="0">
<ALFAILCODESet>
<FAILURECODE>
<DESCRIPTION>Adsorber - General</DESCRIPTION>
<FAILURECODE>1-FC-01</FAILURECODE>
<FAILURECODEID>8416</FAILURECODEID>
<ORGID>ORG1</ORGID>
</FAILURECODE>
</ALFAILCODESet>
</PublishALFAILCODE>

Now i change the flag "translanguage" from EN to FR (to import a french description of the failure codes), i replace "Publish" by "Sync", i add "action =AddChange", and i try to import:

<?xml version="1.0" encoding="UTF-8"?>
<SyncALFAILCODE xmlns="http://www.ibm.com/maximo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" creationDateTime="2011-07-08T13:22:16+02:00" transLanguage="FR" baseLanguage="EN" messageID="1310124136651759599" maximoVersion="7 1 20100522-0325 V7117-47" event="0">
<ALFAILCODESet>
<FAILURECODE action="AddChange">
<DESCRIPTION>test FR description</DESCRIPTION>
<FAILURECODE>1-FC-01</FAILURECODE>
<FAILURECODEID>8416</FAILURECODEID>
<ORGID>ORG1</ORGID>
</FAILURECODE>
</ALFAILCODESet>
</SyncALFAILCODE>

=> I obtain an error in MIF: "attribute orgid doesn't exist" !

=> If i remove the row "<ORGID>ORG1</ORGID>" in the xml file, i obtain the error "orgid cannot be null"!!!

Any idea? In the database, i have correctly set FAILURECODE with the language table L_FAILURECODE! (and the flag mlinuse on description).

THanks for your help
  • bportaluri
    bportaluri
    60 Posts

    Re: import failure code translation from MIF

    ‏2013-07-05T09:44:49Z  

    I have developed an Excel spreadsheet to load failure codes hierarchy.
    Could you please give it a try and let me know if it works?

    In the 'Failure Codes' tab you can see how to import translated failure codes.

    Regards