Print this page

Error: MALFORMED_ID:Object name id: id value of incorrect type

Knowledge Article Number 000232388
Description Error related to ID while using Dataloader:

1) MALFORMED_ID: Object name id: id value of incorrect type.
2) MALFORMED_ID:bad id.
3) MISSING_ARGUMENT:Id not specified in an update call.
4) INVALID_CROSS_REFERENCE_KEY: invalid cross reference id.


 
Resolution Salesforce record ID is any valid 18 - character Force.com record identifier.

For example: '00300000003T2PGAA0'

If you set ID to a 15-character value, Apex converts the value to its 18-character representation. All invalid ID values are rejected with a run time exception.

If the CSV file contains invalid ID in the ID Column (Or Mapped with incorrect field type), below is the possible scenario.

1) ID with invalid characters or ID with length less than 15 characters

             Error while Insert/Update operation: MALFORMED_ID: Object name id: id value of incorrect type
             Error while Delete Operation: MALFORMED_ID:bad id 

Resolution: ID should be of correct length and should contain the valid charaters.

2) Missing ID (Blank) 

             Error: MISSING_ARGUMENT:Id not specified in an update call.

Resolution: ID should not be blank.

3) Incorrect ID (Update/Upsert)

             Error: INVALID_CROSS_REFERENCE_KEY: invalid cross reference id.

Resolution: ID should be correct (existing ID).






 




promote demote