SYMPTOM:
When the user migrates or creates a package on a free form SQL report in Strategy Object Manager 9.x and 10.x, the following error occurs:

Sample Code/Error
Cannot import an object of type Unknown into the context component
CAUSE:
One possible cause is that a mapped attribute or metric in the free form SQL report does not have any data type defined. See an example below:

ACTION:
In order to track down the cause of this inconsistency, customers encountering this issue should make note of Schema/Application-related changes, Object Migrations or error messages prior to experiencing the problem. Change Journaling, if enabled, can help in preserving this information.
WORKAROUND:
Remove the mapped metrics or attributes with blank data type.