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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Arendp
Helper III
Helper III

Query gives error: Value cannot be null

I have this query:

 

 

 

let
    Bron = Oauth2_18Jan.Contents("https://start.exactonline.nl/api/v1/division/cashflow/Banks"),
    #"XML-bestand geïmporteerd" = Xml.Tables(Bron,null,65001)
in
    #"XML-bestand geïmporteerd"

 

 

 

When loading or refreshing, it gives me this error:

Waarde kan niet null zijn. Parameternaam: accessToken  -> meaning value cannot be null. Parameter name: accessToken

Microsoft.Mashup.Evaluator.Interface.ErrorException: Waarde kan niet null zijn.

Microsoft.Mashup.Engine1.Runtime.Extensibility.ExtensionOAuthFactory.Provider.Microsoft.Mashup.OAuth.IOAuthProvider.Refresh(TokenCredential credential)
bij Microsoft.Mashup.Host.Document.OAuth.OAuthRegistrationService.Refresh(IResource resource, CredentialDataCollection previousCredential)

And the error goes on with this kind of message..

 

Any help on this?

Let me know if you need more info.

 

2 ACCEPTED SOLUTIONS
ImkeF
Community Champion
Community Champion

Hi @Arendp  , 

the function you're using isn't a native M-function. So it might come from a custom connector. You have to contact the person that has created that connector and investigate whats wrong with the authentication.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

Thanks, I was missing something.... I know what to do now!

 

View solution in original post

2 REPLIES 2
ImkeF
Community Champion
Community Champion

Hi @Arendp  , 

the function you're using isn't a native M-function. So it might come from a custom connector. You have to contact the person that has created that connector and investigate whats wrong with the authentication.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Thanks, I was missing something.... I know what to do now!

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.