parse of object in boxi return "Expression type is not compatible with object type"

Document ID : KB000004639
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

Problem to created a new object in the BOXI universe.
The object is called Zaffected_service, object type is SREL having data type UUID.
Parse failed with error "Expression type is not compatible with object type”
error.png

Environment:
boxi 3.X and 4.1
Cause:

This is because, UUID is an Service Desk data type and is not supported at BOXI universe level.

Resolution:

As UUID is an Service Desk data type, this requires converting to String type
PdmString() function must be used for the SREL attributes having data type UUID

Additional Information:

Find out the SREL attributes with UUID as data type and manually add attributes/objects to class as suggested below:
1.    Insert table ‘Issue’ by dragging to left pane. For example, we dragged Issue table to left pane and named the class as ‘Issue_cust’
1.png

2.    In below screen shot, you can see the ‘Iss’ object dragged to class ‘Issue_cust’ in left pane.
2.png
 
3.    Right click on ‘Issue_Cust’ class in the left pane and choose ‘object’ to create new object.
Fill the ‘Name’ field as ‘zaffected_service’.
3.png
 
4.    Click on the ‘>>’ button next to ‘Select’ field. Choose and double click on the ‘zaffect_service’ attribute in the ‘Tables and Column’ pane shown below. Click ‘OK’.
4.png
 
5.    You should see ‘Select’ field populated as below:
5.png
 
6.    Click on ‘Parse’ button. You will see an error popup saying ‘Expression type is not compatible with object type” as below. This is because, UUID is an Service Desk data type and is not supported at BOXI universe level. This requires converting to String type.
6.png 

7.    Use PdmString() function to convert the UUID type data to String type as below. Click ‘Parse’ button. You can see parsing is show as ‘OK’.
7.png 

8.    Clicl ‘Apply’ and then ‘OK’ buttons. This way ‘zaffected_service’ object is added to ‘Issue-Cust’ class. This procedure must be done to all SREL attributes with UUID attribute.
8.png