Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Greetings,
I had a REST URL working, but had a problem with the table. I did not keep a copy.
There is no syntax errors, but the new code is failing??
let
cfaURL = url,
cfatoken = token,
SourceURL = Json.Document(Web.Contents(cfaURL+cfatoken, [Headers [#"Authorization"=cfatoken]])),
toTable = Table.FromRecords({SourceURL})
in
SourceURL
The error is (Left = URL + Right = token)
Expression.Error: We cannot apply operator + to types Text and Text.
Details:
Operator=+
Solved! Go to Solution.
Hi @Anonymous
That error is from trying to join cfaURL and cfaToken using a +
To join text use &
e.g.
SourceURL = Json.Document(Web.Contents(cfaURL & cfatoken, [Headers = [#"Authorization"=cfatoken]])),
Note: Headers was also missing an = after it, which I've corrected in the code above.
Phil
If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.
Proud to be a Super User!
Hi @Anonymous
That error is from trying to join cfaURL and cfaToken using a +
To join text use &
e.g.
SourceURL = Json.Document(Web.Contents(cfaURL & cfatoken, [Headers = [#"Authorization"=cfatoken]])),
Note: Headers was also missing an = after it, which I've corrected in the code above.
Phil
If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.
Proud to be a Super User!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 6 | |
| 6 | |
| 5 |