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

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

book

Article ID: 4639

calendar_today

Updated On:

Products

SUPPORT AUTOMATION- SERVER CA Service Desk Manager - Unified Self Service CA Service Desk Manager CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

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”

<Please see attached file for image>

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’

<Please see attached file for image>

1.png

2.    In below screen shot, you can see the ‘Iss’ object dragged to class ‘Issue_cust’ in left pane.

<Please see attached file for image>

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’.

<Please see attached file for image>

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’.

<Please see attached file for image>

4.png
 
5.    You should see ‘Select’ field populated as below:

<Please see attached file for image>

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.

<Please see attached file for image>

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’.

<Please see attached file for image>

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.

<Please see attached file for image>

8.png

Attachments

1558699860369000004639_sktwi1f5rjvs16otw.png get_app
1558699858482000004639_sktwi1f5rjvs16otv.png get_app
1558699856717000004639_sktwi1f5rjvs16otu.png get_app
1558699854767000004639_sktwi1f5rjvs16ott.png get_app
1558699852715000004639_sktwi1f5rjvs16ots.png get_app
1558699850785000004639_sktwi1f5rjvs16otr.png get_app
1558699848893000004639_sktwi1f5rjvs16otq.png get_app
1558699847126000004639_sktwi1f5rjvs16otp.png get_app
1558699844821000004639_sktwi1f5rjvs16oto.png get_app