web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Excel Script thinks ce...
Power Automate
Unanswered

Excel Script thinks cell is integer not string

(0) ShareShare
ReportReport
Posted on by 97

Hi

 

I have an issue where, after I added a few more lines of cell grabs to this script, it now is pulling the same value for all cells (being the last value) and errors saying they are all integers not string. I cannot figure out why all of a sudden this is failing as it was working fine until I added code as SD12Construction start:

function main(workbook: ExcelScript.Workbook): SOWDATA {
 let sheet = workbook.getWorksheet("SOW SMR");
 return {
 SiteID: sheet.getRange("C3").getValue(),
 SiteName: sheet.getRange("C4").getValue(),
 NONFIM: sheet.getRange("C10").getValue(),
 SD19S: sheet.getRange("C11").getValue(),
 SD19: sheet.getRange("C12").getValue(),
 SD20: sheet.getRange("C13").getValue(),
 PT: sheet.getRange("C14").getValue(),
 TotalRevenue: sheet.getRange("C15").getValue(),
 SD12ConstructionStart: sheet.getRange("D28").getValue(),
 SD12ConstructionComplete: sheet.getRange("E28").getValue(),
 SD19HopSubmission: sheet.getRange("F28").getValue(),
 SD19HopApproval: sheet.getRange("G28").getValue(),
 SD22DeliveryDate: sheet.getRange("H28").getValue(),
 } as SOWDATA;
}

interface SOWDATA {
 SiteID: string;
 SiteName: string;
 NONFIM: string;
 SD19S: string;
 SD19: string;
 SD20: string;
 PT: string;
 TotalRevenue: string;
 SD12ConstructionStart: string;
 SD12ConstructionComplete: string;
 SD19HopSubmission: string;
 SD19HopApproval: string;
 SD22DeliveryDate: string;
 }

 

JemmaKSS_0-1690411517784.png

 

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#3
David_MA Profile Picture

David_MA 270 Super User 2025 Season 2

Last 30 days Overall leaderboard