<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SAP Cloud SDK JavaScript OData Generator Error in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068047#M4509155</link>
    <description>&lt;P&gt;Hi Roberto, sorry for the delay! Can you please share the version of the generator you're using?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2019 10:14:29 GMT</pubDate>
    <dc:creator>dhem</dc:creator>
    <dc:date>2019-10-01T10:14:29Z</dc:date>
    <item>
      <title>SAP Cloud SDK JavaScript OData Generator Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaq-p/12068046</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;I am facing an issue while generating the OData Client for this service specification: &lt;A href="https://api.sap.com/api/ECPositionManagement/overview"&gt;https://api.sap.com/api/ECPositionManagement/overview&lt;/A&gt; (download the EDMX from the Details tab).&lt;/P&gt;
  &lt;P&gt;The Cloud SDK application was generated starting from the scaffold code that can be found at &lt;A href="https://github.com/SAP/cloud-s4-sdk-examples.git" target="test_blank"&gt;https://github.com/SAP/cloud-s4-sdk-examples.git&lt;/A&gt;.&lt;/P&gt;
  &lt;P&gt;The OData Client Generator fails with the not-so-explicit message:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Cannot read property 'name' of undefined&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;At the same time, while trying to generate services from a "real" metadata file downloaded from a productive instance of SuccessFactors, fails with:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Cannot read property 'startsWith' of undefined
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Is there a way to have a more verbose log for the generator?&lt;/P&gt;
  &lt;P&gt;Did anyone face the same issue?&lt;/P&gt;
  &lt;P&gt;Best regards,&lt;/P&gt;
  &lt;P&gt;Roberto.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 09:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaq-p/12068046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-09-24T09:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Cloud SDK JavaScript OData Generator Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068047#M4509155</link>
      <description>&lt;P&gt;Hi Roberto, sorry for the delay! Can you please share the version of the generator you're using?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 10:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068047#M4509155</guid>
      <dc:creator>dhem</dc:creator>
      <dc:date>2019-10-01T10:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Cloud SDK JavaScript OData Generator Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068048#M4509156</link>
      <description>&lt;P&gt;Hello Dennis,&lt;BR /&gt;I used version 1.9.0, here is a slice of package.json:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...
"devDependencies": {
  "@sap/cloud-sdk-generator": "^1.9.0",
  "@sap/cloud-sdk-test-util": "^1.7.0",
  "@types/chai": "^4.1.7",
  "@types/chai-http": "^4.2.0",
  "@types/express": "^4.16.1",
  "@types/http-proxy-agent": "^2.0.1",
  "@types/mocha": "^5.2.6",
  "@types/sinon": "^7.0.10",
  "@types/sinon-chai": "^3.2.2",
  "chai": "^4.2.0",
  "chai-http": "^4.2.1",
  "dotenv": "^8.1.0",
  "js-yaml": "^3.13.0",
  "mocha": "^5.2.0",
  "mocha-junit-reporter": "^1.18.0",
  "node-mocks-http": "^1.7.3",
  "nodemon": "^1.18.10",
  "nyc": "^13.3.0",
  "sinon": "^7.2.7",
  "sinon-chai": "^3.3.0",
  "ts-node": "^8.0.3",
  "typescript": "^3.3.4000"
},
"dependencies": {
  "@sap/cloud-sdk-core": "^1.7.0",
  "express": "^4.16.4"
},
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 10:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068048#M4509156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-01T10:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Cloud SDK JavaScript OData Generator Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068049#M4509157</link>
      <description>&lt;P&gt;I have to apologize again for the delay, somehow this slipped through my notifications...&lt;/P&gt;&lt;P&gt;I debugged the issue and there is actually a bug in the generator. We will let you know as soon as it's fixed.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 16:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068049#M4509157</guid>
      <dc:creator>dhem</dc:creator>
      <dc:date>2019-11-04T16:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Cloud SDK JavaScript OData Generator Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068050#M4509158</link>
      <description>&lt;P&gt;Dear  &lt;SPAN class="mention-scrubbed"&gt;dhem&lt;/SPAN&gt;,&lt;BR /&gt;Here we are again a couple of months later &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I took over the project I was working on when I got stuck into the generator issue. I re-started it from scratch using the latest versions of the sdk-core and the sdk-generator.&lt;/P&gt;&lt;P&gt;Unfortunately, the issue seems to still be there. As soon as I try to use a real metadata file downloaded from my customer's SuccessFactors instance, the generator fails again with:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Cannot read property 'startsWith' of undefined&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Do you have any update on this issue? I saw the release notes of the JavaScript SDK and there are many upgrades/fixes on the generator, maybe this specific one was not yet addressed?&lt;/P&gt;&lt;P&gt;I'll be happy to share the metadata file I am using if it could be of any help.&lt;/P&gt;&lt;P&gt;Thanks a lot in advance and regards,&lt;BR /&gt;Roberto.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 21:53:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068050#M4509158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-02-12T21:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Cloud SDK JavaScript OData Generator Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068051#M4509159</link>
      <description>&lt;P&gt;Hello Roberto,&lt;/P&gt;&lt;P&gt;this issue was indeed "fixed". If you still encounter this issue, we will take another look. Which SuccessFactors API are you using?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Marika&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 09:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068051#M4509159</guid>
      <dc:creator>marika_marszalkowski</dc:creator>
      <dc:date>2020-02-13T09:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Cloud SDK JavaScript OData Generator Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068052#M4509160</link>
      <description>&lt;P&gt;Hello Marika,&lt;BR /&gt;Thank you for your answer. &lt;/P&gt;&lt;P&gt;I forgot to mention the the issue is indeed gone when using model specifications coming from the Business Hub (i.e. the Position Management API now works perfectly).&lt;/P&gt;&lt;P&gt;I am starting from an EDMX model that was not taken from the API Business Hub but directly from the metadata.xml coming from my SuccessFactors instance. For example, the EmploymentInfo entity has some extensions (custom fields, custom navigations) which I need to consume.&lt;/P&gt;&lt;P&gt;This EDMX file makes the OData generator to fail with the generic error mentioned in my comment above.&lt;BR /&gt;I know this EDMX file is a huge one that provides access to the entire data model of the system, so maybe I am stretching it too much, but to give you a comparison, the same EDMX file is processed correctly by the Java based odata generator. &lt;/P&gt;&lt;P&gt;Using the Java based generator (not the maven plugin, but the command-line jar), there is also the option to select which entities should be processed, so even if the EDMX is huge the generated result can be tailored to what the application really needs.&lt;/P&gt;&lt;P&gt;Thanks again for your kind comment and best regards!&lt;/P&gt;&lt;P&gt;Roberto.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 10:05:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068052#M4509160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-02-13T10:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Cloud SDK JavaScript OData Generator Error</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068053#M4509161</link>
      <description>&lt;P&gt;Thank you for reporting this. I will reach out to you via e-mail to get the service specification. We will try to fix this as soon as possible.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 12:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-cloud-sdk-javascript-odata-generator-error/qaa-p/12068053#M4509161</guid>
      <dc:creator>marika_marszalkowski</dc:creator>
      <dc:date>2020-02-13T12:12:56Z</dc:date>
    </item>
  </channel>
</rss>

