Skip to main content

Notifications

Announcements

No record found.

Microsoft Supply Chain Center Forum - Note: thi...
Answered

Error loading an Excel file for My data Locations entity that used to work

Posted on by

An excel import (Locations entity for My Data) file that used to work (I have uploaded it many times before) is failing with the following errors:

---------- Message ----------
Request failed with status code 500

---------- Stack ----------
Error: Request failed with status code 500
at e.exports (content.powerapps.com/.../main.5fef0f11.js:2:991822)
at e.exports (content.powerapps.com/.../main.5fef0f11.js:2:991662)
at XMLHttpRequest.b (content.powerapps.com/.../main.5fef0f11.js:2:990210)

---------- Session ID ----------
bc29b490-dba5-11ed-8c0b-9bfe63f996d6

---------- Mashup script ----------
section Section1;
shared Sheet1 = let
Source = Excel.Workbook(Web.Contents("junctionsolutions-my.sharepoint.com/.../Microsoft Power Query/Uploaded Files/My Data Locations 4.xlsx"), null, true),
#"Navigation 1" = Source{[Item = "Sheet1", Kind = "Sheet"]}[Data],
#"Promoted headers" = Table.PromoteHeaders(#"Navigation 1", [PromoteAllScalars = true]),
#"Changed column type" = Table.TransformColumnTypes(#"Promoted headers", {{"LocationId", type text}, {"LocationName", type text}, {"LocationDescription", type text}, {"LocationAddressLine1", type text}, {"LocationAddressLine2", type any}, {"LocationCity", type text}, {"LocationStateId", type text}, {"LocationPostalCode", Int64.Type}, {"LocationLatitude", type number}, {"LocationLongitude", type number}, {"LocationDatum", type any}, {"LocationElevation", type any}, {"LocationElevationUnitOfMeasureId", type any}, {"GlobalLocationNumber", type any}, {"TimezoneId", type any}, {"DaylightSavingsTimeObservedIndicator", type any}, {"CountryId", type text}}, "en"),
#"Mapped to CDM" = Cdm.MapToEntity(#"Changed column type", {{"LocationId", "LocationId", type text}, {"LocationName", "LocationName", type text}, {"LocationDescription", "LocationDescription", type text}, {"LocationAddressLine1", "LocationAddressLine1", type text}, {"LocationAddressLine2", "LocationAddressLine2", type text}, {"LocationCity", "LocationCity", type text}, {"LocationStateId", "LocationStateId", type text}, {"LocationPostalCode", "LocationPostalCode", type text}, {"LocationLatitude", "LocationLatitude", type number}, {"LocationLongitude", "LocationLongitude", type number}, {"LocationDatum", "LocationDatum", type text}, {"LocationElevation", "LocationElevation", Int64.Type}, {"LocationElevationUnitOfMeasureId", "LocationElevationUnitOfMeasureId", type text}, {"GlobalLocationNumber", "GlobalLocationNumber", type number}, {"TimezoneId", "TimezoneId", type text}, {"DaylightSavingsTimeObservedIndicator", "DaylightSavingsTimeObservedIndicator", type logical}, {"CountryId", "CountryId", type text}}, null, "Location")
in
#"Mapped to CDM";


section Section1;
shared Sheet1 = let
Source = Excel.Workbook(Web.Contents("junctionsolutions-my.sharepoint.com/.../Microsoft Power Query/Uploaded Files/My Data Locations 3.xlsx"), null, true),
Navigation = Source{[Item = "Sheet1", Kind = "Sheet"]}[Data],
#"Promoted headers" = Table.PromoteHeaders(Navigation, [PromoteAllScalars = true]),
#"Changed column type" = Table.TransformColumnTypes(#"Promoted headers", {{"LocationId", type text}, {"LocationName", type text}, {"LocationDescription", type text}, {"LocationAddressLine1", type text}, {"LocationAddressLine2", type any}, {"LocationCity", type text}, {"LocationStateId", type text}, {"LocationPostalCode", Int64.Type}, {"LocationLatitude", type number}, {"LocationLongitude", type number}, {"LocationDatum", type any}, {"LocationElevation", type any}, {"LocationElevationUnitOfMeasureId", type any}, {"GlobalLocationNumber", type any}, {"TimezoneId", type any}, {"DaylightSavingsTimeObservedIndicator", type any}, {"CountryId", type text}}, "en"),
#"Mapped to CDM" = Cdm.MapToEntity(#"Changed column type", {{"LocationId", "LocationId", type text}, {"LocationName", "LocationName", type text}, {"LocationDescription", "LocationDescription", type text}, {"LocationAddressLine1", "LocationAddressLine1", type text}, {"LocationAddressLine2", "LocationAddressLine2", type text}, {"LocationCity", "LocationCity", type text}, {"LocationStateId", "LocationStateId", type text}, {"LocationPostalCode", "LocationPostalCode", type text}, {"LocationLatitude", "LocationLatitude", type number}, {"LocationLongitude", "LocationLongitude", type number}, {"LocationDatum", "LocationDatum", type text}, {"LocationElevation", "LocationElevation", Int64.Type}, {"LocationElevationUnitOfMeasureId", "LocationElevationUnitOfMeasureId", type text}, {"GlobalLocationNumber", "GlobalLocationNumber", type number}, {"TimezoneId", "TimezoneId", type text}, {"DaylightSavingsTimeObservedIndicator", "DaylightSavingsTimeObservedIndicator", type logical}, {"CountryId", "CountryId", type text}}, null, "Location")
in
#"Mapped to CDM";

  • Verified answer
    lizmota Profile Picture
    lizmota on at
    RE: Error loading an Excel file for My data Locations entity that used to work

    Hi Mauricio,

    Thank you for your response. Can you send your azure tenant ID and MSCC environment ID to MSCC_support@microsoft.com so we can solve this issue for you?

    Thank you,

    Liz

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans