error: Wyndhamm Power

Certified Associate Developer

I'm stucking on Wyndhamm Power Portal Excercise.
Does anyone know how to resolve this?

When I enter the expression on page 6 as instructed, an error message appears and cannot proceed.


error:
Expression evaluation error: Syntax error. Details: Expression evaluation error : Invalid double value 0000e

※Added 6/11/2024

The exercise is to add lines 5~13, with the other lines retained as provided by Deployment Service Account.

Expression

a!localVariables(
local!showReport: false,
local!result,
local!errorMessage,
local!outage: a!refreshVariable(
value: 'recordType!{29c13db8-6b5d-406d-8f11-bc4adec59e00-w2175wpo}W2175WPO Power Outage' (
'recordType!{29c13db8-6b5d-406d-8f11-bc4adec59e00-w2175wpo}W2175WPO Power Outage.fields.{e7052282-96ec-417d-9e15-d06a4b84b7c3-w2175wpo}street': null,
'recordType!{29c13db8-6b5d-406d-8f11-bc4adec59e00-w2175wpo}W2175WPO Power Outage.fields.{fb79d435-7558-4ab9-a1e2-2a8466c04876-w2175wpo}city': null,
'recordType!{29c13db8-6b5d-406d-8f11-bc4adec59e00-w2175wpo}W2175WPO Power Outage.fields.{a6f889f0-3b74-4e5b-83f9-bd6ad1bcdace-w2175wpo}state': null,
'recordType!{29c13db8-6b5d-406d-8f11-bc4adec59e00-w2175wpo}W2175WPO Power Outage.fields.{b506b95f-d762-4f14-ad4a-4be358356118-w2175wpo}status': "Reported"
),
refreshOnVarChange: {local!result, local!errorMessage
}),
a!headerContentLayout(
header: {
a!cardLayout(
contents: {
a!columnsLayout(
columns: {
a!columnLayout(
contents: {},
width: "AUTO"
),
a!columnLayout(
contents: {
a!imageField(
label: "",
labelPosition: "COLLAPSED",
images: {
a!documentImage(
document: cons!W2175WPO_WYNDHAMM_POWER_LOGO,
altText: "Windham Power Logo"
)
},
size: "LARGE",
isThumbnail: false,
style: "STANDARD",
align: "END"
)
},
width: "MEDIUM_PLUS"
)
},
showWhen: not(local!showReport),
stackWhen: {
"PHONE",
"TABLET_PORTRAIT"
}
)
},
height: "AUTO",
style: "#",
padding: "STANDARD",
marginBelow: "EVEN_MORE",
showBorder: false
),
a!cardLayout(
contents: {
a!columnsLayout(
columns: {
a!columnLayout(
contents: {}
),
a!columnLayout(
contents: {
a!sectionLayout(
label: "Report a Residential Outage",
labelSize: "LARGE",
labelHeadingTag: "H1",
labelColor: "STANDARD",
contents: {
a!sideBySideLayout(
items: {
a!sideBySideItem(
item: a!textField(
label: "Street",
labelPosition: "ABOVE",
instructions: "",
placeholder: "",
value: null(),
saveInto: null(),
refreshAfter: "UNFOCUS",
validations: {}
)
),
a!sideBySideItem(
item: a!textField(
label: "City",
labelPosition: "ABOVE",
instructions: "",
placeholder: "",
value: null(),
saveInto: null(),
refreshAfter: "UNFOCUS",
validations: {}
)
),
a!sideBySideItem(
item: a!textField(
label: "State",
labelPosition: "ABOVE",
placeholder: "",
value: null(),
saveInto: null(),
refreshAfter: "UNFOCUS",
validations: {}
)
)
},
alignVertical: "BOTTOM",
marginAbove: "MORE"
),
a!cardChoiceField(
label: "Service Address",
data: {
a!map(
id: 1,
icon: "#"_a-0000ec1c-61f8-8000-9c41-011c48011c48_3330847"",
primaryText: null(),
secondaryText: null()
)
},
cardTemplate: a!cardTemplateBarTextStacked(
id: fv!data.id,
primaryText: fv!data.primaryText,
secondaryText: fv!data.secondaryText,
icon: fv!data.icon
),
value: 1,
saveInto: {},
maxSelections: 1,
validations: {}
),
a!richTextDisplayField(
labelPosition: "COLLAPSED",
value: {
"If your location is not listed, please call 1-888-WYN-DHAM to report an outage."
},
marginAbove: "STANDARD",
marginBelow: "MORE"
)
},
divider: "ABOVE",
dividerColor: "#",
marginBelow: "MORE"
),
a!sectionLayout(
label: "",
contents: {
a!columnsLayout(
columns: {
a!columnLayout(
contents: {
a!buttonArrayLayout(
buttons: {
a!buttonWidget(
label: "Cancel",
style: "LINK"
)
},
align: "START",
marginBelow: "NONE"
)
}
),
a!columnLayout(
contents: {
a!buttonArrayLayout(
buttons: {
a!buttonWidget(
label: "Submit",
saveInto:null(),
confirmHeader: null(),
confirmMessage: null(),
confirmButtonLabel: null(),
cancelButtonLabel: null()
)
},
align: "END",
marginBelow: "NONE"
)
}
)
}
)
},
divider: "ABOVE",
dividerColor: "#",
marginBelow: "EVEN_MORE"
)
},
width: "WIDE"
),
a!columnLayout(
contents: {}
)
},
stackWhen: {
"PHONE",
"TABLET_PORTRAIT"
}
)
},
height: "AUTO",
style: "#",
marginAbove: "STANDARD",
marginBelow: "EVEN_MORE",
showBorder: false
),
a!cardLayout(
contents: {
a!columnsLayout(
columns: {
a!columnLayout(
contents: {
a!imageField(
label: "",
labelPosition: "COLLAPSED",
images: {
a!documentImage(
document: cons!W2175WPO_WYNDHAMM_POWER_LOGO,
altText: "Windham Power Logo"
)
},
size: "MEDIUM",
isThumbnail: false,
style: "STANDARD",
align: "START"
)
},
width: "MEDIUM"
),
a!columnLayout(
contents: {
a!linkField(
label: "",
labelPosition: "COLLAPSED",
links: {
a!safeLink(
label: "Wyndhamm #"_a-0000ec1c-61f8-8000-9c41-011c48011c48_3330847"",
uri: "">https://www.appian.com",
openLinkIn: "NEW_TAB"
)
}
),
a!linkField(
label: "",
labelPosition: "COLLAPSED",
links: {
a!safeLink(
label: "Set Up New Service",
uri: "">https://www.appian.com",
openLinkIn: "NEW_TAB"
)
}
),
a!linkField(
label: "",
labelPosition: "COLLAPSED",
links: {
a!safeLink(
label: "Pay My Bill",
uri: "">https://www.appian.com",
openLinkIn: "NEW_TAB"
)
}
),
a!linkField(
label: "",
labelPosition: "COLLAPSED",
links: {
a!safeLink(
label: "Customer Service",
uri: "">https://www.appian.com",
openLinkIn: "NEW_TAB"
)
}
)
},
width: "MEDIUM"
),
a!columnLayout(
contents: {
a!linkField(
label: "",
labelPosition: "COLLAPSED",
links: {
a!safeLink(
label: "About Green Energy",
uri: "">https://www.appian.com",
openLinkIn: "NEW_TAB"
)
}
),
a!linkField(
label: "",
labelPosition: "COLLAPSED",
links: {
a!safeLink(
label: "Our Carbon Neutral Plan",
uri: "">https://www.appian.com",
openLinkIn: "NEW_TAB"
)
}
),
a!linkField(
label: "",
labelPosition: "COLLAPSED",
links: {
a!safeLink(
label: "Reducing Your Energy Use",
uri: "">https://www.appian.com",
openLinkIn: "NEW_TAB"
)
}
)
},
width: "MEDIUM"
),
a!columnLayout(contents: {})
},
stackWhen: {
"PHONE",
"TABLET_PORTRAIT"
}
)
},
height: "AUTO",
style: "#",
padding: "MORE",
marginAbove: "EVEN_MORE",
marginBelow: "NONE",
showBorder: false,
decorativeBarPosition: "TOP",
decorativeBarColor: "#"
)
},
contents: {},
backgroundColor: "#",
contentsPadding: "NONE"
)
)

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    The local variable contents are a!localVariableslocalVar1, localVarN, expression ). You can use multiple local variables but expression should be one. I think you use multiple expressions. If you are doing so please use {} and keep your all expressions into that {}. Then your expressions will be shown as one.

    Or else you can check the brackets as well. In your code which is mentioned up, the parenthesizes are being not matched. You can check that also. 

Reply
  • 0
    Certified Associate Developer

    The local variable contents are a!localVariableslocalVar1, localVarN, expression ). You can use multiple local variables but expression should be one. I think you use multiple expressions. If you are doing so please use {} and keep your all expressions into that {}. Then your expressions will be shown as one.

    Or else you can check the brackets as well. In your code which is mentioned up, the parenthesizes are being not matched. You can check that also. 

Children
No Data