Skip to main content
jiteshs2718
August 2, 2024
Solved

Process 101 Build Application Step 9 Not Working

  • August 2, 2024
  • 15 replies
  • 0 views

I have followed the document as described but getting the following error when running in debug mode:


Even the sample application provided has the same issue. My Interface is configured as follows:

Up to this exercise everything seems to have worked as expected. I tried changing the rule input in the interface to Vehicle which resulted in a lot more error messages. I deleted the process model and generated a new "Create" process model automatically.

Any help to get working would be greatly appreciated.

    Best answer by jiteshs2718

    Thanks for your help to-date Greg, greatly appreciated. I have discovered the root of the problem and it is do with a mismatch between the browser locale and that of the interface. I had to enable the interface for "English (GB)" and opt to create the process parameters. This then worked.

    Hopefully, useful for future reference should anyone else face the same issue.

    15 replies

    pragnaj0001
    August 2, 2024

    can u share the interface code. 

    jiteshs2718
    August 2, 2024

    a!formLayout(
    label: "Create Vehicle",
    contents: {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!integerField(
    label: "Year",
    labelPosition: "ABOVE",
    required: false,
    value: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{593338ed-8623-4d1e-9b4a-a9bc7dd2bc46}year'],
    saveInto: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{593338ed-8623-4d1e-9b4a-a9bc7dd2bc46}year']
    ),
    a!textField(
    label: "Model",
    labelPosition: "ABOVE",
    required: false,
    value: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{48d59c3c-fe64-40d0-9f2f-74352d314f8e}model'],
    saveInto: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{48d59c3c-fe64-40d0-9f2f-74352d314f8e}model'],
    characterLimit: 255
    ),
    a!textField(
    label: "Color",
    labelPosition: "ABOVE",
    required: false,
    value: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{34393e1d-f16c-4c35-a0f5-290546900934}color'],
    saveInto: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{34393e1d-f16c-4c35-a0f5-290546900934}color'],
    characterLimit: 255
    ),
    a!integerField(
    label: "Image",
    labelPosition: "ABOVE",
    required: false,
    value: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{4c90dd80-e0cd-47d5-8d25-893dd4af8179}image'],
    saveInto: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{4c90dd80-e0cd-47d5-8d25-893dd4af8179}image']
    ),
    a!pickerFieldRecords(
    label: "To Category Record",
    labelPosition: "ABOVE",
    placeholder: "Select a To Category Record",
    maxSelections: 1,
    recordType: 'recordType!{9030da14-57d1-418e-94c7-4feccee2719c-w0450aa}W0450AA Vehicle Category',
    value: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{8e12aa60-de86-4f83-953c-51ad2db7a450}aaVehicleCategoryId'],
    saveInto: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{8e12aa60-de86-4f83-953c-51ad2db7a450}aaVehicleCategoryId']
    ),
    a!textField(
    label: "Created By",
    labelPosition: "ABOVE",
    required: false,
    value: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{f508809c-9956-4639-b788-ab69ba6ba542}createdBy'],
    saveInto: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{f508809c-9956-4639-b788-ab69ba6ba542}createdBy'],
    characterLimit: 255
    ),
    a!checkboxField(
    labelPosition: "COLLAPSED",
    required: false,
    choiceLabels: {
    "Is Active"
    },
    choiceValues: {
    true
    },
    value: if(
    ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{b9bdbe41-83b6-47bf-ad17-3148c4b414fd}isActive'],
    true,
    null
    ),
    saveInto: a!save(
    ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{b9bdbe41-83b6-47bf-ad17-3148c4b414fd}isActive'],
    if(
    isnull(
    save!value
    ),
    false,
    true
    )
    )
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!textField(
    label: "Make",
    labelPosition: "ABOVE",
    required: false,
    value: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{19354219-59c3-4596-84f9-968d7a7dd9c8}make'],
    saveInto: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{19354219-59c3-4596-84f9-968d7a7dd9c8}make'],
    characterLimit: 255
    ),
    a!textField(
    label: "Vin",
    labelPosition: "ABOVE",
    required: false,
    value: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{5e8932dd-070f-45fb-bb02-16eff8dd68f1}vin'],
    saveInto: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{5e8932dd-070f-45fb-bb02-16eff8dd68f1}vin'],
    characterLimit: 255
    ),
    a!integerField(
    label: "Mileage",
    labelPosition: "ABOVE",
    required: false,
    value: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{2568a98f-c00d-41b8-8435-c4ff67c63945}mileage'],
    saveInto: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{2568a98f-c00d-41b8-8435-c4ff67c63945}mileage']
    ),
    a!pickerFieldRecords(
    label: "To Status Record",
    labelPosition: "ABOVE",
    placeholder: "Select a To Status Record",
    maxSelections: 1,
    recordType: 'recordType!{c40f19ec-824f-4377-8d6f-60c072fa9721-w0450aa}W0450AA Vehicle Status',
    value: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{3fc456d9-e259-4312-87a8-4be5d2aeb619}aaVehicleStatusId'],
    saveInto: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{3fc456d9-e259-4312-87a8-4be5d2aeb619}aaVehicleStatusId']
    ),
    a!pickerFieldRecords(
    label: "To Condition Record",
    labelPosition: "ABOVE",
    placeholder: "Select a To Condition Record",
    maxSelections: 1,
    recordType: 'recordType!{eb227701-8262-4e28-8383-21f074f141da-w0450aa}W0450AA Vehicle Condition',
    value: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{abad6875-d60e-48db-9357-05e9bfe01f84}aaVehicleConditionId'],
    saveInto: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{abad6875-d60e-48db-9357-05e9bfe01f84}aaVehicleConditionId']
    ),
    a!textField(
    label: "Modified By",
    labelPosition: "ABOVE",
    required: false,
    value: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{10d1817c-353c-420e-ad51-605d1f924977}modifiedBy'],
    saveInto: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{10d1817c-353c-420e-ad51-605d1f924977}modifiedBy'],
    characterLimit: 255
    )
    }
    )
    }
    ),
    a!sectionLayout(
    label: "toMaintenanceRecord",
    labelSize: "MEDIUM_PLUS",
    labelColor: "STANDARD",
    labelHeadingTag: "H2",
    isCollapsible: false,
    contents: {
    a!gridLayout(
    labelPosition: "COLLAPSED",
    height: "SHORT_PLUS",
    shadeAlternateRows: true,
    headerCells: {
    a!gridLayoutHeaderCell(label: "Id"),
    a!gridLayoutHeaderCell(label: "Issue"),
    a!gridLayoutHeaderCell(label: "Is Scheduled"),
    a!gridLayoutHeaderCell(label: "Status"),
    a!gridLayoutHeaderCell(label: "Start Date"),
    a!gridLayoutHeaderCell(label: "End Date"),
    a!gridLayoutHeaderCell(label: "Cost"),
    a!gridLayoutHeaderCell(label: "Assigned Mechanic"),
    a!gridLayoutHeaderCell(label: "Created By"),
    a!gridLayoutHeaderCell(label: "Created On"),
    a!gridLayoutHeaderCell(label: "Modified By"),
    a!gridLayoutHeaderCell(label: "Modified On"),
    a!gridLayoutHeaderCell()
    },
    columnConfigs: {
    a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
    a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
    a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
    a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
    a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
    a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
    a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
    a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
    a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
    a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
    a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
    a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
    a!gridLayoutColumnConfig(width: "ICON")
    },
    rows: a!forEach(
    items: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.relationships.{46a094a5-2021-4660-8b1c-6c485f33a977}toMaintenanceRecord'],
    expression: a!gridRowLayout(
    id: fv!index,
    contents: {
    a!integerField(
    readOnly: true,
    value: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{c97ea305-65b9-4c2a-b835-548a259770d1}id'],
    saveInto: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{c97ea305-65b9-4c2a-b835-548a259770d1}id']
    ),
    a!textField(
    value: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{320a193b-517e-47a0-af7a-f9319562f493}issue'],
    saveInto: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{320a193b-517e-47a0-af7a-f9319562f493}issue']
    ),
    a!checkboxField(
    labelPosition: "COLLAPSED",
    choiceLabels: { "" },
    choiceValues: { true },
    value: if(fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{4c75c979-2d6a-411d-9e81-77156ffc9bf3}isScheduled'], true, null),
    saveInto: a!save(
    fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{4c75c979-2d6a-411d-9e81-77156ffc9bf3}isScheduled'],
    if(isnull(save!value), false, true)
    )
    ),
    a!textField(
    value: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{41192f50-52f4-4d52-9644-51f9524ede20}status'],
    saveInto: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{41192f50-52f4-4d52-9644-51f9524ede20}status']
    ),
    a!dateField(
    value: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{d2ae5585-c9df-4aaa-aba4-9b3ab19a3492}startDate'],
    saveInto: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{d2ae5585-c9df-4aaa-aba4-9b3ab19a3492}startDate']
    ),
    a!dateField(
    value: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{2a488eae-a52c-4db7-9895-7a240fdf1dcc}endDate'],
    saveInto: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{2a488eae-a52c-4db7-9895-7a240fdf1dcc}endDate']
    ),
    a!integerField(
    value: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{a5fe06a3-0c44-4ebb-a56b-209e1c309fd2}cost'],
    saveInto: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{a5fe06a3-0c44-4ebb-a56b-209e1c309fd2}cost']
    ),
    a!textField(
    value: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{18daad2f-1e28-4808-8d2d-db4bb35a9055}assignedMechanic'],
    saveInto: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{18daad2f-1e28-4808-8d2d-db4bb35a9055}assignedMechanic']
    ),
    a!textField(
    value: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{644dcdd4-fc06-4ceb-9123-74e5c7035b83}createdBy'],
    saveInto: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{644dcdd4-fc06-4ceb-9123-74e5c7035b83}createdBy']
    ),
    a!dateField(
    value: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{6fea7f40-2784-4d9f-9a08-64ed234c8d46}createdOn'],
    saveInto: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{6fea7f40-2784-4d9f-9a08-64ed234c8d46}createdOn']
    ),
    a!textField(
    value: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{8c8e075a-0462-46ec-ab11-3384a16d88ad}modifiedBy'],
    saveInto: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{8c8e075a-0462-46ec-ab11-3384a16d88ad}modifiedBy']
    ),
    a!dateField(
    value: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{d4b116bd-a0ff-4aca-ae1e-e7d29837a79c}modifiedOn'],
    saveInto: fv!item['recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance.fields.{d4b116bd-a0ff-4aca-ae1e-e7d29837a79c}modifiedOn']
    ),
    a!imageField(
    size: "ICON",
    images: a!documentImage(
    document: a!iconIndicator(icon: "REMOVE"),
    altText: "Remove Row",
    link: a!dynamicLink(
    value: fv!index,
    saveInto: {
    a!save(
    ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.relationships.{46a094a5-2021-4660-8b1c-6c485f33a977}toMaintenanceRecord'],
    remove(
    ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.relationships.{46a094a5-2021-4660-8b1c-6c485f33a977}toMaintenanceRecord'],
    save!value
    )
    )
    }
    )
    )
    )
    }
    )
    ),
    addRowLink: a!dynamicLink(
    label: "Add Row",
    value: {
    'recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.relationships.{46a094a5-2021-4660-8b1c-6c485f33a977}toMaintenanceRecord': {
    'recordType!{2a140855-d422-4991-8ec3-bdc0a477b6d3}W0450SA Maintenance'()
    }
    },
    saveInto: a!save(
    ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.relationships.{46a094a5-2021-4660-8b1c-6c485f33a977}toMaintenanceRecord'],
    append(
    ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.relationships.{46a094a5-2021-4660-8b1c-6c485f33a977}toMaintenanceRecord'],
    save!value
    )
    )
    )
    )
    }
    )
    },
    buttons: a!buttonLayout(
    primaryButtons: {
    a!buttonWidget(
    label: "Create",
    submit: true,
    validate: true,
    saveInto: {
    a!save(
    target: ri!record['recordType!{4c04341b-60b5-46d6-9767-9e578462f0e8}W0450SA Vehicle.fields.{0273234c-c799-4ae3-b186-ebf4a2519175}createdOn'],
    value: now()
    )
    },
    style: "SOLID"
    )
    },
    secondaryButtons: {
    a!buttonWidget(
    label: "Cancel",
    value: true,
    saveInto: ri!cancel,
    submit: true,
    style: "OUTLINE",
    validate: false
    )
    }
    )
    )

    August 5, 2024

    Enter the value for all fields in the Create Vehicle form and then try: