Skip to main content
amiyah0740
August 12, 2023
Solved

Error in view record list

  • August 12, 2023
  • 8 replies
  • 0 views

I am getting the below error when I click view record list on AX Vehicles record list.

The Requested Record Type Is Not Available Expression evaluation error [evaluation ID = 6ETIO] at function a!recordList: A grid component [label="null"] has an invalid value for "columns". A grid column [label="Image"] has encountered an error. Expression evaluation error at function a!documentImage [line 56]: Could not cast from Rule or Function Reference to Document. Details: CastInvalidCould not cast from Rule or Function Reference to Document. Details: CastInvalid (APNX-1-4198-000)

    Best answer by mathieud0001

    I think the problem lies with this

    a!EXAMPLE_DOCUMENT_IMAGE

    Should be

    a!EXAMPLE_DOCUMENT_IMAGE()

    8 replies

    mathieud0001
    Brainy
    August 12, 2023

    Can you post the code?

    amiyah0740
    August 12, 2023

    the code is simple rule!AX_VehicleSummary(vehicle: rv!record)

    This occurred when I added a vehicle with mock data with no image into the record type. is there a way I can delete that.

    mathieud0001
    Brainy
    August 12, 2023

    I don't have the AX in my community environment but I have something called rule!AS_VehicleSummary.

    I tried nulling out the image and it works fine for me. This is the code I have for the image in the AS_VehiculeSummary rule which handles null values. Is it similar for you?