Skip to main content
hitomik2530
June 10, 2024
Question

error: Wyndhamm Power

  • June 10, 2024
  • 4 replies
  • 1 view

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

/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/_3B75CF50_1.png_2D00_640x480.png

※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"
)
)

4 replies

shubhama926776
June 10, 2024

Double-check the expression you entered, especially the value "0000e" and fix that.

Can you share your all interface code here.

hitomik2530
June 11, 2024

Thank you for the reaction. I have added the expression, could you please check it? Sorry for the long post.

davidj137213
June 10, 2024

Share your code please.

prasantap0900
August 1, 2024

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.