Giter Site home page Giter Site logo

Excel 2016 connect fails: InvalidVersionNumber: The EDMX version specified in the Version attribute does not match the version corresponding to the namespace of the Edmx element about odatametadata HOT 6 CLOSED

algo-web avatar algo-web commented on August 15, 2024
Excel 2016 connect fails: InvalidVersionNumber: The EDMX version specified in the Version attribute does not match the version corresponding to the namespace of the Edmx element

from odatametadata.

Comments (6)

kirill533 avatar kirill533 commented on August 15, 2024

Power BI was complaining about metadata:

InvalidVersionNumber : The EDMX version specified in the 'Version' attribute does not match the version corre sponding to the namespace of the 'Edmx' element. : (0, 0)

The problem was fixed after I modified the Version number in the edmx:Edmx tag from 3.0 to 1.0.

As it may be seen from examples, all samples below Odata 4.0 have edmx:Edmx tag with version 1.0:

Only sample of Odata v4 have it differently, but it also references different xmlns:edmx file:

Same in ms docs: https://docs.microsoft.com/en-us/openspecs/windows_protocols/mc-edmx/44c78852-dd32-457b-a1ba-4f179bb00242

The fix needs to be applied in /src/MetadataV3/edmx/Edmx.php of ODataMetadata project:
Replacing
$this->setVersion($version);
with
$this->setVersion('4.0' == $version ? '4.0' : '1.0');

from odatametadata.

c-harris avatar c-harris commented on August 15, 2024

With regards issues with json writers any help will be appricheated I have been meaning to make some major changes there

from odatametadata.

kirill533 avatar kirill533 commented on August 15, 2024

With regards issues with json writers any help will be appricheated I have been meaning to make some major changes there

Yes, Json Writers are still not perfect. I have hard time to make integration with Power BI fully working for me. And it is super hard to figure out, why that does not work. Would be good to have some means to automatically test that, maybe, some kind of integration tests involving OData libraries from Microsoft (C#). Do you know maybe some OData clients that might be used for proper testing of the API?

P.S. Not sure about the right spot for such communication.

from odatametadata.

c-harris avatar c-harris commented on August 15, 2024

I think that is a good idea, we could probably build a c# integration test lib against the Northwood examples and test from there. Would be happy to work towards it.

What so you mean right stop for such communication?

from odatametadata.

kirill533 avatar kirill533 commented on August 15, 2024

What so you mean right stop for such communication?

Right "spot", sorry. "The right place".

from odatametadata.

c-harris avatar c-harris commented on August 15, 2024

I probably agree I think the three simple options for us would be

  1. you could create a new issue on podata?
  2. you could shot me an email?
  3. we use discord.

Any of those suite you? A 4th might be I have an old skype account

from odatametadata.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.