Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Expression Error the csv document parameter "column's is invalid

im facing the below error regarding this query 

 

let
Source = Csv.Document(File.Contents("\\10.40.3.246\Share Risk\Middle Office\Daily\Limits Monitoring\Limit Monitor check\Daily Limits Check\MM & FX\Template\CL-FX-limit-check.csv"),[Delimiter=",", Columns=13, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}, {"Column2", type text}, {"Column3", type text}, {"Column4", type text}, {"Column5", type text}, {"Column6", type text}, {"Column7", type text}, {"Column8", type text}, {"Column9", type text}, {"Column10", type text}, {"Column11", type text}, {"Column12", type text}, {"Column13", type text}}),
#"Promoted Headers" = Table.PromoteHeaders(#"Changed Type", [PromoteAllScalars=true]),
#"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers",{{"Key Figure Report", type text}, {"", type text}, {"_1", type text}, {"_2", type text}, {"_3", type text}, {"_4", type text}, {"_5", type text}, {"_6", type text}, {"_7", type text}, {"_8", type text}, {"_9", type text}, {"_10", type text}, {"_11", type text}}),
#"Promoted Headers1" = Table.PromoteHeaders(#"Changed Type1", [PromoteAllScalars=true]),
#"Changed Type2" = Table.TransformColumnTypes(#"Promoted Headers1",{{"Parent", type text}, {"Abs Nominal USD", Int64.Type}, {"Deal Nominal Amount", type number}, {"Counterparty", type text}, {"Continuation Number", Int64.Type}, {"FX Rate", type number}, {"Opening Date", type date}, {"Value Date", type date}, {"Expiry/Maturity Date", type date}, {"Currency", type text}, {"Instrument Group", type text}, {"Instrument", type text}, {"Transaction State", type text}})
in
#"Changed Type2"

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Anonymous ,

Can you please share the sample data pbxi file for test? It is hard to test without any detail data.

How to Get Your Question Answered Quickly 
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
az38
Community Champion
Community Champion

Hi @Anonymous 

try to remove ", QuoteStyle=QuoteStyle.None" out ftom the first string

do not hesitate to give a kudo to useful posts and mark solutions as solution
Linkedin


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.