Forum Discussion

bchager's avatar
bchager
Icon for Resolver III rankResolver III
1 year ago
Solved

Microsoft.Data.Mashup.Preview; Token ';' expected error

Hi everyone,

 

I'm working with a .pbip and am using Git integration for version control. Yesterday this error popped up. The details contain about 100 or so rows of information, none of which jumps out at as pointing me to exactly where the token ; is missing.

 

Has anyone successfully resolved the same error?

 

 

  • Hey  bchager !

    That's a strange error since M language doesn't actually use semicolons. This could be:

    1. Invalid character in your M script that the parser is misinterpreting
    2. Git merge conflict markers (<<<<<<<, =======, >>>>>>>) corrupting the syntax
    3. JSON corruption in the project structure

    I'd suggest checking your definition.pbidataset file directly in a text editor - look for Git conflict markers or unusual characters. You could also compare it with your last working commit to see what changed.


    If nothing obvious shows up, reverting to the previous working commit might be the quickest fix.

2 Replies

  • Hey  bchager !

    That's a strange error since M language doesn't actually use semicolons. This could be:

    1. Invalid character in your M script that the parser is misinterpreting
    2. Git merge conflict markers (<<<<<<<, =======, >>>>>>>) corrupting the syntax
    3. JSON corruption in the project structure

    I'd suggest checking your definition.pbidataset file directly in a text editor - look for Git conflict markers or unusual characters. You could also compare it with your last working commit to see what changed.


    If nothing obvious shows up, reverting to the previous working commit might be the quickest fix.

    • bchager's avatar
      bchager
      Icon for Resolver III rankResolver III

      marcelsmaglhaes Thanks for your reply. Stretched for time, I just reverted to a previous working commit.