Monday, 6 April 2015

Unable to login into Maximo


Issue: This morning after I came back from my long weekend, I tried to login into one of  our customers development environment using Maxadmin. Surprisingly, I get a message "Cannot Login into Maximo at this time. Please contact System Administrator". We have no password expiry set up nor reset the maxadmin password.

I checked Maxadmin password from database and don't notice any change in password. I also noticed that when I remote login into development environment or access SQL developer, system was too slow.

First thing, I thought the slowness might be due to insufficient space and my assumption was right, 0 GB available. I started deleting all unwanted files including old log files. Then, I shrink the SQL Server database log files to free more space.

Now, again I tried to login into Maximo.

 Hurray, I was able to login into Maximo !!!

Solution: Free up the disk space. 

Wednesday, 15 October 2014

Save Record on selecting tabs

Purpose: Save the record on selecting a tab ex. Save Work Order on selecting "Plans" Tab.

Solution: Add tabchangeevent="save" for Plans tab as below:

              <tab id="plans" label="Plans" tabchangeevent="save">

Thursday, 24 April 2014

Import Maximo Asset Specifications through MIF



Purpose:  Loading of Asset Specifications

Versions: 7.x. I have not tried the procedure in Maximo 6.x but might work.

Solution:
I am providing two options to load Asset Specifications. Choose the options suitable to you.

Method 1:
1.       Create Object Structure MC_ASSETSPEC as below
a.       Parent: ASSET
b.      CHILD: ASSETSPEC
2.       Copy the Inbound processing class from MXASSET object structure and use the same class for MC_ASSETSPEC object structure.
3.       Create the Enterprise Service and associate with External System.
4.       Import the date using the below template. You will not be able to load the asset along with specification at the same time. You need to load the data in two steps using the same object structure. Create two copies of the same template.
a.       First template will contain the Asset and classification.
b.      Second template will contain Asset, Classification and attributes.

For Ex: First template looks as below:
MCDataLoad,MC_ASSETSPEC,AddChange,EN
ASSETNUM,ASSETATTRID,NUMVALUE,MEASUREUNITID,ALNVALUE,HIERARCHYPATH,SITEID,ORGID
PUMP001,,,,,SECURITY \ EPS,MC,MCORG

Second template looks as below:
MCDataLoad,MC_ASSETSPEC,AddChange,EN
ASSETNUM,SECTION,ASSETATTRID,NUMVALUE,MEASUREUNITID,HIERARCHYPATH,ALNVALUE,SITEID,ORGID,LINEARASSETSPECID
PUMP001,,TEST,,,SECURITY \ EPS,1480,MC,MCORG,0
PUMP001,,TEST-NUMERIC,213,,SECURITY \ EPS,,MC,MCORG,0
PUMP001,,RAM,,,SECURITY \ EPS,512, MC,MCORG,0

Note: In the above templates for HIERARCHYPATH field, I have provided the entire hierarchy. This procedure requires to enter the entire classification hierarchy. Entering just the classification will not work.
In the second template, hierarchy path is optional. Add the hierarchy path i.e. classification if you want add an attribute that does not exist in the classification.

Method 2:
1.       Create Object Structure MC_ASSETSPEC as below
a.       Parent: ASSET
b.      CHILD: ASSETSPEC
2.       Create the Enterprise Service and associate with External System.
3.       In Asset Object , Create a relationship as below
    Name: RWS_ASSET_CLASS_STRUCT
   Child Object: CLASSSTRUCTURE
   Relationship: classificationid=:classtructureid
 In Enterprise Service > Asset Object, create a processing rule as below:





5.       Import the date using the below template. You will not be able to load the asset along with specification at the same time. You need to load the data in two steps using the same object structure. Create two copies of the same template.
a.       First template will contain the Asset and classification.
b.      Second template will contain Asset, Classification and attributes.

For Ex: The first template looks as below:
MCDataLoad,MC_ASSETSPEC,AddChange,EN
ASSETNUM,ASSETATTRID,NUMVALUE,MEASUREUNITID,ALNVALUE,CLASSSTRUCTUREID,SITEID,ORGID
PUMP001,,,,,EPS,MC,MCORG

Note: In classstructureid field, enter the required classification. The processing rule will set the correct Classstructureid for the asset.

For Ex: The second template looks as below:
MCDataLoad,MC_ASSETSPEC,Change,EN
ASSETNUM,SECTION,ASSETATTRID,NUMVALUE,MEASUREUNITID,HIERARCHYPATH,ALNVALUE,SITEID,ORGID,LINEARASSETSPECID
PUMP001,,TEST,,,EPS,1480, MC,MCORG,0
PUMP001,,TEST-NUMERIC,213,,EPS,,MC,MCORG,0
PUMP001,,RAM,,,EPS,512,MC,MCORG,0

Note: In hierarchypath field enter the required classification. Need not enter the full classification hierarchy as in Method 1.
In the second template, hierarchy path is optional. Add the hierarchy path i.e. classification if you want add an attribute that does not exist in the classification.





Thursday, 10 April 2014

Import Maximo Classifications using MXCLASSIFICATION Object Structure


Purpose: This technote will explain the procedure to import Classifications using MXCLASSIFICATION Object Structure.

Issue: Many times, I has problem loading classifications along with its hierarchy in Classifications application using MXCLASSIFICATION object structure. Hence, I tried other alternative ways successfully by creating additional fields + Processing rules and importing the classification along with its hierarchy. With this procedure you will not require any additional fields and make use of the standard MXCLASSIFICATION Object Structure.

Applicable To: All versions of Maximo.

Solution: 
    1. In MXCLASSIFICATION Object Structure, remove the default Inbound     processing class.
    2. In ‘Restrict Attributes’ menu option, In the Source Object List, select   CLASSSTRUCTURE.
    3. Uncheck Restrict checkbox and check Override checkbox for below fields:
a.  Classstructureid
b.  Parent
    4. Select Action > Exclude / Include Fields
    5. In the Source Object List, select CLASSSTRUCTURE
    6. In the Persistant Fields sub-tab, look for HASCHILDREN and UNCHECK the       EXCLUDE checkBox. This will include the field in the schema.
    
    Please note MXCLASSIFICATION Object Structure should support flat file as I am using flat file to import data.

As, I am unable to attach templates with this blog; hence for template, export few classification records from the publish channel using MXCLASSIFICATION object structure and use the same template for importing classifications.

You can use the same template for loading Classstructure, Classusewith & Classspec. In the templates, the value in classstructureid should be the same as classificationid as below. 


Monday, 19 August 2013

Go To menu does not work in Maximo.


Purpose: The purpose of this document is to explain one of the reason 'Go To' menu does not work.

Applicable: To all versions of Maximo.

Issue: I have created an image (to prepare QA server) from Production Server in which Maximo was working well. I changed the Host name in all relevant files and was able to successfully login into Maximo. However, I am unable to select 'Go To' menu including all menu options. Even Start Center page was hanging.

Solution: Frankly speaking, I struggled to fix this issue for 2 days. I thought it might be some javascript issue or some other class issue. I compare all IE settings with production sever and all were the same. So, I couldn't figure out what was the issue.  So, finally I thought of enabling Active X in IE settings even though it wasn't enabled in Production.

I enabled all settings relating to Active X & Scripting in Tools -> Internet Options -> Security -> Internet -> Custom Level.


Monday, 29 July 2013

Migration Manager Fails when Required=1 and Default Value is blank

Purpose: The purpose of this post is to explain one of the reason for which MM package deployment fails.


Issue: I experienced myself when I was migrating database configuration attributes through MM package. MM package failed during deployment and we were getting an error "Required Fields are Blank". Initially, I couldn't find out the root cause but after some struggle, I found out that few fields in Database configuration are "Required=1" and "Default Value" is blank. 


Work Around: Entered some dummy values in "Default Value" and again created the package and was able to successfully deploy the package in Target sever. After successful deployment removed the dummy default values. 

The above procedure will be helpful, if you have few custom fields but this will not help if you have many custom fields.

Hence, I recommended it is very important to plan the migration procedure during planning phase. 


Thursday, 25 July 2013

Delete Workflow History for Inactive Records


Purpose: As years pass by, the database size increases and you would like to delete unwanted records especially workflow history. This document explains you how to delete workflow history.

To delete the workflow history, execute the below scripts:

delete
from wftransaction
where wfid not in
(
  select wfid
  from wfinstance
  where active = 1
)
  and transdate <= (current timestamp - 1 month)
  and memo is null;
commit;

delete
from wfcallstack
where wfid in
(
  select wt.wfid
  from wftransaction wt
    ,wfinstance wi
  where wt.wfid = wi.wfid
    and wi.active = 0
    and transdate <= (current timestamp - 1 month)
    and memo is null
);
commit;

delete
from wfassignment
where wfid in
(
  select wt.wfid
  from wftransaction wt
    ,wfinstance wi
  where wt.wfid = wi.wfid
    and wi.active = 0
    and transdate <= (current timestamp - 1 month)
    and memo is null
);
commit;

delete
from wfinstance
where wfid in
(
  select wfid
  from wftransaction
  where memo is null
    and transdate <= (current timestamp - 1 month)
)
  and active = 0;
commit;

delete
from logintracking
where attemptdate <= (current timestamp - 3 month);
commit;