Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Creating LOCATIONS and SERVICEADDRESS at the same time using MIF Integration

    Posted Fri January 17, 2025 02:18 AM

    I have an Object Structure that has LOCATION as its main object and SERVICEADDRESS as its child, when i try to send a message, the location and service address is saved but the service address is not populated to the location, upon checking it looks like it has something to do with SERVICEADDRESS.OBJECTNAME although im not sure if that is really the reason, is there a better way to do this without using script? I don't want to save a record using script because it will have problems with validation. 



    ------------------------------
    Gaby D
    ------------------------------


  • 2.  RE: Creating LOCATIONS and SERVICEADDRESS at the same time using MIF Integration

    Posted Mon January 20, 2025 01:09 AM

    Are You population also SADDRESSCODE field value to LOCATION it self?

    Maybe it is better to population all serviceaddress records first, and then locations?



    ------------------------------
    Juris Flugins
    ------------------------------



  • 3.  RE: Creating LOCATIONS and SERVICEADDRESS at the same time using MIF Integration
    Best Answer

    Posted Mon January 20, 2025 05:55 PM

    Gaby,

    Understanding object precedence is a study unto itself.  Since the dawn of Maximo it has been a non-normalized database with ALL referential integrity begin governed by Maximo Business Objects.  This goes all the way back to original code in Maximo 1.x in the 1980s since PSDI supported MANY databases.  Cannot code foreign keys in many languages without managing many code sets.  So.. by abstracting the business logic to the MBOs, Voila! a miracle occurred.

    So now how to load data with this understanding?  MBO precedence.  As Juris said you need to ensure you have populated the LOCATIONS.SADDRESSCODE AFTER you have inserted valid SERVICEADDRESS objects into the DB. Your object structure then really should be two passes, and not a single one. 

    While there is no one single load order (unless you decide to load EVERY object in the DB, which most folks do not!) there is a precedence. Generally system level objects need to be there before Sets, and Sets level objects before Orgs, and Org level objects before Sites, etc.

    Example: Job Plans.  Since you may have Job plans with Org or Site you "should" load Job Plans after sites.  If your Job plan references a classification, then you must have classifications loaded prior to loading Job Plans.  So precedence... does your object reference any other object?  If so, then load that one first, and work your way backwards. 

    Pro Tip:  Look at Migration Manger OOTB packages.  There are lots of clues as to precedence there.



    ------------------------------
    Bradley K. Downing , MBA
    Senior Solution Architect
    IBM
    Bakersfield
    ------------------------------



  • 4.  RE: Creating LOCATIONS and SERVICEADDRESS at the same time using MIF Integration

    Posted Mon January 20, 2025 06:43 PM
    Edited by Jason VenHuizen Mon January 20, 2025 07:15 PM






  • 5.  RE: Creating LOCATIONS and SERVICEADDRESS at the same time using MIF Integration

    Posted Wed January 22, 2025 06:06 AM

    Hi Everyone,

    Thanks for the reply, in the end we created 2 OS one for SA and one for Location, I just thought there was a way to do it because LOCATION/LOCATIONSPEC works (if you use the MXOPERLOC setup of course) where you send them at the same time and LOCATIONSPEC was not having the "record not found" issue. 

    Thanks again!



    ------------------------------
    Gaby D
    ------------------------------



  • 6.  RE: Creating LOCATIONS and SERVICEADDRESS at the same time using MIF Integration

    Posted Wed January 22, 2025 06:23 AM

    For LOCATION/LOCATIONSPEC, most probably, You have already created classification and its attributes. That is similar to this case. You would not be able to create LOCATION and necessary CLASSSTRUCTURE record in one row.



    ------------------------------
    Juris Flugins
    ------------------------------



  • 7.  RE: Creating LOCATIONS and SERVICEADDRESS at the same time using MIF Integration

    Posted Thu January 23, 2025 08:32 AM

    I wondered where you would end up on this thread as I fought with this issue a couple years ago. Where it really comes to be a problem is with GIS Integration when you are trying to create LOCATIONS from Esri and its why IBM I guess makes 2 separate OS  ARCGISLOCATION  and ARCGISSRVAD. You are forced to do it in 2 steps when it would make so much more sense to be able to do it in 1.



    ------------------------------
    David Miller
    Managing Partner - Maximo Consultant
    Enterprise Integration Partners LLC
    ------------------------------